HexBrain

Khan Academy · Report #1212337

Bypass the fix of report #1078283 due to poor validation

Validstatus
highseverity
14upvotes
8 Jul 2021disclosed

How it was found

Hi Khan Academy Team,

I was able to bypass the fix you implemented for report #1078283.

The URL validation you implemented on the endpoint continue checks the presence of khanacademy.org however it doesn't have any boundary checking to ignore domains starting with .org, so if an attacker register a domain starting with org like this one orghacker.com.br and have a subdomain entry of khanacademy the attacker is able to bypass the current implementation and lead the victim to his controlled page.

Steps to reproduce the issue

Impact

Bypass of current URL validation. Attacker can send a phishing campaign and redirect the request to a server of his control. An attacker might chain the attack to other types of attack too.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original