DoS of https://blog.yelp.com/ and other WP instances via CVE-2018-6389
The WordPress load-scripts.php endpoint returns a large concatenated JavaScript response to an unauthenticated request when many script handles are listed. An attacker could send such requests repeatedly to exhaust server resources and cause a denial of service.
Originally disclosed on HackerOne
- Triaged in 5 days
- Paid in 38 days
- Disclosed after 42 days
Description: There is possibility in /wp-admin/load-scripts.php script to generate large (~3Mb) amount of data via simple non-authenticated request to server. The vulnerability is registered as https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6389
Details: Detailed attack scenario is described for example here: https://baraktawily.blogspot.ru/2018/02/how-to-dos-29-of-world-wide-websites.html
How to fix: RewriteCond %{QUERY_STRING} ^.{1000,}$ RewriteRule ^WP-ADMIN/LOAD-SCRIPTS.PHP$ - f add this to your .htaccess
Impact
DoS of the site and application server
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
Impact
The site and application server could be made unavailable through repeated large requests.
What the attacker needed
No authentication needed; network access to the WordPress site
The fix
The reporter suggests blocking requests to load-scripts.php whose query string is very long, using an .htaccess rewrite rule.
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 file that bundles many JavaScript files together when a page asks for them. If someone asks for a very long list of them in one request, the server builds a big response, and doing that over and over can overload the server so real visitors cannot use the site. This is called a denial of service: the goal is to make the service unavailable, not to steal data.
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.