changedetection-io
Affected
- introduced
0.39.14, fixed0.45.13(ecosystem)
Fixed versions
0.45.13
Fix
- Fixed version
0.45.13pip install --upgrade changedetection-io==0.45.13
Advisory
Also known as: CVE-2024-23329, PYSEC-2024-15
changedetection.io API endpoint is not secured with API token
Summary
API endpoint /api/v1/watch/<uuid>/history can be accessed by any unauthorized user.
Details
WatchHistory resource does not have @auth.check_token annotation, which means it can be accessed without providing x-api-key header.
https://github.com/dgtlmoon/changedetection.io/blob/9510345e01ea8e308c339163d8e8b030ce5ac7f1/changedetectionio/api/api_v1.py#L129-L156
PoC
x-api-key:$ curl -H "x-api-key: apikeyhere" http://localhost:5000/api/v1/watch
{"uuid": ...}
x-api-key. Expected - 401/403 error. Actual - list of snapshots is listed.$ curl http://localhost:5000/api/v1/watch/uuid/history
{"timestamp": "/path/to/snapshot.txt"}
Impact
Anybody can check one's watch history. However, because unauthorized party first needs to know watch UUID, and the watch history endpoint itself returns only paths to the snapshot on the server, an impact on users' data privacy is minimal.
Low Basis: The source's own band: LOW
0.39.14, fixed 0.45.13 (ecosystem)0.45.13
0.45.13pip install --upgrade changedetection-io==0.45.13Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0