Audit log validation
In the Weblate docker image, the IP address recorded in audit logs could be forged by sending an X-Forwarded-For header during login. An attacker could therefore make audit log entries show a false source address, which could hinder investigation if an account were compromised.
- Triaged in 15 hours
- Fixed in 5 days
- Disclosed after 9 months
Issue
For the docker image (git clone https://github.com/WeblateOrg/docker.git weblate-docker), the IP address in the audit log (in the user's profile, and in the administration console) can be forged using the X-Forwarded-For header during the login process.
This does not affect http://demo.weblate.org/.
For http://demo.weblate.org/, User-Agent: '"<b>test was accepted. This will not lead to XSS issues, but could potentially be an issue if the input is used elsewhere, such as a database query.
Impact
Consequence
When using the docker image, it may be possible to spoof audit log entries. If an account were compromised, it may be more difficult to determine this from the audit log entries.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application trusted the client-supplied X-Forwarded-For header for logging the client address instead of only trusting it from a known proxy.
Impact
Audit log entries may be spoofed, making it harder to determine whether an account was compromised; the text notes the hosted demo is not affected.
What the attacker needed
Docker image deployment; ability to send custom headers
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Audit logs are records of who did what and from where, used later to investigate incidents. The server was trusting a header that the client itself can set, so a user could claim to be logging in from a different address than the real one. This makes the log less trustworthy, though it does not by itself give access to anything.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.