Thumbor
Thumbor has HMAC validation bypass via multiple .replace() calls when removing URL signature
Thumbor is an open-source photo thumbnail service by globo.com. Prior to 7.8.0, Thumbor’s HMAC validation can be bypassed due to the use of Python’s .replace() when removing the signature from the URL before validation. Since .replace() removes all occurrences of the substring, an attacker can insert the same signature multiple times in the URL and manipulate the final URL used for validation. This allows crafting URLs where the validated string differs from the actual requested resource, enabling loading images from unintended domains or paths. This issue is fixed in 7.8.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 7.8.0
Fixed in 7.8.0
Mitigation
Upgrade thumbor to 7.8.0 or later.
References
- Vendor advisory github.com/thumbor/thumbor/security/advisories…
- Patch github.com/thumbor/thumbor/commit/e3ae3e250053…
- Release notes github.com/thumbor/thumbor/releases/tag/7.8.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.