Exploit database

Vulnerability

CVE-2024-32651

Server Side Template Injection in Jinja2 allows Remote Command Execution

Vulnerability details

Score
10.0
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Description

changedetection.io is an open source web page change detection, website watcher, restock monitor and notification service. There is a Server Side Template Injection (SSTI) in Jinja2 that allows Remote Command Execution on the server host. Attackers can run any system command without any restriction and they could use a reverse shell. The impact is critical as the attacker can completely takeover the server machine. This can be reduced if changedetection is behind a login page, but this isn't required by the application (not by default and not enforced).

CVE Program

Exploit source choices

4 sources
changedetection.io Notification Jinja2 SSTI RCE
MSF-linux--http--changedetection_rce_cve_2024_32651MetasploitUnix / remote

This module exploits Remote Code Execution (RCE) vulnerability (CVE-2024-32651) in changedetection.io which is a service for detecting and monitoring changes in web pages. Versions prior to 0.45.21 are vulnerable. The vulnerability occurs when the application renders user-controlled notification fields (title and body) using a non-sandboxed Jinja2 environment. The default configuration does not require login credentials, so an unauthenticated attacker is able to create a watch and send a test notification containing a command-injected template. This allows the attacker to execute a payload as the user running the service.

2024-05-08changedetection_rce_cve_2024_32651.rb
zcrosman/cve-2024-32651
GH-118d71a4b691284dfcd5b950371c2ba7GitHubUnofficial GitHub source

changedetection rce though ssti

2024-05-262 files · 1 stars