Tainted flow: 'REG' from os.environ.get (line 16, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
os.makedirs(os.path.dirname(REG), exist_ok=True) try: import fcntl with open(REG, "a", encoding="utf-8") as fh: fcntl.flock(fh, fcntl.LOCK_EX) fh.write(json.dumps(evento, ensure_ascii=False) + "\n") fh.flush()- Confidence
- 87% confidence
- Finding
- The log file path ultimately depends on LAZARILLO_BASE from the environment, so an attacker who can influence the process environment can redirect audit writes to an arbitrary filesystem location. In this skill, the audit log is security-relevant because failed logging blocks sends and post-send logging affects delivery semantics, so path redirection can be used for denial of service or tampering with audit records.
