Skip to content

Bug: EmptyResponse.getheader input not sanitized #201

@ichliebepentest

Description

@ichliebepentest

Bug Description

The input to the function is not sanitized, which may accept any user side input and lead to security breaches.

Steps to Reproduce

#!/usr/bin/env python3

from evo.common import EmptyResponse

payload = '<script>alert(1)</script>'
obj = EmptyResponse(status=404)
result = obj.getheader('key', payload)
print(f"Payload not sanitized: {result}")

Expected Behavior

The input should be sanitized to only allow certain characters

Actual Behavior

Accepts any characters

Environment

linux, latest evo-sdk

Screenshots/Logs

Acceptance Criteria

  • input to header sanitized

Additional Context

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