Remote Stack Overflow Vulnerability (DoS)
A web page can cause a browser to crash by repeatedly calling the window.print function in a recursive loop. An attacker could use this to cause a denial of service, forcing the browser to become unresponsive or close.
Originally disclosed on HackerOne
- Disclosed after 9 months
Allows remote attackers to cause a denial of service (application crash) resulting in stack overflow via nested calls to the window.print javascript function.
<html> <title>Remote Stack Overflow DoS PoC</title> <body bgcolor="#50708C"> <center> <p><font color="#e3e3e3">Remote Stack Overflow DoS PoC</font></p> <button onClick=crash()>Execute!</button> </center> <script> function crash(){ window.print(); crash(); } </script> </body> </html>Poc : Please find attached file POC Video
Reference Link : https://www.exploit-db.com/exploits/33951/
Attachments
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 the browser does not limit recursion depth when window.print is called repeatedly, leading to a stack overflow.
Impact
A remote attacker could cause a denial of service by crashing the browser, but the text does not specify which browsers are affected or whether any defences mitigate it.
What the attacker needed
Victim visits a malicious web page; victim clicks a button
How it was found
- Create an HTML page with a button that triggers a function.
- The function calls window.print() and then calls itself recursively.
- Open the page and click the button to execute the function.
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.
A simple web page can crash a browser by calling window.print repeatedly without stopping. The repeated calls overflow the stack, causing a crash. An attacker could use such a page to cause a denial of service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.