0

I have an application that i run on an intranet server that runs on tomcat and OS being CentOS 7.

I recently installed an SSL from ZeroSSl.

The url https://rndops.iitg.ac.in/rndops/action.htm throws an error

403 (FORBIDDEN. You don't have permission to access /rndops/action.htm on this server.)

The url https://rndops.iitg.ac.in/rndops/login.htm works fine.

I have given 777 permissions on the project folder rndops inside tomcat/webapps, and also to /var/www/html.

I have also tried setting

AllowOverride All
Require all granted

in httpd.conf, but to no avail.

Any help would be greatly appreciated.

Edit: ssl_error_log shows this entry:

ModSecurity: Access denied with code 403 (phase 2). Pattern match "(^[\"'\\xc2\\xb4\\xe2\\x80\\x99\\xe2\\x80\\x98;]+|[\\"'\xc2\xb4\xe2\x80\x99\xe2\x80\x98;]+$)" at ARGS:displayStatus. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_41_sql_injection_attacks.conf"] [line "64"] [id "981318"] [rev "2"] [msg "SQL Injection Attack: Common Injection Testing Detected"] [data "Matched Data: ; found within ARGS:displayStatus: display:inline;"] [severity "CRITICAL"] [ver "OWASP_CRS/2.2.9"] [maturity "9"] [accuracy "8"] [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 "rndops.iitg.ac.in"] [uri "/rndops/action.htm"] [unique_id "X7yNB3JcqvhTem6@Xc8pbgAAAAo"], referer: https://rndops.iitg.ac.in/rndops/viewForm.htm

Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47
  • Check the error log on the server. The error log will generally display more of the actual reason than what a site visitor gets to see in their web browser – Bob Nov 23 '20 at 11:14
  • I have been monitoring the logs but all it states are the same 403 code and sometimes a 302 code. 302 probably because it redirects immediately to a controller function. – Sarthak Roy Nov 23 '20 at 11:26
  • You are looking at the wrong log. As previously mentioned you need to look at the error log. – Michael Hampton Nov 23 '20 at 12:25

0 Answers0