Buffer Getenv Curl Getenv

This function's return value should be treated as untrusted input as it could be modified by an attacker. Possible risks include: - The value being too large and causing buffer overflows - Files under the attacker's control being used maliciously - Files outside of an attacker's control becoming accessible, depending on access privileges.

IndexedPublic repositoryMediumMedium confidenceVerifiedGPL-2.0-onlyC
greprules fetch gitlab-sast-c-buffer-rule-getenv-curl-getenv --engine opengrep

Description

This function's return value should be treated as untrusted input as it could be modified by an attacker. Possible risks include: - The value being too large and causing buffer overflows - Files under the attacker's control being used maliciously - Files outside of an attacker's control becoming accessible, depending on access privileges.