A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python-security.readthedocs.io/pypi-vuln/index-2020-02-22-upload_endpoint_csrf.html below:

Upload endpoint CSRF vulnerability — Python Security 0.0 documentation

Upload endpoint CSRF vulnerability Summary

A Cross Site Request Forgery vulnerability was discovered in the endpoint which accepts uploads to PyPI.

Reported vulnerability Upload endpoint vulnerable to CSRF

Although PyPI implements CSRF protection for endpoints with side effects throughout the views and endpoints for the primary web user interface, that protection is not implemented for the upload endpoint at https://upload.pypi.org/legacy/. This endpoint is not intended for browsers, but rather clients such as setuptools and twine which do not authenticate using HTTP Sessions or Cookies.

The upload endpoint was misconfigured to accept HTTP Session authentication cookies from pypi.org. Combined with intentional disabling of CSRF protection on this endpoint, an attacker could have constructed a form to trick PyPI users into uploading releases to PyPI.

Initially resolved in: https://github.com/pypa/warehouse/pull/7432

Assessment

We are unable to directly determine if this vulnerabilities was exploited. PyPI stores an Audit Log of events modifying user accounts and projects on the service. These log successful logins via the login form but were not configured to log authentication via other methods as they were assumed to be associated with package uploads only, which are logged separately.

Reccomendations

Users are encouraged to review their Account Security History regularly to determine if any suspicious activity has taken place. If you identify any such activity, please report it per our published security policy.

Timeline

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4