Information
By default, the logging.properties file will have no defined limit for the log file size. This is a potential denial of service attack as it would be possible to fill a drive or partition containing the log files.
Establishing a maximum log size that is smaller than the partition size will help mitigate the risk of an attacker maliciously exhausting disk space.
NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.
Solution
The following example configures a single request log for the entire Jetty Server instance:
<Set name=""handler"">
<New id=""Handlers"" class=""org.eclipse.jetty.server.handler.HandlerCollection"">
<Set name=""handlers"">
<Array type=""org.eclipse.jetty.server.Handler"">
<Item>
<New id=""Contexts"" class=""org.eclipse.jetty.server.handler.ContextHandlerCollection""/>
</Item>
<Item>
<New id=""DefaultHandler"" class=""org.eclipse.jetty.server.handler.DefaultHandler""/>
</Item>
<Item>
<New id=""RequestLog"" class=""org.eclipse.jetty.server.handler.RequestLogHandler""/>
</Item>
</Array>
</Set>
</New>
</Set>
<Ref id=""RequestLog"">
<Set name=""requestLog"">
<New id=""RequestLogImpl"" class=""org.eclipse.jetty.NCSARequestLog"">
<Arg><SystemProperty name=""jetty.logs"" default=""./logs""/>/yyyy_mm_dd.request.log</Arg>
<Set name=""retainDays"">90</Set>
<Set name=""append"">true</Set>
<Set name=""extended"">false</Set>
<Set name=""LogTimeZone"">GMT</Set>
</New>
</Set>
</Ref>