changedetection.io API endpoint is not secured with API token
Low severity
GitHub Reviewed
Published
Jan 19, 2024
in
dgtlmoon/changedetection.io
•
Updated Sep 13, 2024
Description
Published by the National Vulnerability Database
Jan 19, 2024
Published to the GitHub Advisory Database
Jan 23, 2024
Reviewed
Jan 23, 2024
Last updated
Sep 13, 2024
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 providingx-api-key
header.https://github.com/dgtlmoon/changedetection.io/blob/9510345e01ea8e308c339163d8e8b030ce5ac7f1/changedetectionio/api/api_v1.py#L129-L156
PoC
x-api-key
:x-api-key
. Expected - 401/403 error. Actual - list of snapshots is listed.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.
References