Описание
OISF suricata-update unsafely deserializes YAML data
Suricata-Update uses the insecure yaml.load() function. Code will be executed if the yaml-file contains lines like:
The vulnerable function can be triggered by "suricata-update list-sources". The locally stored index.yaml will be loaded in this function and the malicious code gets executed.
Ссылки
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000167
- https://github.com/OISF/suricata-update/pull/23
- https://github.com/OISF/suricata-update/commit/76270e73128ca1299b4e33e7e2a74ac3d963a97a
- https://github.com/pypa/advisory-database/tree/main/vulns/suricata-update/PYSEC-2018-75.yaml
- https://redmine.openinfosecfoundation.org/issues/2359
- https://tech.feedyourhead.at/content/remote-code-execution-in-suricata-update
Пакеты
suricata-update
<= 1.0.0a1
1.0.0b1
Связанные уязвимости
OISF suricata-update version 1.0.0a1 contains an Insecure Deserialization vulnerability in the insecure yaml.load-Function as used in the following files: config.py:136, config.py:142, sources.py:99 and sources.py:131. The "list-sources"-command is affected by this bug. that can result in Remote Code Execution(even as root if suricata-update is called by root). This attack appears to be exploitable via a specially crafted yaml-file at https://www.openinfosecfoundation.org/rules/index.yaml. This vulnerability appears to have been fixed in 1.0.0b1.