Lucene search

K
huntrRep00cD617CED7-BE06-4E34-9DB0-63D45C003A43
HistoryNov 19, 2021 - 3:45 a.m.

CRLF Injection in phpservermon/phpservermon

2021-11-1903:45:59
rep00c
www.huntr.dev
6

0.001 Low

EPSS

Percentile

30.0%

Description

misconfig of nginx lead to crlf injection

In nginx, $uri is url decoded, which will decode %0d%0a to CRLF.

code:

return 301 http://<%= @server_name[0].gsub(/^www\./, '') %>$uri;

Proof of Concept

A request to:

http://www.test.com/%0d%0afake_header:123%0d%0a%0d%0afake_content

Impact

CRLF Injection allows an attacker to inject client-side malicious scripts (E.g. Cross site scripting) to disclose information. An attacker can gain sensitive information like CSRF token and allow the attacker to set fake cookies.

0.001 Low

EPSS

Percentile

30.0%

Related for D617CED7-BE06-4E34-9DB0-63D45C003A43