h1-ctf 路 Report #895722
[h1-2006 CTF] Multiple vulnerabilities leading to account takeover and two-factor authentication bypass allows to send pending bounty payments
Validstatus
criticalseverity
4upvotes
6 Jul 2020disclosed
How it was found
Hi,
First things first, the flag of the CTF challenge.
{F863095}
Write-Up
I've published my write-up at https://kapytein.nl/texts/2020-06-10-h1-2006-ctf-writeup-2cf34abd3ed/, in order to avoid a lengthy report 馃槄.
TL;DR
- 2FA bypass as we control both values on the comparison.
- SSRF to
software.bountypay.h1ctf.comto discover a BountyPay Android application. - Solve Android challenges using deeplinks. Use leaked Authorization token for
api.bountypay.h1ctf.com. - Leaked staff ID on the badge of Sandra allows access to
staff.bountypay.h1ctf.comvia aPOST /api/staffcall onapi.bountypay.h1ctf.com. - Privilege escalation using GET CSRF.
- 2FA bypass via a CSS injection.
Thank you for organizing this challenge!
Impact
This allows an attacker to process bounty payments of customers.