ModSecurity: Access denied with code 200, [Rule: 'REQUEST_COOKIES|!REQUEST_COOKIES

Post Reply
redmondsau
Junior Member
Posts: 2
Joined: 11 Mar 2019, 01:02

ModSecurity: Access denied with code 200, [Rule: 'REQUEST_COOKIES|!REQUEST_COOKIES

Post by redmondsau »

I hoping someone can offer some advice.

I have a client who has been blocked from his own site 2 times in the last 2 weeks. Both times he was making updates to Woocommerce products. He had been able to make changes for probably about 30 mins before he lost connection.

A part of the block email is below:

211.29.242.32] ModSecurity: Access denied with code 200, [Rule: 'REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|ARGS_NAMES|ARGS|XML:/*' '@rx (?:;|\{|\||\|\||&|&&|\n|\r|\$\(|\$\(\(|`|\${|<\(|>\(|\(\s*\))\s*(?:{|\s*\(\s*|\w+=(?:[^\s]*|\$.*|\$.*|<.*|>.*|\'.*\'|\".*\")\s+|!\s*|\$)*\s*(?:'|\")*(?:[\?\*\[\]\(\)\-\|+\w'\"\./\\\\]+/)?[\\\\'\"]*(?:s[\\\\'\"]*(?:e[\\\\'\"]*(?:t[\\\\'\"]*(?:(?:f[\\\\'\"]*a[\\\\'\"]*c[\\\\'\"]*l[\\\\'\"]*)?(?:\s|<|>).*|e[\\\\'\"]*n[\\\\'\"]*v|s[\\\\'\"]*i[\\\\'\"]*d)|n[\\\\'\"]*d[\\\\'\"]*m[\\\\'\"]*a[\\\\'\"]*i[\\\\'\"]*l|d[\\\\'\"]*(?:\s|<|>).*)|h[\\\\'\"]*(?:\.[\\\\'\"]*d[\\\\'\"]*i[\\\\'\"]*s[\\\\'\"]*t[\\\\'\"]*r[\\\\'\"]*i[\\\\'\"]*b|u[\\\\'\"]*t[\\\\'\"]*d[\\\\'\"]*o[\\\\'\"]*w[\\\\'\"]*n|(?:\s|<|>).*)|o[\\\\'\"]*(?:(?:u[\\\\'\"]*r[\\\\'\"]*c[\\\\'\"]*e|r[\\\\'\"]*t)[\\\\'\"]*(?:\s|<|>).*|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'\"]*m|x[\\\\'\"]*d[\\\\'\"]*(?:\s|<|>).*)|z[\\\\'\"]*(?:(?:[ef][\\\\'\"]*)?g[\\\\'\"]*r[\\\\'\"]*e[\\\\'\"]*p|c[\\\\'\"]*(?:a[\\\\'\"]*t|m[\\\\'\"]*p)|d[\\\\'\"]*i[\\\\'\"]*f[\\\\'\"]*f|i[\\\\'\"]*p[\\\\'\"]*(?:\s|<|>).*|l[\\\\'\"]*e[\\\\'\"]*s[\\\\'\"]*s|m[\\\\'\"]*o[\\\\'\"]*r[\\\\'\"]*e|r[\\\\'\"]*u[\\\\'\"]*n|s[\\\\'\"]*h)|o[\\\\'\"]*(?:p[\\\\'\"]*e[\\\\'\"]*n[\\\\'\"]*s[\\\\'\"]*s[\\\\'\"]*l|n[\\\\'\"]*i[\\\\'\"]*n[\\\\'\"]*t[\\\\'\"]*r)|w[\\\\'\"]*(?:h[\\\\'\"]*o[\\\\'\"]*(?:a[\\\\'\"]*m[\\\\'\"]*i|(?:\s|<|>).*)|g[\\\\'\"]*e[\\\\'\"]*t|3[\\\\'\"]*m)|v[\\\\'\"]*i[\\\\'\"]*(?:m[\\\\'\"]*(?:\s|<|>).*|g[\\\\'\"]*r|p[\\\\'\"]*w)|y[\\\\'\"]*u[\\\\'\"]*m)\b'] [id "932105"] [msg "Remote Command Execution: Unix Command Injection"] [logdata "Matched Data: | "Top found within "Fragile" - Tear & Stick Label, 75mm x 50mm 500/Roll (min. purchase 2 rolls) | "Heavy" - Tear & Stick Label, 75mm x 50mm 500/Roll (min.
purchase 2 rolls) | "This Side Up" - Tear & Stick Label, 75mm x 50mm 500/Roll (min. purchase 2 rolls) | "Top Load Only" - Tear & Stick Label, 75mm x 50mm 500/Roll (min. purchase 2 rolls): "Fragile" - Tear & Stick Label, 75mm x 50mm 500/Roll (min. purchase 2 rolls) | "Heavy" - Tear & Stick Label, 75mm x 50mm 500/Roll (min. purchase 2 rolls) ..."] [severity "CRITICAL"] [tag "application-multi"] [tag "language-shell"] [tag "platform-unix"] [tag "attack-rce"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/152/248/88"] [tag "PCI/6.5.2"] [hostname "www.XXXX.com.au"] [uri "/wp-admin/admin-ajax.php?_fs_blog_admin=true"], referer:
https://www.XXXX.com.au/wp-admin/post.p ... sic-editor

If anyone can offer come advice on what might be causing this and how to avoid it.

Thanks
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

Re: ModSecurity: Access denied with code 200, [Rule: 'REQUEST_COOKIES|!REQUEST_COOKIES

Post by marcele »

That site is storing cookie information that your modsecurity rules think are a "Remote Command Execution: Unix Command Injection". You need to disable that rule for the site or figure out what is dropping that cookie and remove it (if its an addon).
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: ModSecurity: Access denied with code 200, [Rule: 'REQUEST_COOKIES|!REQUEST_COOKIES

Post by Sergio »

@redmondsau,
tell your customer to disable ModSecurity inside cPanel each time she/he works on the site and enable it when finishing to work on the site.
Advice that if she/he forgets to turn ModSecurity ON, the site will be hacked.
Post Reply