Skip to main content
Vulnerability Database/CVE-2026-108164

CVE-2026-108164: OSSN Information Disclosure Vulnerability

CVE-2026-108164 is an insecure direct object reference flaw in Open Source Social Network that exposes private message attachments to unauthorized users. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108164 Overview

CVE-2026-108164 is an Insecure Direct Object Reference (IDOR) vulnerability in Open Source Social Network (OSSN) through version 10.1. The flaw resides in the components/OssnMessages/ossn_com.php component and allows authenticated users to retrieve private message attachments belonging to other users. The /messages/attachment/{guid} route accepts file GUIDs without validating whether the requester is the sender or recipient of the message. Attackers can enumerate sequential or guessed GUIDs to harvest private attachments from conversations across the platform. The weakness maps to CWE-639: Authorization Bypass Through User-Controlled Key.

Critical Impact

Any authenticated OSSN user can read confidential attachments from other users' private conversations by iterating file GUIDs against the attachment endpoint.

Affected Products

  • Open Source Social Network (OSSN) versions through 10.1
  • components/OssnMessages/ossn_com.php message attachment handler
  • Deployments exposing the /messages/attachment/{guid} route

Discovery Timeline

  • 2026-10-10 - CVE-2026-108164 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-108164

Vulnerability Analysis

OSSN exposes a route at /messages/attachment/{guid} that serves file attachments from private conversations. The handler in components/OssnMessages/ossn_com.php resolves the supplied GUID to a stored attachment and returns the file content. The handler performs no ownership check against the authenticated session. It does not confirm that the requesting user is the sender or recipient of the parent message. Any user with valid credentials can request attachments belonging to arbitrary conversations by supplying another file's GUID.

Because GUIDs are issued sequentially inside OSSN, enumeration is trivial. An attacker can script requests across a predictable identifier range and download every attachment that exists on the instance. The confidentiality impact includes personal images, documents, and sensitive communications exchanged between unrelated users.

Root Cause

The root cause is missing authorization logic in the attachment retrieval path. The code queries attachment metadata by GUID and streams the file without correlating the record against the current user's conversations. This is a textbook IDOR condition described by CWE-639, where a user-controlled key directly addresses a protected resource. Technical details of the vulnerable lines are published in the OssnMessages Code Snippet and the HackMD IDOR Analysis.

Attack Vector

Exploitation requires only a low-privileged authenticated account on the target OSSN instance. The attacker issues HTTP GET requests to /messages/attachment/{guid} iterating the GUID value. Each successful response returns the raw attachment belonging to another user's private message thread. No social engineering, elevated privileges, or user interaction is required. Vendor response and the remediation commit are tracked in the OSSN Commit Overview, the upstream issue thread, and the VulnCheck Advisory on OSSN IDOR.

// Exploitation pattern (conceptual)
// Authenticated attacker enumerates attachment GUIDs:
// GET /messages/attachment/1001
// GET /messages/attachment/1002
// GET /messages/attachment/1003
// Server returns attachments without verifying sender/recipient.

Detection Methods for CVE-2026-108164

Indicators of Compromise

  • Repeated HTTP GET requests to /messages/attachment/ with sequential or incrementing GUID values from a single authenticated session.
  • Access patterns where one user account retrieves attachments associated with conversations that do not include that account.
  • Spikes in attachment downloads originating from accounts with no corresponding message-send or message-read activity.

Detection Strategies

  • Instrument the OSSN application or reverse proxy to log the requesting user ID alongside each /messages/attachment/{guid} call and alert when the user is not a participant of the parent conversation.
  • Baseline normal attachment access rates per user and flag accounts that exceed expected volumes within short time windows.
  • Correlate web access logs with database records to identify downloads that cross conversation ownership boundaries.

Monitoring Recommendations

  • Forward OSSN web server access logs and PHP application logs into a central analytics platform for retention and query.
  • Build alerting on enumeration patterns such as monotonically increasing GUIDs from one source IP or session cookie.
  • Review attachment access history after patching to identify accounts that may have exfiltrated data prior to remediation.

How to Mitigate CVE-2026-108164

Immediate Actions Required

  • Apply the upstream fix referenced in the OSSN Commit Overview to the deployed OSSN instance.
  • Audit web and application logs for prior exploitation of the /messages/attachment/{guid} endpoint and notify affected users if attachment access occurred outside expected conversations.
  • Restrict new account registration on exposed OSSN instances until the patch is applied, since exploitation requires only a low-privileged account.

Patch Information

The OSSN project addressed the IDOR by adding ownership validation to the message attachment handler. Operators should upgrade past version 10.1 or apply the fix from the referenced commit. Confirm that components/OssnMessages/ossn_com.php verifies the authenticated user against the sender and recipient of the parent message before returning any attachment content. See the Open Source Social Network Repository and the VulnCheck Advisory on OSSN IDOR for release details.

Workarounds

  • Place the OSSN instance behind a web application firewall rule that denies access to /messages/attachment/ for sessions whose user ID does not match the attachment owner, when such correlation is feasible.
  • Temporarily disable the private messaging component on OSSN instances where immediate patching is not possible.
  • Rotate attachment storage identifiers to non-sequential, high-entropy values to reduce enumeration feasibility as a defense-in-depth measure.
bash
# Example reverse-proxy mitigation: block anonymous or unauthenticated
# access and rate-limit sequential enumeration of attachment GUIDs.
location ~ ^/messages/attachment/ {
    limit_req zone=ossn_attach burst=5 nodelay;
    if ($cookie_ossn_session = "") { return 403; }
    proxy_pass http://ossn_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.