Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
CVE-2026-30691 — CVE-2026-30691: @cyntler/react-doc-viewer में संग्रहीत क्रॉस-साइट स्क्रिप्टिंग (XSS) | Kitploit
उपकरण/GitHubGitHub/walidriouah/cve-2026-30691
भेद्यता विश्लेषणवेब एप्लिकेशन शोषणवेब सुरक्षापेपर और शोधलर्निंग और शिक्षा
GitHubwalidriouah/cve-2026-30691

CVE-2026-30691

CVE-2026-30691: @cyntler/react-doc-viewer में संग्रहीत क्रॉस-साइट स्क्रिप्टिंग (XSS)

रिपॉजिटरी देखें
23 महीने पहलेअभी तक समीक्षित नहीं

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

CVE-2026-30691 - भेद्यता सलाह

CVE-2026-30691 के लिए आधिकारिक MITRE भेद्यता रिकॉर्ड विवरण और तकनीकी दस्तावेज़ीकरण।


root@kitploit:~

-----BEGIN PGP SIGNED MESSAGE----- 
Hash: SHA256

[Suggested description] 
Cross-Site Scripting (XSS) vulnerability in @cyntler/react-doc-viewer v1.17.1 allows remote attackers to execute arbitrary JavaScript via a crafted .txt file. The TXTRenderer component fails to sanitize file content and explicitly casts raw data as a ReactNode.

[Additional Information] 
"The TXTRenderer is used by default for any text-based files. Since the library is widely used in React applications to preview user-uploaded content, this vulnerability poses a significant risk for applications that do not strictly validate file contents before passing them to the viewer."

[Vulnerability Type] Cross Site Scripting (XSS)
[Vendor of Product] cyntler
[Affected Product Code Base] @cyntler/react-doc-viewer - 1.17.1
[Affected Component] src/renderers/txt/index.tsx
[Attack Type] Remote
[Impact Code execution] true
[Impact Information Disclosure] true

[Attack Vectors] 
"An attacker must provide a specially crafted .txt file containing malicious HTML or JavaScript code. When the victim opens this file using the DocViewer component, the script executes in their browser."

[Reference] https://github.com/cyntler/react-doc-viewer/issues/317
[Discoverer] Walid Riouah

Use CVE-2026-30691.

-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----

🛠️ विस्तृत तकनीकी संदर्भ

📝 विवरण

@cyntler/react-doc-viewer पैकेज (v1.17.1) में एक संग्रहीत क्रॉस-साइट स्क्रिप्टिंग (XSS) भेद्यता पाई गई। यह भेद्यता TXTRenderer घटक में मौजूद है, जो .txt फ़ाइलों की कच्ची सामग्री को बिना किसी स्वच्छता या एंटिटी एस्केपिंग के सीधे ReactNode के रूप में डालता है।


💻 संवेदनशील कोड

src/renderers/txt/index.tsx में:

root@kitploit:~

{currentDocument?.fileData as ReactNode}

🔬 प्रूफ ऑफ कॉन्सेप्ट (PoC)

भेद्यता को पुन: उत्पन्न करने के लिए, निम्नलिखित स्पष्ट स्क्रिप्ट पेलोड के साथ exploit.txt नामक एक फ़ाइल बनाएं और इसे डॉक्यूमेंट व्यूअर घटक में लोड करें:

root@kitploit:~

<h1 style="color: red;">Vulnerable!</h1>
<script>alert('XSS_SUCCESS'); document.body.style.background='red';</script>
<img src=x onerror="console.log('XSS_Executed_Successfully')">

🎯 प्रभाव

हमलावर पीड़ित के ब्राउज़र संदर्भ में मनमाना JavaScript निष्पादित कर सकता है। इससे निम्नलिखित परिणाम हो सकते हैं:

  • सत्र अपहरण: क्लाइंट-साइड कुकी/लोकलस्टोरेज डेटा चोरी के माध्यम से।
  • अनधिकृत कार्रवाइयाँ: प्रमाणित उपयोगकर्ता सत्र की ओर से की गईं।
  • एप्लिकेशन विरूपण: और प्लेटफ़ॉर्म उपयोगकर्ताओं को लक्षित करने वाले फ़िशिंग हमले।

🛡️ अनुशंसित समाधान

गतिशील टेक्स्ट इनपुट को प्रस्तुत करने से पहले DOMPurify जैसी HTML स्वच्छता लाइब्रेरी का उपयोग करके स्वच्छ करें, या कच्चे स्ट्रिंग इनपुट को ReactNode ऑब्जेक्ट में अनसुरक्षित कास्टिंग से बचें:

root@kitploit:~

import DOMPurify from 'dompurify';

const sanitizedHTML = DOMPurify.sanitize(currentDocument?.fileData);
return <div dangerouslySetInnerHTML={{ __html: sanitizedHTML }} />;

सलाह Walid Riouah (साइबर सुरक्षा अनुसंधानकर्ता और रेड टीम सदस्य) द्वारा क्यूरेट की गई

टूल डाउनलोड करें