Airbnb: Nginx Version Disclosure

ID H1:214570
Type hackerone
Reporter lulliii
Modified 2017-03-23T22:31:50


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:

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; Set-Cookie: p1_hcopy6=adventure; expires=Wed, 17-May-2017 22:25:40 GMT; Strict-Transport-Security: max-age=10886400; includeSubdomains Server: nginx/1.7.12 Link: <>;rel=preload;as=style,<>;rel=preload;as=style,<>;rel=preload;as=style,<>;rel=preload;as=style,<>;rel=preload;as=script X-Server-Name: 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:// wss:// http:; font-src 'self' data:; frame-src ; img-src 'self' https: 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' * 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