I found a 1-click exploit in South Korea's biggest mobile chat app
A deep link validation flaw in KakaoTalk's Android app allowed an attacker to run JavaScript in a WebView that leaked the user's access token. With this token, an attacker could take over the victim's account and read non-end-to-end encrypted chat messages.
stulle123.github.io
Published on stulle123.github.io
In this blog post we show how multiple low-hanging fruit vulnerabilities in KakaoTalk’s Android app can lead to the disclosure of users’ messages. We will cover different topics ranging from Android AppSec to Web Security.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the deep link handler did not properly validate the URL, allowing an open redirect and DOM XSS on a related domain, and the WebView leaked the access token in the Authorization header.
Impact
An attacker could take over a victim's KakaoTalk account and read their non-end-to-end encrypted chat messages.
What the attacker needed
Victim clicks a link; victim uses KakaoTalk Android 10.4.3; attacker has a server to receive token
The fix
Kakao Corp. took down the vulnerable endpoint and removed the CommerceBuyActivity in later versions.
How it was found
- Attacker crafts a malicious deep link that uses an open redirect and a DOM XSS on a kakao.com subdomain.
- Victim clicks the link, which opens the CommerceBuyActivity WebView and executes the attacker's JavaScript.
- The JavaScript sends the leaked access token to the attacker's server.
- Attacker uses the token to access the victim's Kakao Mail account and reset the KakaoTalk password.
- Attacker registers their own device to the victim's account using the token to bypass the PIN verification.
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 write-up has not been written yet. The Original tab links to the source.
KakaoTalk is a popular chat app. A part of the app that loads web pages could be tricked into running malicious code, which then stole a secret key. That key let the attacker reset the victim's password and read their messages.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.