Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
not working for me. I have two server one on DigitalOcean, one on Mediatemple, bot LAMP
i followed this page step by step but my loginpage still allows login wiht injection
To exclude phpmyadmin: edit “/etc/apache2/sites-available/000-default.conf” and place this code below between (<VirtualHost *:80>here</VirtualHost>)
<LocationMatch "/phpmyadmin">
<IfModule security2_module>
SecRuleEngine Off
</IfModule>
</LocationMatch>
@jesin I’ve followed every single step, however it does not detect the sql injection. The custom rules are detected and works pretty well.
I have tried in several ways, no luck
Thank you for this excellent, updated tutorial.
A couple of questions, though: 1.) There are several other rules in the base rules directory at /usr/share/modsecurity-crs/base-rules. Should each of these rules be manually activated by creating a symlink, just like the SQL injection rule was activated in the tutorial? 2. Is it necessary/possible to install the OWASP mod_security ruleset along side the CRS? Or, are they unnecessary?
Thanks for this, It helped me get it installed and working but have one issue… In the above post you say to remove a rule to a specific file such as in the code below. But where do you get the ID 981173 from?
<LocationMatch “/wp-admin/update.php”> <IfModule security2_module> SecRuleRemoveById 981173 </IfModule> </LocationMatch>
Also do you place this code between the open and closing vhost tags as in the directory example?
Or can you put it in the htaccess file in the specific folder?
Thanks Again. Awesome instruction.
Partially working for me:
[Sat Sep 10 12:21:24.505911 2016] [:error] [pid 3483] [client 192.168.1.50] ModSecurity: Warning. Pattern match "(?i:\\\\bor\\\\b ?(?:\\\\d{
1,10}|[\\\\'\\"][^=]{1,10}[\\\\'\\"]) ?[=<>]+|(?i:'\\\\s+x?or\\\\s+.{1,20}[+\\\\-!<>=])|\\\\b(?i:x?or)\\\\b\\\\s+(\\\\d{1,10}|'[^=]{1,10}')|
\\\\b(?i:x?or)\\\\b\\\\s+(\\\\d{1,10}|'[^=]{1,10}')\\\\s*?[=<>])" at ARGS:username. [file "/usr/share/modsecurity-crs/activated_rules/modsec
urity_crs_41_sql_injection_attacks.conf"] [line "133"] [id "959071"] [rev "2"] [msg "SQL Injection Attack"] [data "Matched Data: ' or true -
- found within ARGS:username: ' or true -- "] [severity "CRITICAL"] [ver "OWASP_CRS/2.2.9"] [maturity "9"] [accuracy "8"] [tag "OWASP_CRS/WE
B_ATTACK/SQL_INJECTION"] [tag "WASCTC/WASC-19"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/CIE1"] [tag "PCI/6.5.2"] [hostname "kcs"] [uri
"/login.php"] [unique_id "V9QzBMCoATMAAA2bl74AAAAE"]
I have checked over and over:
Any ideas?