[SOLVED] SQL Injection Issue

7 months 1 week ago - 7 months 1 week ago #302654 by bins
I am having issues on my site where I cannot loin to admin. Checking the logs I am showing:

[Tue Mar 06 09:33:49.165730 2018] [:error] [pid 21347] [client xx.xx.xx.xx :51041] [client 80.4.133.243] ModSecurity: Warning. detected SQLi using libinjection with fingerprint '1c' [line "43"] [id "942100"] [rev "1"] [msg "SQL Injection Attack Detected via libinjection"] [data "Matched Data: 1c found within REQUEST_COOKIES:idev: 144--3-4-------http%3A%2F%2Fdomain.co.uk%2Findex.php%3Foption%3Dcom_comprofiler%26task%3Dpluginclass%26plugin%3Dcbpaidsubscriptions%26do%3Ddisplayplans%26Itemid%3D243"] [severity "CRITICAL"] [ver "OWASP_CRS/3.0.0"] [maturity "1"] [accuracy "8"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-sqli"] [tag "OWASP_CRS/WEB_ATTACK/SQL_INJECTION"] [tag "WASCTC/WASC-19"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/CIE1"] [tag "PCI/6.5.2"] [hostname "domain.co.uk"] [uri "/media/jui/js/jquery-migrate.min.js"] [unique_id "Wp5gfUOfWp0JBQKZjjpjWAAAAAo"], referer: https://www.domain.co.uk/administrator/ This is appearing when I try to log into the site - the client IP is mine. Help![file "/etc/apache2/conf.d/modsec_vendor_configs/OWASP3/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf"] [line "43"] [id "942100"] [rev "1"] [msg "SQL Injection Attack Detected via libinjection"] [data "Matched Data: 1c found within REQUEST_COOKIES:idev: 144--3-4-------http%3A%2F%2Fdomain.co.uk%2Findex.php%3Foption%3Dcom_comprofiler%26task%3Dpluginclass%26plugin%3Dcbpaidsubscriptions%26do%3Ddisplayplans%26Itemid%3D243"] [severity "CRITICAL"] [ver "OWASP_CRS/3.0.0"] [maturity "1"] [accuracy "8"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-sqli"] [tag "OWASP_CRS/WEB_ATTACK/SQL_INJECTION"] [tag "WASCTC/WASC-19"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/CIE1"] [tag "PCI/6.5.2"] [hostname "domain.co.uk"] [uri "/media/jui/js/jquery-migrate.min.js"] [unique_id "Wp5gfUOfWp0JBQKZjjpjWAAAAAo"], referer: www.domain.co.uk/administrator/


This is appearing when I try to log into the site - the client IP is mine.

Help!
7 months 1 week ago #302655 by bins
This looks like it could be more than a CB issue.....
7 months 1 week ago - 7 months 1 week ago #302663 by krileon
Looks like mod_security throwing a false positive. Contact your host as they may need to adjust some of their mod_security rules. I don't see anything in the request matching SQL so I'm not sure why that rule would flag it as an injection beyond false positive.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
7 months 1 week ago #302837 by bins
Yup - it was mod_security on that site!
The following user(s) said Thank You: krileon, mikerotec
Moderators: beatnantkrileon
Time to create page: 0.385 seconds
Facebook Twitter Google LinkedIn