Skip to content
Info disclosure Disclosed report Beginner

Server version disclosure on [jenkins.brew.sh]

The web server at jenkins.brew.sh reveals its exact Nginx version in HTTP responses. An attacker could use this version information to look for known exploits targeting that specific software.

Aagam shah Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 19 hours

Hello Homebrew security team,

I know this is a low severity issue but I thought to get you in notice will be best. The site jenkins.brew.sh discloses the Nginx server version.

Impact The information is can be used by attacker for further finding of exploits and information gathering.

curl -i jenkins.brew.sh
HTTP/1.1 301 Moved Permanently
Server: nginx/1.6.2
Date: Tue, 18 Apr 2017 18:59:21 GMT
Content-Type: text/html
Content-Length: 184
Connection: keep-alive
Location: https://jenkins.brew.sh/

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.6.2</center>
</body>
</html>

Fix In Ngnix configuration set:

server_tokens off;

Thanks

The original report as published on HackerOne, by neutrinoguy. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The Nginx configuration did not disable the server version token, so the 'Server' header and error pages included the exact version string.

Impact

An attacker could use the disclosed version to search for known exploits and gather information for further attacks.

What the attacker needed

None

The fix

The Nginx configuration should be changed to set 'server_tokens off;' so the version is no longer disclosed.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a web server responds to a request, it sometimes includes a header that says which software and version it is running. Here, the server openly says it is running Nginx version 1.6.2. Knowing the exact version helps an attacker search for known bugs that affect that version, making it easier to plan an attack.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Homebrew

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.