The arfifact is the latest
<dependency>ESAPI.properties are
ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory Logger.LogEncodingRequired=false Logger.UserInfo=false Logger.ClientInfo=false Logger.LogApplicationName=false Logger.ApplicationName=my-app Logger.LogServerIP=false IntrusionDetector.Disable=true Executor.ApprovedExecutables=/usr/bin/lessThe code is:
@Test void esapiTest() throws ExecutorException {The output is
out = err = \/etc\/hosts: No such file or directoryAs far as I got the issue is that ESAPI's UnixCodec sanitises all non-alpha character with the backslash. This is fine for the shell i.e.
/usr/bin/less \/etc\/hostsbut not for the ProcessBuilder that is under the hood.
What am I doing wrong, please? How to invoke the command?
Thank you in advance,
Andriy
--
You received this message because you are subscribed to the Google Groups "ESAPI Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to esapi-project-u...@owasp.org.
To view this discussion on the web visit https://groups.google.com/a/owasp.org/d/msgid/esapi-project-users/11a623dd-1a74-4eb7-9e29-1695c702520dn%40owasp.org.