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-2025-70458

CVE-2025-70458: Domain Availability Checker XSS Flaw

CVE-2025-70458 is a DOM-based Cross-Site Scripting vulnerability in Sourcecodester Domain Availability Checker v1.0 that exploits unsafe innerHTML usage. This article covers the technical details, security impact, and remediation.

Published: January 30, 2026

CVE-2025-70458 Overview

A DOM-based Cross-Site Scripting (XSS) vulnerability exists in the DomainCheckerApp class within domain/script.js of Sourcecodester Domain Availability Checker v1.0. The vulnerability occurs because the application improperly handles user-supplied data in the createResultElement method by using the unsafe innerHTML property to render domain search results. This allows attackers to inject malicious scripts that execute in the context of the victim's browser session.

Critical Impact

Attackers can execute arbitrary JavaScript code in the browser of users interacting with the vulnerable domain checker application, potentially leading to session hijacking, credential theft, or malicious redirects.

Affected Products

  • Sourcecodester Domain Availability Checker v1.0
  • Applications utilizing the DomainCheckerApp class from domain/script.js

Discovery Timeline

  • 2026-01-23 - CVE CVE-2025-70458 published to NVD
  • 2026-01-26 - Last updated in NVD database

Technical Details for CVE-2025-70458

Vulnerability Analysis

This DOM-based XSS vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). The flaw exists in client-side JavaScript code where the createResultElement method processes user-supplied domain search queries without proper sanitization before rendering them to the DOM.

When a user submits a domain name to check its availability, the application takes this input and directly incorporates it into the page using the innerHTML property. This creates a scenario where malicious payloads embedded in the domain search input are interpreted as executable HTML/JavaScript rather than being treated as plain text data.

The network-accessible attack vector means any user who can be tricked into interacting with a specially crafted link or form submission could trigger the vulnerability. The attack requires user interaction (such as clicking a malicious link), but once triggered, the injected script runs with the full privileges of the victim's session within the application context.

Root Cause

The root cause of this vulnerability is the use of the unsafe innerHTML property in the createResultElement method to render user-controlled data. Instead of safely setting text content through properties like textContent or innerText, the application directly assigns HTML markup that includes unsanitized user input. This lack of input validation and output encoding allows an attacker's payload to be parsed as executable DOM elements rather than escaped text.

Attack Vector

The attack exploits the network-accessible domain checking functionality. An attacker can craft a malicious domain query string containing JavaScript payloads (e.g., <script> tags, event handlers like onerror, or other XSS vectors). When this payload is processed by the createResultElement method and rendered via innerHTML, the browser executes the embedded malicious code.

A typical attack scenario involves:

  1. An attacker crafts a URL or form submission containing XSS payloads in the domain parameter
  2. The victim clicks the link or submits the form (user interaction required)
  3. The application's JavaScript processes the malicious input without sanitization
  4. The innerHTML assignment causes the browser to execute the attacker's script
  5. The malicious script runs in the victim's browser context, potentially stealing cookies, session tokens, or performing actions on behalf of the user

The vulnerability mechanism involves improper handling of user input in the DOM rendering process. The createResultElement method uses innerHTML to insert domain search results directly into the page without sanitization, allowing script injection. For detailed technical analysis, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-70458

Indicators of Compromise

  • Presence of unusual or encoded JavaScript payloads in domain search query parameters
  • Unexpected script execution or DOM manipulation in browser developer tools during domain lookup operations
  • Web server logs containing URL-encoded XSS payloads such as %3Cscript%3E, onerror=, or javascript: in domain query strings
  • User reports of unexpected behavior, redirects, or credential prompts after using the domain checker

Detection Strategies

  • Implement Content Security Policy (CSP) headers and monitor for CSP violation reports indicating XSS attempts
  • Deploy Web Application Firewall (WAF) rules to detect and block common XSS patterns in request parameters
  • Use browser-based XSS auditors and security extensions during security testing
  • Conduct regular static code analysis scanning for unsafe DOM manipulation patterns like innerHTML with user input

Monitoring Recommendations

  • Enable comprehensive logging of all user input submitted to the domain availability checker
  • Monitor for anomalous patterns in domain query requests, particularly those containing HTML tags or JavaScript syntax
  • Set up alerts for CSP violations that may indicate exploitation attempts
  • Review application logs for requests with unusually long or encoded domain parameters

How to Mitigate CVE-2025-70458

Immediate Actions Required

  • Replace all uses of innerHTML with safer alternatives such as textContent or innerText when rendering user-supplied data
  • Implement input validation to sanitize domain queries before processing
  • Deploy Content Security Policy headers to mitigate the impact of any successful XSS exploitation
  • Consider using a DOM sanitization library like DOMPurify if HTML rendering is required

Patch Information

No official vendor patch has been released at this time. Organizations should implement the recommended code changes manually or consider alternative domain checking solutions. Monitor the SourceCodester application page and the GitHub Security Advisory for updates.

Workarounds

  • Replace innerHTML with textContent in the createResultElement method to prevent script execution
  • Implement server-side input validation to reject domain queries containing HTML/JavaScript characters
  • Deploy strict CSP headers including script-src 'self' to block inline script execution
  • Use output encoding functions to escape special characters before rendering user input
bash
# Example CSP header configuration for Apache
# Add to .htaccess or httpd.conf
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-ancestors 'none'"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechSourcecodester Domain Availability Checker

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory

  • SourceCodester PHP Source Code
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server 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