Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the case of packet loss, there can be a mismatch between the request and response of a transaction. #403

Open
bingfengfeifei opened this issue Oct 16, 2023 · 1 comment

Comments

@bingfengfeifei
Copy link

For example, in a TCP session with HTTP request and response packets:

Request 1 => GET /test.js
Response 1 => Response for /test.js
Request 2 => POST /api/v1/test
Response 2 => Response for /api/v1/test

If there is packet loss, such as the loss of Response 1 and Request 2 packets, causing a packet gap, the libhtp may incorrectly combine Request 1 and Response 2 into a single transaction.

@catenacyber
Copy link
Contributor

I think the scenario you describe is correct.
Do you have a pcap to verify this ? (or even better a https://github.com/OISF/suricata-verify PR with a test)

How would you handle this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants