Skip to content

Information leakage in default user agent #2785

Description

@asieira

I've noticed that requests adds a user-agent header by default that looks like the following: python-requests/2.7.0 CPython/2.7.9 Linux/3.14.44-32.39.amzn1.x86_64.

Including the CPython and OS kernel version are an unnecessary information leakage that could have security implications, as per the OWASP documentation.

I would like to suggest the default is changed to follow the 'bot' convention described here with the requests version and a link to the requests documentation: python-requests/<version> (http://http://www.python-requests.org/).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions