
{"id":1352,"date":"2011-05-26T00:57:53","date_gmt":"2011-05-26T03:57:53","guid":{"rendered":"http:\/\/www.talsoft.com.ar\/?page_id=1352"},"modified":"2012-03-17T12:36:28","modified_gmt":"2012-03-17T15:36:28","slug":"wordpress-user-id-and-user-name-disclosure","status":"publish","type":"page","link":"https:\/\/www.talsoft.com.ar\/site\/es\/research\/security-advisories\/wordpress-user-id-and-user-name-disclosure\/","title":{"rendered":"WordPress User ID and User Name Disclosure"},"content":{"rendered":"<h3>I. Advisory information<\/h3>\n<p>Title: WordPress User IDs and User Names Disclosure<br \/>\nAdvisory Id: TALSOFT-2011-0526<br \/>\nAdvisory URL: <a title=\"http:\/\/www.talsoft.com.ar\/index.php\/research\/security-advisories\/wordpress-user-id-and-user-name-disclosure\" href=\"http:\/\/www.talsoft.com.ar\/index.php\/research\/security-advisories\/wordpress-user-id-and-user-name-disclosure\">http:\/\/www.talsoft.com.ar\/index.php\/research\/security-advisories\/wordpress-user-id-and-user-name-disclosure<\/a><br \/>\nDate published: 2011-05-26<br \/>\nVendors contacted: WordPress<br \/>\nAuthor: Ver\u00f3nica Valeros<\/p>\n<h3>II. Vulnerability information<\/h3>\n<p>Class: Insecure Direct Object References (CWE-715)<br \/>\nImpact: Low<br \/>\nRemotely Exploitable: Yes<br \/>\nLocally Exploitable: Yes<\/p>\n<h3>III. Overview<\/h3>\n<p>WordPress platforms use a parameter called &#8216;author&#8217;. This parameter accepts integer values and represents the \u2018User ID\u2019 of users in the web site. For example: http:\/\/www.example.com\/?author=1<br \/>\nThe problems found are:<\/p>\n<ol>\n<li>User ID values are generated consecutively.<\/li>\n<li>When a valid User ID is found, WordPress redirects to a web page with the name of the author.<\/li>\n<\/ol>\n<p>These problems trigger the following attack vectors:<\/p>\n<ol>\n<li>The query response discloses whether the User ID is enabled.<\/li>\n<li>The query response leaks (by redirection) the User Name corresponding with that User ID. (See update for version 3.1.3)<\/li>\n<\/ol>\n<p>User IDs can be disabled, leaving holes within the consecutive numbers. Therefore, when an invalid User ID is sent, no redirection is done and no information is disclosed.<\/p>\n<p>Also, the attack can be automated, sending multiple queries to extract valid User Names and User IDs from the vulnerable web sites.<\/p>\n<p><em>Update:<\/em><\/p>\n<p>In version 3.1.3 the redirection explained in the second attack vector is not done, but is still possible to find the User Name in the source code. Therefore, this version is still vulnerable.<\/p>\n<h3>IV. Affected versions<\/h3>\n<p>This issue was tested in versions 2.6, 3.1, 3.1.1, 3.1.3 and 3.2-beta2. Other versions were not tested and may be vulnerable.<\/p>\n<h3>V. Non affected versions<\/h3>\n<p>Unknown.<\/p>\n<h3>VI. Proof of concept<\/h3>\n<p>A Proof of Concept (PoC) is available at: <a title=\"wp-userdata-disclosure-PoC.py.tar.gz\" href=\"http:\/\/www.talsoft.com.ar\/site\/wp-content\/uploads\/2011\/05\/wp-userdata-disclosure-PoC.py_.tar.gz\">wp-userdata-disclosure-PoC.py.tar.gz<\/a><\/p>\n<h3>VII. Solution<\/h3>\n<p>WordPress version 3.1.3 fixes the redirection problem, but user names are still been disclosed in the HTML code. No solution was provided for this last problem.<\/p>\n<h3>VIII. Disclosure timeline<\/h3>\n<ul>\n<li>2011-03-14:\n<ul>\n<li>Vulnerability was identified.<\/li>\n<\/ul>\n<\/li>\n<li>2011-05-11:\n<ul>\n<li>WordPress security team was contacted.<\/li>\n<\/ul>\n<\/li>\n<li>2011-05-12:\n<ul>\n<li>WordPress confirmed the vulnerability.<\/li>\n<\/ul>\n<\/li>\n<li>2011-05-25:\n<ul>\n<li>WordPress released version 3.1.3, which included a fix for canonical redirection problem but did not included a fix for the source code problem.<\/li>\n<li>WordPress security team was informed that after the release of version 3.1.3 the vulnerability was still exploitable.<\/li>\n<li>WordPress team agreed to release the security advisory.<\/li>\n<\/ul>\n<\/li>\n<li>2011-05-26:\n<ul>\n<li>The advisory was released.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>IX. Credits<\/h3>\n<p>This vulnerability was discovered and reported by Ver\u00f3nica Valeros (veronicavaleros at talsoft.com.ar)<\/p>\n<h3>X. Disclaimer<\/h3>\n<p>The information provided in this document is for information purposes only. Talsoft S.R.L. accepts no responsibility for any damage caused by the use or misuse of this information. The content of this advisory may be distributed freely, provided that no fee is charged for this distribution and proper credit is given.<\/p>\n<h3>XI. About Talsoft S.R.L.<\/h3>\n<p>Talsoft S.R.L is a growing company with the mission to provide solutions in the following areas:<\/p>\n<ul>\n<li>Information Security<\/li>\n<li>Technology administration<\/li>\n<li>Open source solutions<\/li>\n<li>Trainings and courses<\/li>\n<\/ul>\n<p>Talsoft S.R.L. is also involved in many information security research projects.<\/p>\n<h3>Repercussions<\/h3>\n<p><strong>Nmap Script Engine incorporates a script that exploits this vulnerabilities<\/strong><\/p>\n<ul>\n<li><strong>Name: <\/strong>http-wordpress-enum.nse<\/li>\n<\/ul>\n<ul>\n<li><strong>Summary:<\/strong> Enumerates usernames in WordPress blog\/CMS installations by exploiting an information disclosure vulnerability existing in versions 2.6, 3.1,.1.1, 3.1.3 and 3.2-beta2 and possibly others.<\/li>\n<li><strong>Source:\u00a0<\/strong><a href=\"http:\/\/nmap.org\/nsedoc\/scripts\/http-wordpress-enum.html\">http:\/\/nmap.org\/nsedoc\/scripts\/http-wordpress-enum.html<\/a><\/li>\n<\/ul>\n<p><span style=\"font-size: x-small;\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I. Advisory information Title: WordPress User IDs and User Names Disclosure Advisory Id: TALSOFT-2011-0526 Advisory URL: http:\/\/www.talsoft.com.ar\/index.php\/research\/security-advisories\/wordpress-user-id-and-user-name-disclosure Date published: 2011-05-26 Vendors contacted: WordPress Author: Ver\u00f3nica Valeros II. Vulnerability information Class: Insecure Direct Object References (CWE-715) Impact: Low Remotely Exploitable: Yes Locally Exploitable: Yes III. Overview WordPress platforms use a parameter called &#8216;author&#8217;. This parameter accepts [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":1331,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-1352","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/pages\/1352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/comments?post=1352"}],"version-history":[{"count":35,"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/pages\/1352\/revisions"}],"predecessor-version":[{"id":1731,"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/pages\/1352\/revisions\/1731"}],"up":[{"embeddable":true,"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/pages\/1331"}],"wp:attachment":[{"href":"https:\/\/www.talsoft.com.ar\/site\/wp-json\/wp\/v2\/media?parent=1352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}