2 More Wordpress Plugin Exploits – Adserve & WassUp

Posted 1466 days ago - Security, Wordpress

Wow, four Wordpress plugin exploits released in under a week. Are these plugin authors really amateurs, or just trying to pwn Wordpress blogs?

First up, Adserve version 0.2. The SQL injection vulnerability resides in adclick.php. Here's the vulnerable code:

if (isset($_GET['id'])) {
Header("Location: ".iri_AdServe_BannerClick($_GET['id'])
return $wpdb->get_var("SELECT url
FROM $table_name WHERE id=$id;");

Again, the id variable isn't sanitized, and successful exploitation results in the Wordpress administrative login and the md5 hash to go along with it. If you're using this plugin, either uninstall it, or patch the code if you're familiar with PHP.

Next up is the plugin known as WassUp, a live visitor reporting tool. The hole is again the result of improper sanitization within not one, but two files. In spy.php:

if (isset($_GET['to_date']))
$to_date = htmlentities(strip_tags($_GET['to_date']));

And in main.php:

function spyview ($from_date="",$to_date="",$rows="999") {
$qryC = $wpdb->get_results("SELECT id, wassup_id, max(timestamp)
as max_timestamp, ip, hostname, searchengine, urlrequested,
agent, referrer, spider, username, comment_author
FROM $table_name WHERE timestamp BETWEEN $from_date
AND $to_date GROUP BY id ORDER BY max_timestamp DESC");

The $from_date and $to_date are again, not sanitized. This allows malicious individuals to basically run whatever SQL query they'd like - including a select statement to obtain your Wordpress administrator account credentials. You're advised to either uninstall this plugin and wait until a fix is released, or patch it yourself.

Case and point - don't install all these silly and often useless plugins. If the plugin isn't adding any value to your blog, don't use it. In my opinion, both these plugins are completely useless.

Word Count: 312

Tags: , , , ,

Click Here to Submit a Comment

Permalink / Last Modified:

Support Nullamatix.com:

See Also:

  • 01/28/2008 -- 2 New Wordpress Plugin SQL Injection Vulnerabilities
    Excerpt: "That's right Wordpresss kiddies, two new vulnerabilities, and they're pretty nasty. Author Houssamix From H-T Team has released two remote SQL injection proof of concepts for WP-Cal and fGallery 2.4.1. The vulnerability for WP-Cal exists ..."
  • 01/20/2008 -- Another Wordpress Plugin Vulnerability: WP-Forum 1.7.4
    Excerpt: "Milworm.com has released another Wordpress plugin vulnerability, this time it's WP-Forum 1.7.4. I'm no expert at deciphering exactly how exploits work, but this remote sql injection appears to grant the attacker administrative privileges. If you're using ..."
  • 12/25/2009 -- New Tool: Daily [Mod] Security Reports
    Excerpt: "After the Lighttpd mod security post and the DDoS attack that followed, I began working on a script that parses the Lighttpd server-error.log and inserts matched records into MySQL. The result? Check it out here: security.nullamatix.com Daily Security ..."
  • 11/28/2009 -- New Wordpress Plugin: IP Intelligence
    Excerpt: "Description IP Intelligence the ability to retrieve information about a commentators IP address without leaving the "edit-comments.php" page. Version 0.0.1 is capable of retrieving the following information: Reverse DNS/PTR Long/Proper IPv4 ..."

1 Comment

[ RSS feed | Trackback URI | Leave a Comment ]

collapse Jim # @ 2008-04-03 02:50:47

Really interesting... wp Plugin developers should check this out.

 

Leave a Comment

Comments are moderated prior to showing up. If your comment does not show up immediately, please do not attempt to resubmit. If you're redirected to the original post after pressing "Add Comment", your comment was successfully entered into the moderation queue.

Trackback Responses to This Post:

  • No Trackbacks, yet. Help Nullamatix.com by Linking to This Post.