The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-8802

CVE-2026-8802: Open Source Point of Sale Path Traversal

CVE-2026-8802 is a path traversal vulnerability in Open Source Point of Sale up to version 3.4.2 that allows remote attackers to access unauthorized files. This article covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-8802 Overview

CVE-2026-8802 is a path traversal vulnerability [CWE-22] in Open Source Point of Sale (opensourcepos) versions up to 3.4.2. The flaw exists in the getPicThumb function within app/Controllers/Items.php. Attackers can manipulate the pic_filename argument to traverse outside the intended uploads/item_pics/ directory. The vulnerability is remotely exploitable and requires low-privileged authenticated access.

The maintainers addressed the issue in commit def0c27a0e252668df8d942fc31e16d1edfd7323, which sanitizes the filename using PHP's basename() function and validates file extensions against an allowlist.

Critical Impact

Authenticated remote attackers can read arbitrary files on the server filesystem by injecting ../ sequences into the pic_filename parameter, exposing application source code, configuration files, and other sensitive data.

Affected Products

  • opensourcepos Open Source Point of Sale versions up to and including 3.4.2
  • The app/Controllers/Items.php controller component
  • Deployments exposing the getPicThumb endpoint to authenticated users

Discovery Timeline

  • 2026-05-18 - CVE CVE-2026-8802 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-8802

Vulnerability Analysis

The getPicThumb function in app/Controllers/Items.php accepts a pic_filename parameter and uses it to locate thumbnail images on disk. Before the patch, the controller called rawurldecode() on the user-supplied filename and passed the result directly to glob() and pathinfo() without stripping directory components.

An attacker can supply values such as ..%2F..%2Fapp%2FConfig%2FDatabase.php to escape the ./uploads/item_pics/ base directory. The rawurldecode() call transforms the encoded sequences into literal ../ segments, allowing traversal to arbitrary filesystem locations the web server process can read.

Root Cause

The root cause is missing input sanitization on a filename parameter used in filesystem operations. The original implementation trusted the decoded value of pic_filename and did not enforce that the resolved path remained within the intended upload directory. There was also no allowlist validation of file extensions.

Attack Vector

Exploitation requires network access to the application and a low-privileged authenticated session. An attacker submits a crafted HTTP request to the route handled by getPicThumb, supplying URL-encoded traversal sequences in the pic_filename argument. The server then attempts to load files outside the upload directory.

php
     {
         helper('file');
 
-        $pic_filename = rawurldecode($pic_filename);
-        $file_extension = pathinfo($pic_filename, PATHINFO_EXTENSION);
+        // Security: Sanitize filename to prevent path traversal
+        // Use basename() to strip directory components and prevent '../' attacks
+        $pic_filename = basename(rawurldecode($pic_filename));
+        $file_extension = strtolower(pathinfo($pic_filename, PATHINFO_EXTENSION));
+
+        // Validate file extension against system-configured allowed image types
+        // Handle both legacy pipe-separated and current comma-separated formats
+        // Fallback to types that GD library can process for thumbnail generation
+        $allowed_types = $this->config['image_allowed_types'] ?? 'jpg,jpeg,gif,png,webp,bmp,tif,tiff';
+        $allowed_extensions = strpos($allowed_types, '|') !== false
+            ? explode('|', $allowed_types)
+            : explode(',', $allowed_types);
+
+        if (!in_array($file_extension, $allowed_extensions, true)) {
+            return $this->response->setStatusCode(400)->setBody('Invalid file type');
+        }
+
         $images = glob("./uploads/item_pics/$pic_filename");
         $base_path = './uploads/item_pics/' . pathinfo($pic_filename, PATHINFO_FILENAME);

Source: GitHub Commit def0c27. The patch wraps the decoded filename with basename() to strip any directory components and rejects requests whose extension is not in the configured allowlist.

Detection Methods for CVE-2026-8802

Indicators of Compromise

  • HTTP requests to Items controller routes containing ../, ..%2F, or ..%5C sequences within the pic_filename parameter.
  • Web server access logs showing successful 200 responses for pic_filename values referencing files outside uploads/item_pics/, such as Database.php or .env.
  • PHP glob() errors or unusual file read activity originating from the Items controller process.

Detection Strategies

  • Inspect web application firewall (WAF) and reverse proxy logs for encoded traversal patterns targeting the getPicThumb endpoint.
  • Deploy file integrity monitoring on application configuration files and credential stores referenced by the Open Source Point of Sale deployment.
  • Correlate authenticated session activity with anomalous pic_filename query strings to surface low-and-slow enumeration attempts.

Monitoring Recommendations

  • Alert on repeated 4xx and 5xx responses from the Items controller, which can indicate fuzzing of the filename parameter.
  • Monitor outbound responses for content types that do not match expected image MIME types when served from the thumbnail endpoint.
  • Capture and retain full URI query strings in access logs to support post-incident traversal analysis.

How to Mitigate CVE-2026-8802

Immediate Actions Required

  • Apply commit def0c27a0e252668df8d942fc31e16d1edfd7323 or upgrade to a release that includes pull request #4545.
  • Restrict access to the Open Source Point of Sale administrative interface to trusted networks while patching is in progress.
  • Audit web server logs for prior exploitation attempts referencing pic_filename with traversal sequences.

Patch Information

The upstream fix is published in the GitHub Security Advisory GHSA-xq63-3v4g-39r5 and merged via pull request #4545. The patch enforces basename() sanitization on the decoded filename and validates the extension against the configured image_allowed_types list. Administrators should pull the latest release branch and redeploy the application.

Workarounds

  • Place a WAF rule in front of the application that blocks requests containing .., %2e%2e, or %2f sequences in the pic_filename parameter.
  • Configure the web server to deny direct access to sensitive files such as .env, Config/*.php, and database credentials at the filesystem layer.
  • Run the PHP process under a least-privilege user account that lacks read access to files outside the application's public and writable directories.
bash
# Example ModSecurity rule to block traversal attempts on the thumbnail endpoint
SecRule REQUEST_URI "@contains getPicThumb" \
    "chain,deny,status:400,id:1026880201,msg:'CVE-2026-8802 path traversal attempt'"
    SecRule ARGS:pic_filename "@rx (\.\.|%2e%2e|%2f|%5c)" "t:lowercase,t:urlDecodeUni"

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechOpensourcepos

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Changes

  • GitHub Pull Request

  • GitHub Security Advisory

  • VulDB Submission Report

  • VulDB Vulnerability Details

  • VulDB CTI Information
  • Related CVEs
  • CVE-2026-8803: Open Source Point of Sale Auth Bypass Flaw

  • CVE-2026-32712: Open Source Point Of Sale XSS Vulnerability

  • CVE-2026-33730: Open Source Point Of Sale Auth Bypass

  • CVE-2026-26745: OpenSourcePOS SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English