Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-47749

CVE-2021-47749: YouPHPTube Path Traversal Vulnerability

CVE-2021-47749 is a path traversal flaw in YouPHPTube 7.8 and earlier that lets unauthenticated attackers access arbitrary files via the lang parameter. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2021-47749 Overview

CVE-2021-47749 is a Local File Inclusion (LFI) vulnerability affecting YouPHPTube versions 7.8 and earlier. This vulnerability allows unauthenticated attackers to access arbitrary files on the server by manipulating the lang parameter in GET requests. By exploiting path traversal sequences in locale/function.php, attackers can include and view PHP files outside the intended directory, potentially exposing sensitive configuration data, credentials, and application source code.

Critical Impact

Unauthenticated attackers can read arbitrary files from the server filesystem, potentially exposing database credentials, API keys, and other sensitive configuration data without any authentication required.

Affected Products

  • YouPHPTube version 7.8 and earlier
  • YouPHPTube installations with accessible locale/function.php endpoint
  • Self-hosted YouPHPTube video streaming platforms

Discovery Timeline

  • 2026-01-13 - CVE CVE-2021-47749 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2021-47749

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal or Directory Traversal. The flaw exists in the locale handling functionality of YouPHPTube, specifically within the locale/function.php file that processes language selection requests.

The application fails to properly sanitize user-supplied input in the lang parameter before using it to construct file paths for inclusion. This allows attackers to escape the intended locale directory by injecting directory traversal sequences (such as ../) into the parameter value. When the application processes these malicious requests, it includes files from arbitrary locations on the filesystem rather than legitimate language files.

Since the vulnerability requires no authentication, any remote attacker with network access to the YouPHPTube instance can exploit this flaw. The attack is straightforward to execute and requires minimal technical skill, making it particularly dangerous for exposed installations.

Root Cause

The root cause of this vulnerability is insufficient input validation and sanitization in the locale/function.php file. The application directly incorporates user-controlled input from the lang GET parameter into file path operations without:

  1. Validating that the input contains only expected characters (alphanumeric, limited special characters)
  2. Stripping or blocking directory traversal sequences (../, ..\\)
  3. Implementing a whitelist of allowed language values
  4. Using realpath() or similar functions to canonicalize and validate the resulting path

Attack Vector

The attack is executed via the network with no authentication required. An attacker sends a crafted HTTP GET request to the vulnerable endpoint, manipulating the lang parameter to include directory traversal sequences. The malicious request causes the server to include arbitrary PHP files, exposing their contents to the attacker.

For example, an attacker might attempt to traverse from the locale directory to system configuration files or application configuration files containing database credentials. The attack exploits the trust placed in the lang parameter, which should only contain locale identifiers like en_US or pt_BR, but instead accepts malicious path traversal payloads.

Technical details and a proof-of-concept demonstrating this vulnerability are available in the Exploit-DB #51101 entry.

Detection Methods for CVE-2021-47749

Indicators of Compromise

  • HTTP access logs containing requests to locale/function.php with ../ sequences in the lang parameter
  • Unusual GET requests with encoded directory traversal patterns such as %2e%2e%2f or %2e%2e/
  • Multiple rapid requests to locale endpoints from single IP addresses attempting various traversal depths
  • Error logs showing file inclusion attempts for paths outside the locale directory

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal sequences in request parameters
  • Configure intrusion detection systems (IDS) to alert on patterns matching lang=.. or URL-encoded equivalents in request URIs
  • Deploy file integrity monitoring on sensitive configuration files to detect unauthorized access attempts
  • Review web server access logs for requests containing directory traversal patterns targeting the locale functionality

Monitoring Recommendations

  • Enable detailed logging for all requests to the YouPHPTube application, particularly the locale endpoint
  • Set up automated alerting for any requests containing path traversal sequences in query parameters
  • Monitor for unusual file access patterns on the server, especially access to configuration files from web processes
  • Implement rate limiting on the locale endpoint to slow down automated exploitation attempts

How to Mitigate CVE-2021-47749

Immediate Actions Required

  • If YouPHPTube is no longer in active use, consider decommissioning the application immediately
  • Restrict network access to YouPHPTube installations using firewall rules or VPN requirements
  • Implement a web application firewall (WAF) rule to block requests containing directory traversal sequences
  • Review access logs to identify any past exploitation attempts and assess potential data exposure

Patch Information

YouPHPTube appears to be an archived/unmaintained project based on the archived project page. Organizations using this software should evaluate migration to actively maintained alternatives. For additional context and advisory information, refer to the VulnCheck Advisory.

Workarounds

  • Implement strict input validation on the lang parameter to allow only alphanumeric characters and underscores
  • Deploy ModSecurity or similar WAF with rules blocking path traversal patterns in query strings
  • Use web server configuration to restrict access to the locale/function.php file or the entire locale directory
  • Consider placing the application behind an authentication layer to prevent unauthenticated access
bash
# Example ModSecurity rule to block path traversal attempts
SecRule ARGS "@contains ../" "id:100001,phase:2,deny,status:403,msg:'Path Traversal Attempt Blocked',log,auditlog"
SecRule ARGS "@rx \.\.[\\/]" "id:100002,phase:2,deny,status:403,msg:'Encoded Path Traversal Blocked',log,auditlog"

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechYouphptube

  • SeverityHIGH

  • CVSS Score8.7

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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
  • YouPHPTube Archived Page

  • Exploit-DB #51101

  • VulnCheck Advisory: YouPHPTube
  • Related CVEs
  • CVE-2021-47750: YouPHPTube XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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