AIT-GUIの脆弱性、認証なしでサーバー上のPythonコードを実行されるおそれ
Summary
AIT-GUIの1.0.0から2.5.1までに、認証なしでサーバー上のPythonコードを実行されるおそれのある脆弱性が見つかりました。2つの経路を組み合わせると、ネットワーク越しの攻撃者がAIT-GUIサーバープロセスの権限で任意のコードを実行できるとされています。対策として2.5.1への更新が必要です。公表されたばかりのため、悪用の情報は確認されていません。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
AIT-GUIの1.0.0から2.5.1までに、認証なしでサーバー上のPythonコードを実行されるおそれのある脆弱性が見つかりました。2つの経路を組み合わせると、ネットワーク越しの攻撃者がAIT-GUIサーバープロセスの権限で任意のコードを実行できるとされています。対策として2.5.1への更新が必要です。公表されたばかりのため、悪用の情報は確認されていません。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| NASA-AMMOSAIT-GUI | — | Not listed |
| PyPIait-gui |
≥ 1.0.0, < 2.5.1→ 2.5.1 |
2.5.1 |
| pipait-gui |
< 2.5.1→ 2.5.1 |
2.5.1 |
Original description The description as published by the source.
Summary
A security issue exists where unauthenticated callers can instruct the AIT-GUI server to execute arbitrary Python scripts. The attack vector involves obtaining a session cookie through GET /, followed by a malicious POST /script/run request containing an absolute file path that bypasses the configured script directory restrictions.
Patches
- 2.5.1
Impact
This vulnerability allows unauthenticated remote code execution on the AIT-GUI server. Any attacker with network access can execute arbitrary Python code with daemon privileges.
Details
Chain:
POST /tlm/querywrites the user-controlledfieldsvalue intofields_in.txtunder the AIT-GUI static directory.- If the supplied
dataDirhas no.pcapfiles, the route returns the expected400 Bad Requestbefore deleting that file.
- If the supplied
POST /script/runacceptsscriptPath=../static/fields_in.txt.- AIT-GUI reads that file and runs it as Python.
Relevant code:
ait/gui/__init__.py:930,935,942-944:/tlm/querywritesfieldstofields_in.txt.ait/gui/__init__.py:952-958,978: the no-PCAP error path aborts before cleanup.ait/gui/__init__.py:1130-1136:/script/runjoinsscriptPathwithScriptRootand only checks that the path exists.ait/gui/__init__.py:1186-1191: the selected file is read and executed as Python.ait/gui/__init__.py:1105-1108: nearby/scripts/load/has a path containment check, but/script/rundoes not.
Fix Information
Restricted scri…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com