Hello,
I'm getting this error `Unexpected response from server - please try again or switch off Javascript.` when answering a question, after I clicked "Add answer". The actual response from the server is `HTTP 418 I'm a teapot'.
It's a clean installation of Q2A. I've only added the Markdown editor and a custom theme (derived from "Classic", I've only changed some CSS). It's hosted on a shared hosting.
Question2Answer version: 1.8.6
Build date: 2021-04-20
Q2A database version: 67
Database size: 1.5 MB
PHP version: 7.4.15
MySQL version: 5.7.28-log
This is what is shown in the error log:
```
[Sun Jun 13 22:16:51.540416 2021] [:error] [pid 29994:tid 140051224971008] [client ...] [client ...] ModSecurity: Warning. Pattern match "(?:^|[\\\\/])\\\\.\\\\.(?:[\\\\/]|$)" at ARGS:qa_root. [file "/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-930-APPLICATION-ATTACK-LFI.conf"] [line "71"] [id "930110"] [msg "Path Traversal Attack (/../)"] [data "Matched Data: ../ found within ARGS:qa_root: ../"] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-lfi"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/255/153/126"] [hostname "wotas.net"] [uri "/"] [unique_id "..."], referer:
https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt
[Sun Jun 13 22:16:51.540835 2021] [:error] [pid 29994:tid 140051224971008] [client ...] [client ...] ModSecurity: Warning. Pattern match "(?:^|[\\\\/])\\\\.\\\\.(?:[\\\\/]|$)" at ARGS:qa_root. [file "/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-930-APPLICATION-ATTACK-LFI.conf"] [line "71"] [id "930110"] [msg "Path Traversal Attack (/../)"] [data "Matched Data: ../ found within ARGS:qa_root: ../"] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-lfi"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "capec/1000/255/153/126"] [hostname "wotas.net"] [uri "/"] [unique_id "..."], referer:
https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt
[Sun Jun 13 22:16:51.624707 2021] [:error] [pid 29994:tid 140051224971008] [client ...] [client ...] ModSecurity: Access denied with code 418 (phase 2). Operator GE matched 7 at TX:anomaly_score. [file "/dh/apache2/template/etc/mod_sec3_CRS/REQUEST-949-BLOCKING-EVALUATION.conf"] [line "150"] [id "949110"] [msg "Inbound Anomaly Score Exceeded (Total Score: 10)"] [severity "CRITICAL"] [ver "OWASP_CRS/3.3.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-generic"] [hostname "wotas.net"] [uri "/"] [unique_id "..."], referer:
https://wotas.net/2/can-someone-help-finding-good-resource-for-migrating-address-book-for-use-with-mutt
```
I'm not sure what is happening... how can I fix this?
I was able to answer the question after disabling javascript, so I think this is a problem with the ajax request. In particular it appears to be an issue with the `qa_root: ../` parameter.