scripts loader DOS vulnerability
The WordPress load-scripts.php endpoint loads multiple JavaScript files without limiting their number or size, allowing an attacker to request many large files and exhaust server resources. This can lead to a denial of service.
- Triaged in 32 days
- Fixed in 32 days
- Disclosed after 6 months
- vulnerability description
WordPress allows users to load multiple JS files and CSS files through load-scripts.php files at once. For example, https://wpwebsite.com/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-ui-core,editor&ver=4.9.1, file load-scripts.php will load jquery-ui-core and editor files automatically and return the contents of the file.
However, the number and size of files are not restricted in the process of loading JS files, attackers can use this function to deplete server resources and launch denial of service attacks.
(check references for more details about the vulnerability) 2) attack details
*affected link : https://www.formassembly.com/wp-admin/load-scripts.php
*proof of concept ( description );
the load-scripts.php file was receiving a parameter called load[]. This parameter is an array that was receiving the names of the JS files that needed to be loaded. In this case, it was receiving jQuery UI Core, which is the name of one of the Javascript files used by the WordPress login page. (it can be longer, this is just an example) As no rate-limiting is setup for this URL - then DoS comes real
*proof of concept ( link ) ; https://www.formassembly.com/wp-admin/load-scripts.php?c=1&load[]=jquery-ui-core&ver=4.9.1
- how to fix
The web application firewall will mitigate attacks by adding the following to .htaccess -file:
<Files load-scripts.php>Order allow, deny
Deny from all
</Files>- vulnerability classification:
*owasp 2017 top 10 (A9 Using Components with Known Vulnerabilities )
*CVE( Common Vulnerabilities and Exposures ) : https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6389
- references:
https://blog.threatpress.com/wordpress-vulnerability-dos/
https://baraktawily.blogspot.com/2018/02/how-to-dos-29-of-world-wide-websites.html
Impact
denial of service
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 load-scripts.php script does not enforce limits on the number or total size of the JavaScript files it will load and return in a single request.
Impact
An attacker could cause a denial of service by exhausting server resources.
What the attacker needed
Target runs WordPress; load-scripts.php is accessible; no rate-limiting on the endpoint
The fix
The report suggests blocking access to load-scripts.php via a web application firewall rule in .htaccess.
How it was found
- Identify the load-scripts.php endpoint on a WordPress site.
- Send a request to load-scripts.php with the load[] parameter set to a JavaScript file name such as jquery-ui-core.
- Repeat or amplify the request to consume server resources, since no rate-limiting is in place.
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.
WordPress has a feature that lets it combine several JavaScript files into one response to speed up page loading. The report says it does not check how many files are asked for or how big they are, so someone can ask for a huge amount at once and overwhelm the server, making the site slow or unavailable for everyone.
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.