tintinweb / scapy-ssl_tls

SSL/TLS layers for scapy the interactive packet manipulation tool
GNU General Public License v2.0
419 stars 156 forks source link

UserWarning: Verification of GCM tag failed: MAC check failed #163

Open jurgonaut opened 4 years ago

jurgonaut commented 4 years ago

I am seeing this warning:

/usr/local/lib/python3.7/dist-packages/scapy/layers/ssl_tls_crypto.py:1095: UserWarning: Verification of GCM tag failed: MAC check failed
  warnings.warn("Verification of GCM tag failed: %s" % why)

Firs I do a "do_handshake" on a TLSSoket, the handshake is successful and after that I do do_round_trip(TLSPlaintext(data=)). After the round trip the warning is printed. The program works fine I just want to know if the warning can be ignored or otherwise how to fix it.

Thanks in advance and for the great work you are doing with this module.

krizhanovsky commented 3 years ago

We encountered the problem (https://github.com/tempesta-tech/tempesta/issues/1310) as well and fixed it with https://github.com/tempesta-tech/tempesta-test/pull/179/commits/51f26808dbf8eb22a6c3019987df154eb1c3a70a . I didn't open a pull request for this original repo since it's unsupported any more, but I hope the fix will be useful for other people facing the problem.