11

I understand Web Application Layer Firewall (WAF) uses an SSL cert to decrypt and inspect the traffic before passing to the backend server. If an attacker could gain admin access to both the WAF application and the host server, is there any way they could view the sensitive information such as login credentials which would be present in the body of an HTTP request?

1
  • 4
    If attacker compromises the host, the WAF doesn't matter and needn't even exist; the host always has the plaintext. In practice web-host compromises seem to occur many thousands of times more than WAF compromises. Commented Nov 2, 2021 at 3:11

1 Answer 1

14

Yes, the configuration is as follows:

[client web browser] <--TLS--> [WAF] <--TLS--> [origin web server]

So, the WAF essentially has a 'man in the middle' (MITM) position between the client web browser and the origin web server. Therefore, the scenario that you describe is entirely possible.

4
  • Thank you. Are there any requirements for this to be possible? Someone suggested that a private key is required to decrypt. I'm worried that WAF might temporarily store the decrypted traffic in clear text for inspection during which an attacker could access them.
    – sxmad
    Commented Nov 1, 2021 at 19:56
  • 9
    The WAF must have the private key that corresponds with the public key in the certificate that it presents to the user's browser. Otherwise, the WAF would not be able to inspect the plaintext requests from the browser, in order to do its job. Hopefully, this private key is well protected (e.g. stored in a HSM). But, notwithstanding, the WAF sees the plaintext, so if the WAF is compromised by an attacker, this attacker could see the plaintext as well.
    – mti2935
    Commented Nov 1, 2021 at 19:59
  • 4
    @sxmad WAF systems generally have extensive logging facilities. Logs (in some cases including all of the information exchanged, sensitive parts logged indiscriminately) are generally guarded less than the private key. You just need to compromise the log storage.
    – fraxinus
    Commented Nov 2, 2021 at 9:26
  • Thanks @mti2935 and fraxinus. This is helpful.
    – sxmad
    Commented Nov 5, 2021 at 19:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .