Chrome Extension is vulnerable to the self-DOS issues in case it process the security.txt with a big size
The Chrome extension fetches security.txt files from visited sites using AJAX without a size limit, so a very large file causes the extension to hang or crash. An attacker could host such a file to make the extension unresponsive for users who visit the site.
- Triaged in under an hour
- Fixed in 2 hours
- Disclosed after 32 days
Summary by the researcher
I found an extension self-DoS issue due to way, how ajax calls process the big files in response. Little correction to the report content, in reproduction steps section, i did a mistake there - there was no Chrome tab crash, but extension crash only.
Thanks to the @edio and @karel_origin for their awesome work!
The report
##Description
Hello. Before all, thanks for the invite:) Here is keyword: frog
I discovered the self-DOS issue, which affects Chrome extension.
##Impact
I marked the impact as low, because it will affect only the browser tab, and will not impact other browser tabs. The issue happens due to processing the large files using AJAX call in the getSecuritytxt function.
##Steps to reproduce
- Create security.txt with the size of 1-2 GB on your host.
- Navigate to this site in the Chrome Browser (at this time you may notice traffic and CPU utilization increasing due to pre-flight check of the security.txt)
- Click on the extension. Depending on the Chrome version, amount of RAM and CPU, you can experience one of (or all together):
- Extension hang
- Tab hang
- Tab crash
##Suggested fix
Since we are making AJAX calls to the untrusted hosts, end extension is working for the every site we opened in the tab, we should get rid from such kind of issues. I suggest to implement timeout on the AJAX calls using
xhr.timeout = 15000; //some value in milliseconds
xhr.ontimeout = function (e) {
//handling timeout
};
I will link the Github PR in the comment below:)
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 extension's AJAX request for security.txt has no size limit or timeout, so it tries to process arbitrarily large responses.
Impact
The extension could hang or crash, and in some cases the browser tab may hang or crash, but other tabs are not affected.
What the attacker needed
Victim visits attacker-controlled site; victim clicks the extension
The fix
The extension should set a timeout on its AJAX calls to avoid processing large responses indefinitely.
How it was found
- Create a security.txt file of 1-2 GB on a host.
- Navigate to that site in Chrome, which triggers a pre-flight check of the security.txt.
- Click on the extension, which may then hang or crash depending on resources.
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 browser extension checks websites for a small text file called security.txt. The extension downloads this file without checking how big it is, so a malicious site can provide a huge file that makes the extension freeze or crash.
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.