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-0169

CVE-2022-0169: 10web Photo Gallery SQLi Vulnerability

CVE-2022-0169 is an unauthenticated SQL injection vulnerability in 10web Photo Gallery for WordPress that allows attackers to execute malicious database queries. This post covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-0169 Overview

CVE-2022-0169 is a critical SQL Injection vulnerability affecting the Photo Gallery by 10Web WordPress plugin before version 1.6.0. The vulnerability exists because the plugin does not properly validate and escape the bwg_tag_id_bwg_thumbnails_0 parameter before using it in a SQL statement via the bwg_frontend_data AJAX action. This AJAX endpoint is accessible to both unauthenticated and authenticated users, allowing remote attackers to execute arbitrary SQL queries against the WordPress database without requiring any authentication.

Critical Impact

Unauthenticated attackers can exploit this SQL injection to extract sensitive database information, modify or delete data, and potentially achieve full database compromise on affected WordPress installations.

Affected Products

  • 10Web Photo Gallery WordPress plugin versions prior to 1.6.0
  • WordPress installations with the vulnerable Photo Gallery plugin installed
  • Any website using the 10Web Photo Gallery plugin's frontend gallery functionality

Discovery Timeline

  • 2022-03-14 - CVE-2022-0169 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0169

Vulnerability Analysis

This SQL Injection vulnerability (CWE-89) stems from improper input validation in the Photo Gallery by 10Web WordPress plugin. The vulnerable code path is accessible through the bwg_frontend_data AJAX action, which processes gallery-related requests on the frontend. When a user or attacker sends a request containing the bwg_tag_id_bwg_thumbnails_0 parameter, the plugin incorporates this value directly into a SQL query without proper sanitization or parameterized queries.

The attack requires no authentication and can be executed remotely over the network. An attacker can craft malicious HTTP requests containing SQL injection payloads in the vulnerable parameter, allowing them to manipulate database queries. Successful exploitation could lead to unauthorized access to sensitive data stored in the WordPress database, including user credentials, configuration data, and content from other plugins.

Root Cause

The root cause of this vulnerability is the failure to properly validate, sanitize, and escape user-supplied input before incorporating it into SQL queries. The bwg_tag_id_bwg_thumbnails_0 parameter is passed directly to a SQL statement without using WordPress's prepared statements or proper escaping functions like $wpdb->prepare(). This allows attackers to break out of the intended query context and inject arbitrary SQL commands.

Attack Vector

The attack is conducted over the network by sending crafted HTTP POST requests to the WordPress AJAX handler (/wp-admin/admin-ajax.php) with the action parameter set to bwg_frontend_data. The attacker includes a malicious payload in the bwg_tag_id_bwg_thumbnails_0 parameter, which is then executed as part of the SQL query.

Since the AJAX action does not require authentication, any remote attacker can exploit this vulnerability. The attack can be automated and requires no user interaction, making it particularly dangerous for publicly accessible WordPress sites. Attackers can use time-based blind SQL injection techniques or error-based methods to extract data from the database.

The vulnerability was addressed in version 1.6.0 through improved input validation. Technical details can be found in the WordPress Plugin Change Log and the WPScan Vulnerability Report.

Detection Methods for CVE-2022-0169

Indicators of Compromise

  • Suspicious HTTP POST requests to /wp-admin/admin-ajax.php with action=bwg_frontend_data containing unusual characters in the bwg_tag_id_bwg_thumbnails_0 parameter
  • Database query logs showing malformed or injected SQL statements originating from the Photo Gallery plugin
  • Unexpected database activity such as data exfiltration patterns or unauthorized access to sensitive tables
  • Web server access logs showing repeated requests to the AJAX endpoint with SQL injection patterns like ', ", UNION, SELECT, or SLEEP()

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in POST parameters targeting WordPress AJAX endpoints
  • Monitor WordPress database query logs for anomalous queries containing injection signatures
  • Deploy intrusion detection systems (IDS) with rulesets specifically designed to detect SQL injection attempts
  • Utilize WordPress security plugins that provide real-time monitoring of AJAX requests and input validation

Monitoring Recommendations

  • Enable detailed logging for WordPress AJAX requests and regularly review logs for suspicious activity
  • Set up alerts for unusual database query patterns or failed query attempts that may indicate injection attempts
  • Monitor for unexpected changes to database tables, particularly user accounts or sensitive configuration data
  • Implement rate limiting on AJAX endpoints to slow down automated exploitation attempts

How to Mitigate CVE-2022-0169

Immediate Actions Required

  • Update the Photo Gallery by 10Web plugin to version 1.6.0 or later immediately
  • If immediate patching is not possible, temporarily disable the Photo Gallery plugin until the update can be applied
  • Review database logs and WordPress activity logs for any signs of prior exploitation
  • Consider resetting database credentials and WordPress user passwords if exploitation is suspected

Patch Information

The vulnerability has been addressed in Photo Gallery by 10Web version 1.6.0. The fix implements proper input validation and sanitization for the bwg_tag_id_bwg_thumbnails_0 parameter before it is used in SQL queries. Administrators should update through the WordPress admin dashboard or manually download the patched version from the WordPress plugin repository.

For technical details about the patch, see the WordPress Plugin Change Log.

Workarounds

  • Deploy a Web Application Firewall (WAF) with rules to block SQL injection patterns targeting the vulnerable AJAX action
  • Temporarily restrict access to /wp-admin/admin-ajax.php for unauthenticated users if the gallery functionality is not required for public visitors
  • Implement server-level input filtering to sanitize requests containing known SQL injection patterns
  • Consider using WordPress security plugins that provide virtual patching capabilities for known vulnerabilities
bash
# Example WAF rule to block suspicious requests to the vulnerable endpoint
# For Apache mod_security:
SecRule ARGS:bwg_tag_id_bwg_thumbnails_0 "@detectSQLi" \
  "id:100001,phase:2,deny,status:403,msg:'SQL Injection attempt blocked in Photo Gallery plugin'"

# For nginx with ModSecurity:
# Add to your security rules configuration
# location /wp-admin/admin-ajax.php {
#   modsecurity on;
#   modsecurity_rules_file /etc/nginx/modsecurity/sql-injection-rules.conf;
# }

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/Tech10web Photo Gallery

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability82.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • WPScan Vulnerability Report
  • Vendor Resources
  • WordPress Plugin Change Log
  • Related CVEs
  • CVE-2022-1281: 10web Photo Gallery SQLi 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