Executive brief
rdiffweb, a web interface for rdiff-backup repositories, is vulnerable to a denial-of-service attack. An attacker can submit an excessively long username during login or registration, which can crash the service or make it unresponsive by consuming all available memory. This prevents legitimate users from accessing their backups and managing their data.
Technical details
rdiffweb prior to version 2.4.8 fails to validate the length of the 'username' input field. This vulnerability (CWE-130) allows a remote, unauthenticated attacker to send a specially crafted request containing an extremely large username string. Processing this request can lead to excessive memory consumption or memory corruption, resulting in a Denial of Service (DoS) condition. The issue is resolved in version 2.4.8 by implementing field limits for usernames, emails, and root directory paths.
Affected products
- ikus060 rdiffweb < 2.4.8
Timeline
- 2022-09-26: advisory: NVD published CVE-2022-3290
- 2022-09-27: disclosed: GitHub Advisory published
- 2022-09-27: patched: Version 2.4.8 released
References
- https://github.com/ikus060/rdiffweb/commit/667657c6fe2b336c90be37f37fb92f65df4feee3
- https://huntr.dev/bounties/d8b8519d-96a5-484c-8141-624c54290bf5
- https://github.com/pypa/advisory-database/tree/main/vulns/rdiffweb/PYSEC-2022-292.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/rdiffweb/PYSEC-2022-43184.yaml