HTB22845: SQL Injection in cdnvote wordpress plugin

2011-02-22T00:00:00
ID SECURITYVULNS:DOC:25764
Type securityvulns
Reporter Securityvulns
Modified 2011-02-22T00:00:00

Description

Vulnerability ID: HTB22845 Reference: http://www.htbridge.ch/advisory/sql_injection_in_cdnvote_wordpress_plugin.html Product: cdnvote wordpress plugi; 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>