Skip to content
Account takeover Disclosed report Advanced

[h1-415 2020] finally

The write-up describes a chain in a CTF challenge where an email leaked on the login page could be manipulated with brace characters to register a new account, then the recovery feature was abused to take over another user's account. It then describes a blind XSS in a support form and an XSS in a name field rendered into a PDF that reached a local Chromium debugger port to read a secret.

003random Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 13 days
  • Disclosed after 13 days
  1. add { or } chars behind Joberts email, which leaks on the login page
  2. register a new account using that email
  3. sign out and use the recover feature with the just generated qr code. this will get you into Joberts account
  4. head to /support and submit a blind XSS payload which extracts the document.location
  5. submit the form on this feedback review page
  6. change the user id to your own account you created at step 2
  7. place an XSS payload in the user's name field and generate a pdf. payload:
<iframe src="http://localhost:9222/json/list" style="width: 100%; height: 1000px"></iframe> 7. view the pdf. (chromium debugger port) 8. copy the id in the URL which contains "secret" 9. profit

I hope you like my writeup, and may I be the winner. lmao, I'm kidding, I'm only submitting this because it took me like 40 hours to finish this CTF. (from which a lot consisted of frustration and depression because of the 80% downtime or the core functions not working :( )

Not doing an actual write-up since I got some hints from 2 friends of mine, so I didn't 100% do this on my own. may Bayo and Jllis be the winners. BBAC represent :muscle:

Flag: https://h1-415.h1ctf.com/documents/1327fe21a19e8f7fefc83bbbaaace3ccb329eb9e4cd2df66ef6e0cf84dd7401e

Impact

Big impact. Bounty pls

Attachments

secret_view_on_own_risk.png
secret_view_on_own_risk.png From the original on HackerOne
each_qr_code_equals_1_hour_of_my_time_oof.png
each_qr_code_equals_1_hour_of_my_time_oof.png
flagerino.png
flagerino.png

The original report as published on HackerOne, by 003random. 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 normalised or parsed the email inconsistently between registration and recovery, and rendered user-controlled fields into a PDF using a browser with a debug port exposed.

Impact

An attacker could take over another user's account and, through rendered PDFs, read a secret value from a local debugging endpoint.

What the attacker needed

CTF challenge account; victim email visible on login page; PDF rendering with debug port open

How it was found

  1. Add brace characters to the email leaked on the login page.
  2. Register a new account using that email.
  3. Sign out and use the recover feature with the generated QR code to enter the other account.
  4. Submit a blind XSS payload via the support form that extracts the document location.
  5. Change the user id to the newly created account and place an XSS payload in the name field, then generate a PDF.
  6. View the PDF and copy the id containing 'secret' from the 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.

A website showed another person's email address on its login page. By adding brace characters to that email, the author could register a new account that the site treated as belonging to that person, and the account recovery feature then let them get into that person's account. Later, text they entered was rendered as a PDF by a browser with a debugging port open, letting them read a secret value.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by 003random

View all

3 more disclosed reports, best first.

More from h1-ctf

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.