Nginx Version Disclosure
The web server's HTTP response revealed the exact nginx version in the Server header. An attacker could use this version information to look for known vulnerabilities affecting that specific release.
- Disclosed after 5 days
Hello, While i was testing airbnb i found nginx version disclosure in HTTP Response. Which can help attacker to gain information or an attacker might use the disclosed information to harvest specific security vulnerabilities for the version identified. URL: https://www.airbnb.com/
Version: 1.7.12
HTTP Response: HTTP/1.1 200 OK Cache-Control: public, max-age=1176 ETag: W/"9c73019eae963a92b713b293a694505c" Set-Cookie: erf_eligible=54; expires=Wed, 17-May-2017 22:25:40 GMT; domain=.airbnb.com Set-Cookie: p1_hcopy6=adventure; expires=Wed, 17-May-2017 22:25:40 GMT; domain=.airbnb.com Strict-Transport-Security: max-age=10886400; includeSubdomains Server: nginx/1.7.12 Link: https://a0.muscache.com/airbnb/static/packages/common-781445fb2cd2b545764ac59a2005b6fc.css;rel=preload;as=style,https://a0.muscache.com/airbnb/static/packages/common_o2.1-729252007d757207298cba7196a6b137.css;rel=preload;as=style,https://a0.muscache.com/airbnb/static/packages/map_search-672ac441e9af02915c7275d3ba35d9b8.css;rel=preload;as=style,https://a0.muscache.com/airbnb/static/p1/main-993bb6971017210f496e34db17fa32ec.css;rel=preload;as=style,https://a0.muscache.com/airbnb/static/packages/header_cookie.bundle-96e417780c11600460e5.js;rel=preload;as=script X-Server-Name: www.airbnb.com X-XSS-Protection: 1; mode=block Connection: keep-alive X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Vary: Accept-Encoding Content-Length: 70282 Content-Type: text/html; charset=utf-8 X-UA-Compatible: IE=Edge,chrome=1 Status: 200 OK Content-Security-Policy: default-src 'self' https:; connect-src 'self' https: ws://localhost.airbnb.com:8888 *.inspectlet.com wss://ws.inspectlet.com http:; font-src 'self' data: *.muscache.com fonts.gstatic.com use.typekit.net; frame-src *; img-src 'self' https: *.inspectlet.com http: data:; media-src 'self' https:; object-src 'self' https:; script-src 'sha256-2S1zmL0hHGfsnw+rP+m+rBKOma7sejqhykg8DdWFKfU=' 'sha256-rfTud2kTm0UjtJ6PqxcrkglfrUD4H8WCcS9mCs6PJ5s=' 'self' https: 'unsafe-eval' 'unsafe-inline' *.inspectlet.com http:; style-src 'self' https: 'unsafe-inline' http:; report-uri /tracking/csp?action=show&controller=homepages&req_uuid=c0608401-9001-4060-941d-afd1caeca2ac&version=b6612629f48f5a51b6937512a73e9d33e1bffbbd; Date: Sat, 18 Mar 2017 22:25:40 GMT Content-Encoding:
Solution: Add the following line to your nginx.conf file to prevent information leakage from the SERVER header of its HTTP response: server_tokens off
Kind Regards, Mahad Ahmed
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
Likely the nginx configuration left server_tokens at its default, so the Server header included the full version string.
Impact
An attacker could learn the exact nginx version and use it to look up known vulnerabilities for that release; the report does not show any exploit.
What the attacker needed
None
The fix
The server should be configured with server_tokens off so the Server header no longer includes the version.
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.
Every web server sends back a small set of headers with each page. One of them, called Server, can include the software name and version. Here it said nginx/1.7.12, which tells an attacker exactly which version is running so they can search for known bugs in it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.