Skip to content

Leading whitespaces in data[cookies] #272

@mintos5

Description

@mintos5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions