MEDIUM5.3
PYSEC-2023-187
Quick fix
PYSEC-2023-187 — pretix: upgrade to the fixed version with the command below.
pip install --upgrade 'pretix>=ccdce2ccb8207b82501af3c03f50abc0f819b469'Details
An issue was discovered in pretix before 2023.7.1. Incorrect parsing of configuration files causes the application to trust unchecked X-Forwarded-For headers even though it has not been configured to do so. This can lead to IP address spoofing by users of the application.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/pretix
Introduced in:
0Fixed in: ccdce2ccb8207b82501af3c03f50abc0f819b469Fix
pip install --upgrade 'pretix>=ccdce2ccb8207b82501af3c03f50abc0f819b469'References
- https://github.com/pretix/pretix/tags[WEB]
- https://github.com/pretix/pretix/compare/v2023.7.0...v2023.7.1[WEB]
- https://pretix.eu/about/en/ticketing[WEB]
- https://github.com/pretix/pretix/commit/ccdce2ccb8207b82501af3c03f50abc0f819b469[FIX]
- https://pretix.eu/about/en/blog/20230911-release-2023-7-1/[ARTICLE]
- https://github.com/advisories/GHSA-j9gq-w73w-9h6c[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/pretix"]}'