Advisory

GHSA-j5vv-6wjg-cfr8

Also known as: CVE-2024-56509, PYSEC-2026-1242

Summary

changedetection.io Vulnerable to Improper Input Validation Leading to LFR/Path Traversal

Details

Summary
Improper input validation in the application can allow attackers to perform local file read (LFR) or path traversal attacks. These vulnerabilities occur when user input is used to construct file paths without adequate sanitization or validation. For example, using file:../../../etc/passwd or file: ///etc/passwd can bypass weak validations and allow unauthorized access to sensitive files. Even though this has been addressed in previous patch, it is still insufficient.

Details
The check in this line of code is insufficient.

if re.search(r'^file:/', url.strip(), re.IGNORECASE):

The attacker can still bypass this by using:
-file:../../../../etc/passwd
-file: ///etc/passwd (with space before /)

PoC

  • Open up a changedetection.io instance with a webdriver configured.
  • Create a new watch with file:../../../../etc/passwd.
  • Check the watch preview.
  • The contents of /etc/passwd should pop out.

Screenshots
image
image

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-12-27 18:02 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

changedetection-io

PyPI · All systems

Affected

  • introduced 0, fixed 0.48.05 (ecosystem)

Fixed versions

0.48.05

Fix

  • Fixed version 0.48.05
    pip install --upgrade changedetection-io==0.48.05

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences