REBUILD admin privilege escalation via file-preview token leak
getrebuild rebuild
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| getrebuild rebuild |
| No fix yet |
Original description
REBUILD 4.3.0 through 4.5.4 contains a privilege escalation vulnerability that allows low-privileged authenticated users to obtain a SYSTEM_USER token by requesting /commons/file-preview with an arbitrary src value. Attackers can read the leaked _csrfToken from the redirect Location header and send it as X-AuthToken to access the admin center and administrative APIs.
From the CVE record · VulnCheck
References
- vul.yulun.ac.cn/20261106/rebuild
- github.com/getrebuild/rebuild/blob/741e3e50553665ef076596099ab04ff61ded8ddf/src/main/java/com/rebuild/web/commons/FilePreviewer.java#L376-L389
- github.com/getrebuild/rebuild/blob/741e3e50553665ef076596099ab04ff61ded8ddf/src/main/java/com/rebuild/api/user/AuthTokenManager.java#L62-L71
- vulncheck.com/advisories/rebuild-4.3.0-through-4.5.4-privilege-escalation-via-commons-file-preview-csrf-token-leak
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129873.json
- nvd.nist.gov/vuln/detail/CVE-2026-129873
- github.com/getrebuild/rebuild