Abusing JSONP with Rosetta Flash
A tool called Rosetta Flash converts any SWF file into one made only of alphanumeric characters, allowing abuse of JSONP endpoints. This lets an attacker make a victim send arbitrary requests to the vulnerable domain and exfiltrate sensitive data to an attacker-controlled site.
blog.miki.it
Published on blog.miki.it
In this blog post I present Rosetta Flash, a tool for converting any SWF file to one composed of only alphanumeric characters in order to abuse JSONP endpoints, making a victim perform arbitrary requests to the domain with the vulnerable endpoint and exfiltrate potentially sensitive data, not limited to JSONP…
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 JSONP endpoints that reflect user input without proper validation allow an attacker to load a crafted SWF file as a script, bypassing the Same Origin Policy.
Impact
An attacker could make a victim perform arbitrary requests to the vulnerable domain and exfiltrate sensitive data to an attacker-controlled site.
What the attacker needed
Victim visits attacker page; vulnerable JSONP endpoint
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.
JSONP is a way for websites to share data across domains, but it can be tricked. This tool turns a Flash file into plain letters and numbers so it can be loaded from a JSONP endpoint, letting an attacker steal data from another site.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.