Adobe Flash Player Infinite Recursion Arbitrary Read Access Violation
A read access violation in Adobe Flash Player occurs when ActionScript code triggers infinite recursion via implicit function calls, leading to a crash. The crash is a null pointer dereference, but varying constants gives limited control over the offset, potentially allowing further abuse.
Originally disclosed on Cisco Talos
A potentially exploitable read access violation vulnerability exists in the a way Adobe Flash Player handles infinitely recursive calls. A specially crafted ActionScript code can cause a read access violation which can potentially be further abused.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, hitting a recursion limit leaves the process in an irregular state, and because the exception is caught, execution continues and dereferences an invalid pointer when accessing a Math object.
Impact
The vulnerability causes a crash (null pointer dereference) and may allow limited control over the dereference offset, potentially leading to an arbitrary read access violation, though the highest offset observed is still too low to be useful.
What the attacker needed
Victim visits a webpage with a malicious SWF file
How it was found
- Overload the toString method of an object with a function that calls itself indirectly.
- Construct a URIError object using that object as the message argument.
- Call the function directly, causing infinite recursion until the recursion limit is hit.
- After the limit, the next line in the function executes, dereferencing a Math constant and crashing.
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 report has not been written yet. The Original tab links to the source.
Flash Player runs ActionScript code. When certain functions call themselves repeatedly, the program hits a recursion limit and ends up in a bad state. This can cause a crash, and the crash might be tweaked to read memory in unintended ways.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.