PYSEC-2023-187: Medium severity pretix pretix vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pretixto a version that resolves this vulnerability.Fixed in 2023.7.1
Event History
Frequently Asked Questions
Which deployments are exposed to IP address spoofing?
Pretix versions before 2023.7.1 are affected. The issue applies where the application processes requests carrying X-Forwarded-For headers, because those headers may be trusted even when that trust was not configured.
What does an attacker need to exploit this issue?
An attacker can exploit it remotely without authentication or user interaction by supplying a crafted X-Forwarded-For header. The impact described is spoofing the IP address seen by the application.
How can I remediate the issue?
Upgrade pretix to 2023.7.1 or a later version. The fix corrects the configuration-file parsing behavior that allowed unchecked X-Forwarded-For headers to be trusted.