Bonsai Coder
Active member
Some of my users report that when posting a long response (or taking a long time to type a response) they will sometimes get locked out of the site for an hour... after which they are allowed to return and everything runs as normal.
Looking into my server, I have ModSecurity enabled, and see a lot of "Rule 300016: Generic SQL injection protection" hits.
Here is an example:
Looking into my server, I have ModSecurity enabled, and see a lot of "Rule 300016: Generic SQL injection protection" hits.
Here is an example:
The same hits are being triggered several times by the same user trying to "post" or "edit" the same content:Request: POST /threads/satsuki-repot.45070/draft
Action Description: Access denied with code 500 (phase 2).
Justification: Pattern match "(insert[[:space:]]+into.+values|select.*from.+[a-z|A-Z|0-9]|select.+from|bulk[[:space:]]+insert|union.+select|convert.+\\(.*from)" at ARGS:message_html.
Now I can just disable ModSecurity... but I'd like to try to understand these SQL injection warnings. Are they false positives? Or is there a real security risk?Request: POST /threads/satsuki-repot.45070/add-reply
Action Description: Access denied with code 500 (phase 2).
Justification: Pattern match "(insert[[:space:]]+into.+values|select.*from.+[a-z|A-Z|0-9]|select.+from|bulk[[:space:]]+insert|union.+select|convert.+\\(.*from)" at ARGS:message_html.