Skip to content
KitploitKITPLOIT
उपकरणएक्सप्लॉइटब्लॉग
Log in
जमा करें
उपकरणएक्सप्लॉइटब्लॉग
जमा करें

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

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

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

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

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
drupal-htmx-attr — Drupal 11.4.8 - उच्च - रिमोट - XSS - AttributeXss अभी भी HTMX attrs की अनुमति देता है | Kitploit
उपकरण/GitHubGitHub/abraxas/drupal-htmx-attr
भेद्यता विश्लेषणशोषणवेब एप्लिकेशन शोषणवेब सुरक्षापेनिट्रेशन टेस्टिंगलैब और अभ्यास
GitHubabraxas/drupal-htmx-attr

drupal-htmx-attr

Drupal 11.4.8 - उच्च - रिमोट - XSS - AttributeXss अभी भी HTMX attrs की अनुमति देता है

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

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

सभी देखें →

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

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

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

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

Abraxas Labs - drupal-htmx-attr

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  drupal-htmx-attr

drupal-htmx-attr

Class: Stored XSS Reach: Remote

Drupal core 11.4.8 (61044508) - Drupal

SA-CORE-2026-011 ने Xss::attributes() में HTMX attrs को बंद कर दिया। Link और menu attributes AttributeXss::sanitizeAttributes से गुज़रते हैं, और वह skip list अभी भी केवल style और on* को हटाती है।

एक content editor जो Link field (या menu link) सेट कर सकता है, hx-on-click या data-hx-on-click को store कर सकता है। Standard plus BigPipe core/htmx को load करता है। जब कोई admin या कोई अन्य viewer उस node को खोलता है और link पर click करता है, तो HTMX stored JS को site origin में चलाता है।

IDअभी तक कोई CVE नहीं
ClassStored XSS (HTMX event attrs)
ReachRemote (authenticated Link field / menu writer; victim देखता है और click करता है)
CWECWE-79
CVSSHigh: 8.7 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
ProductDrupal core
Affected11.4.8 (61044508071749629aaf3380aa85971e94df9e84)
Authauthenticated user जो Link field (या menu link) लिख सकता है। Victim page देखता है और click करता है।
LicenseGNU Affero GPL v3.0
Labकेवल 127.0.0.1

एक attacker क्या कर सकता है

Writer: एक content editor जो link options.attributes (Link field, menu link, JSON:API) सेट कर सकता है। Victim: कोई भी जिसका page HTMX load करता है (Standard + BigPipe core/htmx load करता है), जिसमें एक site admin भी शामिल है जो link पर click करता है।

PrivilegeMethod / pathKindLab-proven या inferred
एक link पर HTMX event attrs persist करनाPOST /jsonapi/node/article with field_link.options.attributes.hx-on-click and data-hx-on-clickStored field की IntegrityLab-proven। JSON:API 201, stored attrs में अभी भी hx-on-click है
उन attrs को node <a> पर print करनाLinkFormatter -> AttributeXss::sanitizeAttributesHTML की IntegrityLab-proven। GET /node/1 HTML में hx-on-click और marker window['DRUPAL-HTMX-ATTR-WITNESS']=1 है
Victim origin में उस JS को चलाना जब वे click करते हैंHTMX hx-on-* को bind करता हैVictim session की IntegrityHTMX + page के core/htmx load करने से inferred। Lab ने browser click नहीं चलाया
Viewer के रूप में कार्य करना (session cookie, admin UI clicks)Same stored XSSVictim session की IntegrityInferred। Lab HTML में attribute बने रहने पर रुक जाता है
Negative: Xss::filterXss::filter('<a ... hx-on-click=...>')ClosedLab-proven closed। xss_keeps_hx=False
Link का Unauthenticated writeJSON:API बिना session केClosedLab ने पहले uid 1 के रूप में login किया। बिना account वाला अजनबी field सेट नहीं कर सकता
PHP RCE / LPEn/aClosedयह leftover browser JS है, server पर PHP नहीं

Same pin leftover: Move Block sibling markup.

मैंने इसे कैसे खोजा

मैंने SA-CORE-2026-011 के बाद drupal/drupal 11.4.8 को pin किया। पाँच hunts: XSS/HTMX, file/MIME/oEmbed, JSON:API/unserialize/SQLi, auth/CSRF/Host, REST/media/Views। JSON:API access, EntityQuery IN keys (SA-004), serialized-field POI (SA-005), और rebuild.php Host (SA-007) patched रहते हैं। HTMX skip list केवल Xss.php में landed हुई।

$skip = (
  in_array($attribute_name, ['style', 'srcdoc']) ||
  str_starts_with($attribute_name, 'on') ||
  str_starts_with($attribute_name, 'data-hx') ||
  str_starts_with($attribute_name, 'hx') ||
  str_starts_with($attribute_name, '-') ||
  strlen($attribute_name) > 96
);

AttributeXss.php leftover:

$skip = (
  $attribute_name == 'style' ||
  str_starts_with($attribute_name, 'on') ||
  str_starts_with($attribute_name, '-') ||
  strlen($attribute_name) > 96
);

Callers में LinkFormatter.php और MenuLinkContent::getUrlObject() शामिल हैं।

पहले से दर्ज wrong turns: Xss::filter को leftover मानना (यह control है); unauth JSON:API write; PHP RCE; एक reverse shell। Theatre। Oracle वह attr है जो node HTML पर बचा रहता है साथ ही core/htmx loaded।

Lab

python3 drupal-htmx-attr-Abraxas-Labs.py

या

cd lab
./run.sh

Target केवल http://127.0.0.1:19480। Live drupal:11.4.8-apache, Standard profile, lab के लिए JSON:API write enabled। Compose project drupal-htmx-attr।

SUCCESS drupal-htmx-attr how=live write=jsonapi nid=1 hx-on-click=kept jsonapi-stored=1 xss-filter=stripped htmx=loaded marker=1 version=11.4.8 DRUPAL-HTMX-ATTR-WITNESS

The fix

hx / data-hx / srcdoc denylist को AttributeXss में copy करें। इसे Xss में fold करें जैसा कि class docblock पहले से कहता है।

References

  • github.com/drupal/drupal tag 11.4.8 (61044508071749629aaf3380aa85971e94df9e84)
  • AttributeXss.php · Xss.php
  • Nearby patched: SA-CORE-2026-011
  • Same pin: drupal-move-block-markup
  • CWE-79

License

GNU Affero GPL v3.0। देखें LICENSE। केवल Loopback lab। कोई warranty नहीं।

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