[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

FoF Pretty Mail 1.1.2 Server-Side Template Injection Vulnerability

Author
Chokri Hammedi
Risk
[
Security Risk Medium
]
0day-ID
0day-ID-39499
Category
web applications
Date add
01-04-2024
Platform
php
Exploit Title: FoF Pretty Mail 1.1.2 Extension for Flarum Server-Side
Template Injection (SSTI)
Exploit Author: Chokri Hammedi
Vendor Homepage: https://flarum.org/
Software Link: https://github.com/FriendsOfFlarum/pretty-mail
Version: 1.1.2
Tested on: Windows XP
CVE: N/A
Description:

The FoF Pretty Mail extension for Flarum is vulnerable to Server-Side
Template Injection (SSTI) due to the unsafe handling of template variables.
An attacker with administrative access can inject malicious code into the
email template, leading to arbitrary code execution on the server.

Steps to Reproduce:

Log in as an administrator on the Flarum forum.
Navigate to the FoF Pretty Mail extension settings.
Edit the email default template and insert the following payload:



{{ 7*7 }}
{{ system('id') }}
{{ system('echo "Take The Rose"') }}

Save the changes to the email template.
Trigger any action that sends an email, such as user registration or
password reset.
The recipient of the email will see the result of the injected expressions
(e.g., "49" for {{ 7*7 }}, the output of the id command for {{ system('id')
}}, and the output of the echo "Take The Rose" command for {{ system('echo
"Take The Rose"') }}) in the email content.

#  0day.today [2024-09-29]  #