CVE-2023-45815 ArchiveBox: Viewing wget extractor output while logged in as an admin allows archived JS to execute in the admins context
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
ArchiveBox is an open source self-hosted web archiving system. Any users who are using the wget extractor and view the content it outputs. The impact is potentially severe if you are logged in to the ArchiveBox admin site in the same browser session and view an archived malicious page designed to target your ArchiveBox instance. Malicious Javascript could potentially act using your logged-in admin credentials and add/remove/modify snapshots, add/remove/modify ArchiveBox users, and generally do anything an admin user could do. The impact is less severe for non-logged-in users, as malicious Javascript cannot modify any archives, but it can still read all the other archived content by fetching the snapshot index and iterating through it. Because all of ArchiveBox's archived content is served from the same host and port as the admin panel, when archived pages are viewed the JS executes in the same context as all the other archived pages (and the admin panel), defeating most of the browser's usual CORS/CSRF security protections and leading to this issue. Version 0.9.0 contains a patch. As a mitigation for this issue would be to disable the wget extractor by setting archivebox config --set SAVE_WGET=False, ensure you are always logged out, or serve only a static HTML version of your archive.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ArchiveBox | <= 0.6.2; = < 0.9.0 | after 0.6.2 | Fixed |
| pypi archivebox(PyPI) | < 0.7.0; < 0.9.0; = 0.4.6; = 0.4.8 +75 more | 0.7.0, 0.9.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi archivebox(PyPI) | < 0.9.0 | 0.9.0 |
| pypi archivebox(PyPI) | = 0.4.11 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.12 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.13 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.14 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.15 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.16 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.17 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.18 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.19 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.20 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.21 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.6 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.8 | No fix listed |
| pypi archivebox(PyPI) | = 0.4.9 | No fix listed |
| pypi archivebox(PyPI) | = 0.5.0 | No fix listed |
| pypi archivebox(PyPI) | = 0.5.1 | No fix listed |
| pypi archivebox(PyPI) | = 0.5.2 | No fix listed |
| pypi archivebox(PyPI) | = 0.5.3 | No fix listed |
| pypi archivebox(PyPI) | = 0.5.4 | No fix listed |
| pypi archivebox(PyPI) | = 0.6.0 | No fix listed |
| pypi archivebox(PyPI) | = 0.6.1 | No fix listed |
| pypi archivebox(PyPI) | = 0.6.2 | No fix listed |
| pypi archivebox(PyPI) | = 0.7.0 | No fix listed |
| pypi archivebox(PyPI) | = 0.7.1 | No fix listed |
Show 56 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi archivebox(PyPI) | = 0.7.2 | No fix listed |
| pypi archivebox(PyPI) | = 0.7.4 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc0 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc1 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc10 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc11 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc12 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc13 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc14 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc15 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc16 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc17 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc18 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc2 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc20 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc21 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc22 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc23 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc24 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc25 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc26 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc27 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc28 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc29 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc3 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc30 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc31 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc32 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc33 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc34 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc35 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc36 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc37 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc38 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc39 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc4 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc40 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc41 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc42 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc43 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc44 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc45 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc46 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc47 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc48 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc49 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc5 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc50 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc51 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc6 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc8 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.5rc9 | No fix listed |
| pypi archivebox(PyPI) | = 0.8.6rc3 | No fix listed |
| pypi archivebox(PyPI) | < 0.7.0 | 0.7.0 |
| ArchiveBox | = < 0.9.0 | No fix listed |
| ArchiveBox | <= 0.6.2 | No fix listed |
References
- https://github.com/ArchiveBox/ArchiveBox/security/advisories/GHSA-cr45-98w9-gwqx patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/ArchiveBox/ArchiveBox/issues/239 exploit issue-tracking
- https://github.com/ArchiveBox/ArchiveBox/pull/1773 patch
- https://github.com/ArchiveBox/ArchiveBox/commit/a6548df8d0aae1d3d326deb1191b128232708166 patch
- https://en.wikipedia.org/wiki/Cross-site_request_forgery
- https://github.com/ArchiveBox/ArchiveBox#caveats product
- https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#save_wget
- https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#2-export-and-host-it-as-static-html
- https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview
- https://github.com/pypa/advisory-database/tree/main/vulns/archivebox/PYSEC-2023-229.yaml
- github.com