I noticed Log Files - Apache HTTP Server Version 2.4
Can simply using tail and grep on an access log present any risk of shell injection?
In addition, log files may contain information supplied directly by the client, without escaping. Therefore, it is possible for malicious clients to insert control-characters in the log files, so care must be taken in dealing with raw logs.
Can simply using tail and grep on an access log present any risk of shell injection?
Code:
[root]# tail -5000 /usr/local/apache/domlogs/domain.com-ssl_log | grep WebKit4