Property
Languagebash
Severitylow
CWECWE-20: Improper Input Validation
OWASPA03:2021 - Injection
Confidence LevelLow
Impact LevelLow
Likelihood LevelLow

Description#

Setting the IFS (Internal Field Separator) variable globally in Bash scripts can change how input is split, potentially leading to unexpected behavior or security issues. This can cause scripts to incorrectly parse user input or files, especially when expanding unquoted variables.

Impact#

If an attacker can influence input or the environment, they may exploit the altered IFS setting to inject unexpected values or commands, possibly bypassing intended input checks or causing code execution. This can lead to data corruption, privilege escalation, or script malfunction.