Prisma Cloud Compute: WAAS unable to block internet attacks for a Web Server hosted behind a Reverse Proxy Server

Prisma Cloud Compute: WAAS unable to block internet attacks for a Web Server hosted behind a Reverse Proxy Server

3404
Created On 07/15/22 01:58 AM - Last Modified 11/27/24 18:09 PM


Symptom


Sample Setup

{Internet} ---- [Reverse Proxy Server] ---- [Apache HTTP Web Server]

  • Apache HTTP Web Server hosted behind a Reverse Proxy Server.
  • Prisma Cloud Defender installed on the Web Server.
  • However, Prisma Cloud WAAS unable to block internet attacks (such as SQL injection or SQLi) for this Web Server.


Environment


  • Prisma Cloud Compute
  • Reverse Proxy


Cause


  • The attack will not be blocked by providing either the IP address or Hostname of the Internal Web Server under:

Compute > Defend WAAS > Host > Rule > App definition > Protected endpoints > HTTP host.



Resolution


  • Review the WAAS Events under Monitor > Events > WAAS for hosts > Select an Attack type > Aggregated WAAS Events.

In the following example, we select the Attack type 'SQL Injection' to view all the Aggregated WAAS Events for this attack.
 

Screenshot 2022-07-15 at 10.06.45 AM.png

  • The HTTP data section will provide decoded URL of the HTTP Host (Reverse Proxy Server URL in our case).
  • Change the HTTP Host to this URL under:

Compute > Defend WAAS > Host > Rule > App definition > Protected endpoints > HTTP host. 

Screenshot 2022-07-15 at 10.19.44 AM.png
 


Additional Information


Eg. To test SQL injection, run the following command:

curl -I http://<http_hostname>:<external_port>/\?id\=%27%20OR%20%271
  • If the attack is blocked successfully, you should see an HTTP 403 Forbidden message.

Screenshot 2022-07-15 at 9.43.13 AM.png



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000CqYZCA0&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language