Buffer G Get Home Dir

This function is synonymous with `getenv("HOME")` and 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 privil

IndexedPublic repositoryMediumMedium confidenceVerifiedGPL-2.0-onlyC
greprules fetch gitlab-sast-c-buffer-rule-g-get-home-dir --engine opengrep

Description

This function is synonymous with `getenv("HOME")` and 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 privil