Injection de commande OS dans command-injection (CVE-2024-51092)
Résumé
injection de commande OS dans command-injection (CVE-2024-51092). Des informations confidentielles peuvent être exposées. Exploitable via version_netsnmp.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
An authenticated attacker can create dangerous directory names on the system and alter sensitive configuration parameters through the web portal. Those two defects combined then allows to inject arbitrary OS commands inside shell_exec() calls, thus achieving arbitrary code execution.
Details
OS Command Injection
We start by inspecting the file app/Http/Controllers/AboutController.php, more particularly the index() method which is executed upon simply visiting the /about page:
public function index(Request $request)
{
$version = Version::get();
return view('about.index', [
'version_webserver' => $request->server('SERVER_SOFTWARE'),
'version_rrdtool' => Rrd::version(),
'version_netsnmp' => str_replace('version: ', '', rtrim(shell_exec(Config::get('snmpget', 'snmpget') . ' -V 2>&1'))),
]);
}
We can see that the version_netsnmp key receives a value direclty dependent of a shell_exec() call. The argument to this call reflects a configuration parameter with no sanitization. Should an attacker identify a way to alter this parameter, the server is at risk of being compromised.
Configuration parameters poisoning
We now focus on the update() method of the SettingsController.php script. This method is called when the user visits the route /settings/{key} via HTTP PUT. The key parameter here is simply the name of the configuration key the u…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé IA
Rédigé par une IA externe ; il peut contenir des erreurs. Vérifiez la description d'origine et les références ci-dessous avant d'agir.
Une vulnérabilité référencée CVE-2024-51092 a été découverte dans CVE-2024-51092.
Des attaquants peuvent cibler un point d'entrée spécifique comme version_netsnmp à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 9.1/10.
Action : appliquez le correctif officiel de l'éditeur.
En cas de doute, contactez votre service informatique ou cherchez « CVE-2024-51092 CVE-2024-51092 » sur le site de l'éditeur.
CVE-2024-51092 (CVE-2024-51092) — CWE-78 / CVSS v3 9.1
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : version_netsnmp / SettingsController.php / snmpget / AboutController.php
Versions affectées : <= 24.9.1
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une injection de commande OS (CWE-78) affecte CVE-2024-51092. Les attaquants atteignent le code vulnérable via version_netsnmp sans authentification.
CVE-2024-51092 — Plage affectée : <= 24.9.1. Surface d'attaque : version_netsnmp / SettingsController.php / snmpget / AboutController.php.
Gravité : Critique (CVSS 9.1/10). Des informations confidentielles peuvent être exposées
Mettre à jour vers la version corrigée selon l'avis éditeur. (Si une version vulnérable <= 24.9.1 est en production, planifiez immédiatement une fenêtre de maintenance.)
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Incidents passés similaires Incidents similaires extraits des CVE passées
PrintNightmare vulnerability allowing RCE via Print Spooler service.
Windows CryptoAPI vulnerability affecting certificate validations.
OpenSSL vulnerability allowing data leakage from memory.
Si cela arrivait dans votre entreprise Impact attendu selon le scénario métier
Remote code execution could lead to unauthorized access to servers.
Critical configuration settings could be altered by an attacker, affecting system integrity.
Exposed system settings could be used to pivot to further internal attacks.
Organizations should immediately update LibreNMS to the latest version to mitigate this vulnerability.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
Audit SBOM/dependencies for affected components.依存マニフェストで影響コンポーネントを特定する。
-
2Match against affected range verify
Confirm if version satisfies `<= 24.9.1`Step 1 で見つかったバージョンが影響範囲
<= 24.9.1に該当するか照合。本番で稼働中ならインシデント扱い。 -
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web raw.githubusercontent.com
- web github.com