CSRF Leads to Delete Account
The Android app exposed an exported deep link whose path prefix matched the account settings area, and the author found that the delete-account endpoint could be reached through it. An attacker could craft a link that, when opened by a logged-in victim, triggers account deletion without the victim's intent.
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 exported deep-link activity routed arbitrary paths under /account/ to sensitive account endpoints without any anti-CSRF protection or user confirmation.
Impact
An attacker could cause a logged-in user to delete their own account by getting them to open a crafted link, though the report does not show the deletion actually completing.
What the attacker needed
Victim has the app installed and is logged in; victim opens an attacker-crafted link
How it was found
- Inspect the app manifest and find the exported splash activity with a browsable deep link for the /account path prefix.
- Open the deep link with adb to reach the account settings screen.
- Note that the path prefix allows arbitrary suffixes after /account/.
- Intercept the account API calls such as change password and delete account.
- Try reaching those endpoints through the deep link.
- Build an HTML page linking to the account endpoint to demonstrate the CSRF.
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.
A deep link is a web address that opens a specific screen inside a mobile app. Here the app accepted links under its account area and acted on them without checking that the request really came from the user, so a page an attacker controls could make the app perform an action such as deleting the account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.