changedetection-io
Affected
- introduced
0, fixed0.48.05(ecosystem)
Fixed versions
0.48.05
Fix
- Fixed version
0.48.05pip install --upgrade changedetection-io==0.48.05
Advisory
Also known as: CVE-2024-56509, PYSEC-2026-1242
changedetection.io Vulnerable to Improper Input Validation Leading to LFR/Path Traversal
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
file:../../../../etc/passwd./etc/passwd should pop out.High Basis: The source's own band: HIGH
0, fixed 0.48.05 (ecosystem)0.48.05
0.48.05pip install --upgrade changedetection-io==0.48.05Fix 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