Skip to content

πŸ›‘οΈ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Link reporter's GitHub profile in security credits

Omega (QA)e57ab63d4984
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e82999d..1a726c3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,7 +13,7 @@
- _Files: `frontend/js/components/tagManager.js`_
### Fixed
-- **Insecure direct file access via `/api/files/` fixed (reported by Malik Abdullah):** the legacy `/api/files/<path>` route served any uploaded document to any logged-in user with no ownership check and no regard for the admin's document-sharing (`global_view_enabled`) setting β€” while `/api/secure-file/` on the same files correctly returned 403. Verified live: with sharing disabled, a second account downloaded another user's invoice via `/api/files/` (200) while `/api/secure-file/` returned 403. Both routes now share a single `_check_file_authorization()` helper (owner, admin, or global-view setting), so they can no longer drift apart; `/api/files/` also gained the path-traversal guard. With sharing enabled (the default, intentional for family/team instances) cross-user access still works consistently on both routes. Credit: reported via responsible disclosure by Malik Abdullah.
+- **Insecure direct file access via `/api/files/` fixed (reported by Malik Abdullah):** the legacy `/api/files/<path>` route served any uploaded document to any logged-in user with no ownership check and no regard for the admin's document-sharing (`global_view_enabled`) setting β€” while `/api/secure-file/` on the same files correctly returned 403. Verified live: with sharing disabled, a second account downloaded another user's invoice via `/api/files/` (200) while `/api/secure-file/` returned 403. Both routes now share a single `_check_file_authorization()` helper (owner, admin, or global-view setting), so they can no longer drift apart; `/api/files/` also gained the path-traversal guard. With sharing enabled (the default, intentional for family/team instances) cross-user access still works consistently on both routes. Credit: reported via responsible disclosure by [humidnhefty](https://github.com/humidnhefty) (Malik Abdullah, Lupine Security).
- _Files: `backend/file_routes.py`
- **Stored XSS via warranty fields fixed (reported by lazymaster101 and the CSCE 413 Texas A&M team):** warranty cards rendered `product_name`, `vendor`, `model_number`, `warranty_type`, tag names, serial numbers, and the user display name into `innerHTML` without escaping, so a malicious value (e.g. injected through CSV import) executed JavaScript in every viewer's browser. All user-controlled fields are now HTML-escaped before rendering (quotes included, so attribute contexts are safe too), and `product_url` links now also reject `javascript:`/`data:`/`vbscript:` schemes. Verified with live payloads (`<img onerror>`, `<svg onload>`, attribute breakout, `javascript:` URL, malicious tag name) β€” all render as inert text. Credit: reported via responsible disclosure by [lazymaster101](https://github.com/lazymaster101) and the CSCE 413 (Texas A&M University) vulnerability-research team β€” Carrigan Royer, Jayani Singh, Seshadithya Saravanan, Aaditya Srinivasan, Miko Quinones.
- _Files: `frontend/js/components/warrantyRenderer.js`, `frontend/js/components/claims.js`, `frontend/status.js`_
diff --git a/README.md b/README.md
index 703e561..f6b8b1a 100644
--- a/README.md
+++ b/README.md
@@ -323,7 +323,7 @@ This project is licensed under the GNU Affero General Public License v3.0 - see
### Security researchers
* [lazymaster101](https://github.com/lazymaster101) and the CSCE 413 (Texas A&M University) vulnerability-research team β€” Carrigan Royer, Jayani Singh, Seshadithya Saravanan, Aaditya Srinivasan, Miko Quinones β€” for the responsible disclosure of a stored XSS vulnerability.
-* Malik Abdullah β€” for the responsible disclosure of an authorization bypass on the `/api/files/` document-serving route.
+* [humidnhefty](https://github.com/humidnhefty) (Malik Abdullah, Lupine Security) β€” for the responsible disclosure of an authorization bypass on the `/api/files/` document-serving route.
## ⭐Star History