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

Leading whitespaces in data[cookies] #272

Open
mintos5 opened this issue Aug 5, 2020 · 0 comments
Open

Leading whitespaces in data[cookies] #272

mintos5 opened this issue Aug 5, 2020 · 0 comments

Comments

@mintos5
Copy link

mintos5 commented Aug 5, 2020

Data sent from snare to tanner have small issue. In short this data can be represented as dictionary of keys: method, path, headers, uuid, peer, status, cookies, etc...
Value of data[cookies] is another dictionary containing cookies names and values: This dictionary is not created properly and some keys (cookies names) are generated with leading whitespace.

I found the issue is connected to this part of code:
https://github.com/mushorg/snare/blob/master/snare/tanner_handler.py#L45

The easiest fix is to remove whitespaces with something like strip() but I am not sure if it is the correct way to fix this problem.

Hopefully somebody will look at this problem.

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

No branches or pull requests

1 participant