CDNVote Wordpress plugin version 0.4.1 suffers from a remote SQL injection vulnerability.
d34e005a0bd7606c9f77ff724fd460c5f3c2c37c8a2d28a01cef678abe4f1ad8
Vulnerability ID: HTB22845
Reference: http://www.htbridge.ch/advisory/sql_injection_in_cdnvote_wordpress_plugin.html
Product: cdnvote wordpress plugin
Vendor: Nakahira ( http://www.crossdrive.net/ )
Vulnerable Version: 0.4.1
Vendor Notification: 08 February 2011
Vulnerability Type: SQL Injection
Risk level: High
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)
Vulnerability Details:
The vulnerability exists due to failure in the "/wp-content/plugins/cdnvote/cdnvote-post.php" script to properly sanitize user-supplied input in "cdnvote_post_id" and "cdnvote_point" variables.
Attacker can alter queries to the application SQL database, execute arbitrary queries to the database, compromise the application, access or modify sensitive data, or exploit various vulnerabilities in the underlying SQL database.
The following PoC is available:
<form action="http://[host]/wp-content/plugins/cdnvote/cdnvote-post.php" method="post" name="main" >
<input type="hidden" name="cdnvote_post_id" value="SQL_CODE_HERE" />
<input type="hidden" name="cdnvote_point" value="OR_HERE" />
<input type="submit" value="Register" name="submit" />
</form>