- System affected: Suricata-Update
- CVE: CVE-2018-1000167
- Software-Version: 1.0.0a1
- User-Interaction: Not required
- Impact: Remote-Code-Execution
The list of possible sources for suricata-update is downloaded from "https://www.openinfosecfoundation.org/rules/index.yaml" per default. Suricata-Update uses the insecure yaml.load()-function which could lead to remote code execution.
Code will be executed if the yaml-file at https://openinfosecfoundation.org/rules/index.yaml contains the following line:
hello: !!python/object/apply:os.system ['ls -l > /tmp/output']
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.
The provided fix was released in version 1.0.0b1
The remote-code-execution bug was discovered and fixed by Wolfgang Hotwagner(https://tech.feedyourhead.at/content/remote-code-execution-in-suricata-update)