Lighttpd must capture, record, and log the IP address associated with a user session.

From VMware vRealize Automation 7.x Lighttpd Security Technical Implementation Guide

Part of SRG-APP-000093-WSR-000053

Associated with: CCI-001462

SV-99879r1_rule Lighttpd must capture, record, and log the IP address associated with a user session.

Vulnerability discussion

A user session to a web server is in the context of a user accessing a hosted application that extends to any plug-ins/modules and services that may execute on behalf of the user.Lighttpd logs user activity in the access.log file using the Common Log Format (CLF). The CLF format, a World Wide Web Consortium standard, captures logs all user session information related to the hosted application session. This will enable forensic analysis of server events in case of malicious event.Lighttpd logs IPv4 addresses as "IPv4-mapped IPv6 addresses". As a result, in the Lighttpd log, client IP addresses will begin with "::ffff:". For example, if the client address was 255.255.255.255, the Lighttpd log will record the address as ::ffff:255.255.255.255.

Check content

At the command prompt, execute the following command: tail -n 1 /opt/vmware/var/log/lighttpd/access.log If client IP addresses are not being logged, this is a finding. Note: Lighttpd will prepend IPv4 addresses with ::ffff: This is called "IPv4-mapped IPv6 addresses".

Fix text

Navigate to and open /opt/vmware/etc/lighttpd/lighttpd.conf Configure the "lighttpd.conf" file with the following: $HTTP["url"] !~ "(.css|.jpg|.gif|.png|.ico)$" { accesslog.filename = log_root + "/access.log" }

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer