Skip to content
Info disclosure Disclosed report Beginner

suppress version in Server header on gratipay.com or grtp.co

The web server disclosed its software name and version in the Server and Via response headers. An attacker could use this information to look for known vulnerabilities affecting those specific versions.

caffeine Follow

Originally disclosed on HackerOne

Bounty$1 Low View original
  • Triaged in 11 hours
  • Fixed in 3 months
  • Paid in 4 hours
  • Disclosed after 4 months

Summary: Server version information is returned in the response headers.

Estimated severity: Low

More info: Any page requested on the site returns a lot of information in the response headers. This information includes specific version information for the server and proxy. The following version information is revealed: gunicorn 18.0 and vegur 1.1. While neither of these version have known, published vulnerabilities available but updates are available for both.

Impact: An attacker can use the information provided to find known vulnerabilities, if they exist. If known vulns do not exist, the site is still at risk of being targeted when an issue is discovered.

Recreation:

  1. Proxy all traffic through Burp.
  2. Request any page.
  3. Examine the response for exposed version information

Vulnerable request:

GET / HTTP/1.1 Host: gratipay.com:443 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 Cookie: csrf_token=f8wF2Qs0pUGuRd857KNhiSDMDfbPtZUW DNT: 1 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Response:

HTTP/1.1 200 OK Cache-Control: no-cache Connection: keep-alive Content-Type: text/html; charset=UTF-8 Date: Thu, 17 Mar 2016 00:31:50 GMT Server: gunicorn/18.0 Set-Cookie: csrf_token=f8wF2Qs0pUGuRd857KNhiSDMDfbPtZUW; expires=Thu, 24 Mar 2016 00:31:50 GMT; Path=/; secure Transfer-Encoding: chunked Via: 1.1 vegur X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Gratipay-Version: 1943 X-Xss-Protection: 1; mode=block

Recommendation:


  1. The server should be configured to reveal less information. Instructions: http://stackoverflow.com/questions/16010565/how-to-prevent-gunicorn-from-returning-a-server-http-header
  2. Out-of-date components should be updated immediately and a patch/update management should be implemented and followed.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Gratipay is a platform for giving and receiving payments. The report concerns the HTTP response headers returned by the site at gratipay.com (and, as the title notes, grtp.co). The feature in question is not an application function but the server's default behaviour: every response carries headers that identify the software stack and, in this case, its exact version. The researcher found that the Server header and the Via header disclose version numbers for the origin server and the proxy.

Setup

The researcher used Burp Suite as an intercepting proxy. No account, role or special configuration is described. The only precondition is the ability to send a request to the site and read the response headers. The request shown uses a csrf_token cookie, which is redacted here, and a desktop Chrome user agent.

Finding it

While examining responses, the researcher noticed that any page requested on the site returns a lot of information in the response headers. Specifically, the headers reveal version information for the server and the proxy: gunicorn 18.0 and vegur 1.1. The researcher notes that neither of these versions has known, published vulnerabilities available at the time, but that updates are available for both. The issue was classified as Information Disclosure with low severity.

Exploitation

Step 1: Proxy all traffic through Burp

The researcher routed traffic through Burp Suite so that requests and responses could be inspected.

Step 2: Request any page

The researcher sent a request for the root path. The vulnerable request is reproduced exactly as shown:

HTTP
GET / HTTP/1.1
Host: gratipay.com:443
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8
Cookie: csrf_token=[redacted]
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

This is an ordinary GET for / with standard browser headers. The Host header includes the port :443, and the request carries a CSRF token cookie, which is not relevant to the disclosure but is part of the captured request.

Step 3: Examine the response for exposed version information

The response returned HTTP 200 and the following headers:

HTTP
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: keep-alive
Content-Type: text/html; charset=UTF-8
Date: Thu, 17 Mar 2016 00:31:50 GMT
Server: gunicorn/18.0
Set-Cookie: csrf_token=[redacted]; expires=Thu, 24 Mar 2016 00:31:50 GMT; Path=/; secure
Transfer-Encoding: chunked
Via: 1.1 vegur
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Gratipay-Version: 1943
X-Xss-Protection: 1; mode=block

The Server header discloses gunicorn/18.0, identifying the origin server software and its exact version. The Via header discloses 1.1 vegur, identifying the proxy software and its version. The response also includes X-Gratipay-Version: 1943, which reveals an application version number. The other headers are standard security and caching headers.

Root cause

The root cause is the default configuration of the server and proxy, which include version information in the Server and Via headers. The report does not describe any attempt to suppress these headers; the recommendation implies that the server should be configured to reveal less information. The existing defences shown in the response (X-Content-Type-Options, X-Frame-Options, X-Xss-Protection) address other classes of attack and do not prevent version disclosure. The application also exposes its own version through X-Gratipay-Version, which is a separate design choice not covered by the recommendation.

Impact

An attacker can use the disclosed version information to look for known vulnerabilities affecting those specific versions. At the time of the report, neither gunicorn 18.0 nor vegur 1.1 had known, published vulnerabilities, so the immediate risk was limited. The researcher notes that even without known vulnerabilities, the site remains at risk of being targeted when an issue is discovered. The impact is therefore indirect and depends on future vulnerability disclosures; the report rates severity as Low.

Fix

The report gives two recommendations:

  1. Configure the server to reveal less information. The researcher points to instructions at http://stackoverflow.com/questions/16010565/how-to-prevent-gunicorn-from-returning-a-server-http-header.
  2. Update out-of-date components immediately and implement and follow a patch/update management process.

The report does not state which of these changes were actually made. The title indicates the goal of suppressing the version in the Server header on gratipay.com or grtp.co.

Variants to test

  • Check the Server header on other paths and virtual hosts. A positive result is a version string such as gunicorn/18.0 or any other software name with a version number.
  • Check the Via header for proxy version disclosure. A positive result is a value like 1.1 vegur that includes a product name and version.
  • Look for custom headers that leak application versions, such as X-Gratipay-Version. A positive result is any header whose value changes with deployments and reveals a build or version number.
  • Test error responses and redirects, which sometimes include different headers from successful responses. A positive result is version information present only on those responses.
  • Inspect responses from static assets and API endpoints, not just HTML pages. A positive result is the same disclosure on those endpoints.

Hunting notes

This kind of bug tends to hide in default server configurations, especially where a framework or proxy is deployed without tuning. During recon, look at response headers from every host and path; the Server and Via headers are the usual suspects, but custom X- headers can also leak versions. The researcher demonstrated the issue with a single request and response pair. The impact argument was honest about the lack of known vulnerabilities at the time, The report was rated as a low-severity information disclosure.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 12 min read.

What happened, in plain words

Gratipay is a website where people can give and receive payments. When your browser asks a website for a page, the website's computer (the server) sends the page back together with a small set of extra notes called response headers. These notes are not visible on the page itself; they are instructions and labels that travel alongside it, telling the browser things like what type of content is coming and how to cache it.

A security researcher noticed that every page on Gratipay came back with headers that named the software running the site and, more importantly, the exact version number of that software. Two headers did this: one called Server and one called Via. The Server header said gunicorn/18.0, and the Via header said 1.1 vegur. In other words, anyone who loaded any page could learn which programs power the site and which versions they are.

On its own, that is not a break-in. Nobody gained access to anything. But it is a form of information disclosure: handing out details that are more useful to an attacker than to a normal visitor. If a security flaw is later found in gunicorn 18.0 or vegur 1.1, an attacker already knows the site is running those versions and can aim the right attack at it. The researcher rated the issue Low severity, and the report was filed on HackerOne, a platform where researchers report bugs to companies.

The setup

To look at headers, the researcher used a tool called Burp Suite. Burp is an intercepting proxy: a program that sits between your browser and the website. Instead of your browser talking directly to the site, it talks to Burp, and Burp passes the message on and shows it to you. Think of it like a postal worker who opens every letter, reads it, writes down what it says, and then delivers it. That lets you see the exact request your browser sent and the exact response the server returned, including all the headers that a browser normally hides from you.

No account, special role or unusual configuration was needed. The only requirement was being able to send a request to the site and read the response headers, which any visitor can do.

The captured request included a csrf_token cookie. A cookie is a small piece of data that a website asks your browser to store and send back with every request, so the site can recognise you between page loads. A CSRF token (Cross-Site Request Forgery token) is a random value the site puts in a cookie and expects to see again, to prove a request really came from its own pages and not from a malicious site. In this report the token is not relevant to the finding; it just happened to be part of the request the researcher captured. The value has been redacted here.

Finding it

While examining responses, the researcher saw that any page requested on the site returned a lot of information in the response headers. Specifically, the headers revealed version information for the server and the proxy: gunicorn 18.0 and vegur 1.1.

A quick word on the two pieces of software. gunicorn is an application server: a program that runs the website's code and hands the finished page to the outside world. vegur is a proxy: a program that sits in front of the application server and forwards traffic to it, a bit like a receptionist who takes every visitor's message and passes it to the right desk. Both are common building blocks.

The researcher noted that neither of these versions had known, published vulnerabilities at the time, but that updates were available for both. The issue was classified as Information Disclosure with low severity.

Reproducing it, step by step

Step 1: Proxy all traffic through Burp

The researcher routed traffic through Burp Suite so that requests and responses could be inspected. This step exists purely so you can see the raw messages. Without a proxy, your browser receives the headers too, but it does not show them to you in a readable way.

Step 2: Request any page

The researcher sent a request for the root path, which is the site's home page, written as /. The request is reproduced exactly as captured:

HTTP
GET / HTTP/1.1
Host: gratipay.com:443
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8
Cookie: csrf_token=[redacted]
DNT: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Line by line, in plain words:

  • GET / HTTP/1.1: GET is the method, the verb that means "give me this". / is the path being asked for, the home page. HTTP/1.1 is the version of the language browsers and servers use to talk to each other.
  • Host: gratipay.com:443: tells the server which site is being requested. The :443 is the port number, the numbered door on the server that handles secure web traffic.
  • Accept: ...: tells the server which kinds of content the browser can handle, such as HTML pages and images.
  • Accept-Encoding: ...: tells the server which compression formats the browser understands, so pages can be sent smaller and faster.
  • Accept-Language: en-US,en;q=0.8: tells the server the browser prefers US English.
  • Cookie: csrf_token=[redacted]: sends back the CSRF token cookie described above. It plays no part in the finding.
  • DNT: 1: "Do Not Track", a request from the browser asking the site not to track the visitor.
  • Upgrade-Insecure-Requests: 1: tells the server the browser would prefer a secure (HTTPS) version of the page if one exists.
  • User-Agent: ...: identifies the browser and operating system. Here it is Chrome 48 on a Mac.

None of these lines is an attack. This is an ordinary request for the home page, with the standard headers a normal browser sends.

Step 3: Examine the response for exposed version information

The server answered with HTTP 200, which is the standard code for "OK, here is your page", and the following headers:

HTTP
HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: keep-alive
Content-Type: text/html; charset=UTF-8
Date: Thu, 17 Mar 2016 00:31:50 GMT
Server: gunicorn/18.0
Set-Cookie: csrf_token=[redacted]; expires=Thu, 24 Mar 2016 00:31:50 GMT; Path=/; secure
Transfer-Encoding: chunked
Via: 1.1 vegur
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Gratipay-Version: 1943
X-Xss-Protection: 1; mode=block

Line by line:

  • HTTP/1.1 200 OK: the status line. 200 means success.
  • Cache-Control: no-cache: tells the browser not to store a reusable copy of the page.
  • Connection: keep-alive: asks the browser to keep the network connection open for further requests, which saves time.
  • Content-Type: text/html; charset=UTF-8: says the body is an HTML page, encoded in UTF-8, a standard way of representing text characters.
  • Date: ...: the date and time the response was generated.
  • Server: gunicorn/18.0: the key line. It names the origin server software, gunicorn, and its exact version, 18.0.
  • Set-Cookie: csrf_token=[redacted]; ...: the server handing the browser a cookie to store, with an expiry date, a path and the secure flag meaning it should only be sent over secure connections.
  • Transfer-Encoding: chunked: says the page is being sent in pieces rather than all at once, which is normal for pages generated on the fly.
  • Via: 1.1 vegur: the second key line. It names the proxy software, vegur, and its version, 1.1.
  • X-Content-Type-Options: nosniff: a safety instruction telling the browser not to guess at the content type, which helps block certain attacks.
  • X-Frame-Options: SAMEORIGIN: tells the browser the page may only be embedded in a frame by the same site, which helps prevent clickjacking, where an attacker hides the real site inside a fake one.
  • X-Gratipay-Version: 1943: a custom header that reveals an application version number, 1943.
  • X-Xss-Protection: 1; mode=block: asks the browser to switch on its built-in cross-site scripting filter and block pages it considers suspicious.

So the Server header discloses gunicorn/18.0, identifying the origin server software and its exact version. The Via header discloses 1.1 vegur, identifying the proxy software and its version. The response also includes X-Gratipay-Version: 1943, which reveals an application version number. The other headers are standard security and caching headers.

Why it happens

The root cause is the default configuration of the server and the proxy, which include version information in the Server and Via headers. The server and proxy include version information in the Server and Via headers. The report does not describe any attempt to suppress these headers; the recommendation implies that the server should be configured to reveal less information.

The defences visible in the response (X-Content-Type-Options, X-Frame-Options, X-Xss-Protection) protect against other kinds of attack and do nothing to stop version disclosure. The application also exposes its own version through X-Gratipay-Version, which is a separate design choice not covered by the recommendation.

What an attacker could do with it

An attacker can use the disclosed version information to look for known vulnerabilities affecting those specific versions. Think of it as a burglar who can read the make and model on your door lock: the lock may be perfectly good today, but if a flaw in that model becomes public tomorrow, the burglar already knows where to start.

At the time of the report, neither gunicorn 18.0 nor vegur 1.1 had known, published vulnerabilities, so the immediate risk was limited. The researcher notes that even without known vulnerabilities, the site remains at risk of being targeted when an issue is discovered. The impact is therefore indirect and depends on future vulnerability disclosures, which is why the report rates severity as Low.

The fix

The report gives two recommendations:

  1. Configure the server to reveal less information. The researcher points to instructions at http://stackoverflow.com/questions/16010565/how-to-prevent-gunicorn-from-returning-a-server-http-header.
  2. Update out-of-date components immediately and implement and follow a patch/update management process. In plain terms: keep a list of the software you run, watch for new versions, and install them promptly instead of leaving old versions in place.

The title indicates the goal of suppressing the version in the Server header on gratipay.com or grtp.co.

Other places to look

  • Check the Server header on other paths and virtual hosts. A positive result is a version string such as gunicorn/18.0 or any other software name with a version number.
  • Check the Via header for proxy version disclosure. A positive result is a value like 1.1 vegur that includes a product name and version.
  • Look for custom headers that leak application versions, such as X-Gratipay-Version. A positive result is any header whose value changes with deployments and reveals a build or version number.
  • Test error responses and redirects, which sometimes include different headers from successful responses. A positive result is version information present only on those responses.
  • Inspect responses from static assets and API endpoints, not just HTML pages. An API endpoint is a web address meant for programs rather than people, returning data instead of a page. A positive result is the same disclosure on those endpoints.

Notes for anyone hunting this kind of bug

This kind of bug tends to hide in default server configurations, especially where a framework or proxy is deployed without tuning. During recon, meaning the early stage of exploring a target, look at response headers from every host and path. The Server and Via headers are the usual suspects, but custom X- headers can also leak versions. The researcher demonstrated the issue with a single request and response pair. The impact argument was honest about the lack of known vulnerabilities at the time, The report was rated as a low-severity information disclosure.

Glossary

  • API endpoint: a web address designed for programs to talk to, returning data rather than a web page.
  • Application server: software that runs a website's code and passes the finished result to the outside world; gunicorn is one.
  • Burp Suite: a tool that sits between your browser and a website so you can read and edit the requests and responses.
  • Cache-Control: a response header that tells the browser whether it may store a copy of the page.
  • Cookie: a small piece of data a website asks your browser to keep and send back on later requests, so the site can recognise you.
  • CSRF token: a random value placed in a cookie and expected back in a request, proving the request came from the site's own pages.
  • CVSS: a standard scoring system for rating the severity of security issues.
  • GET: the HTTP method meaning "give me this resource".
  • gunicorn: an application server commonly used to run Python web applications.
  • Header: an extra line of information sent alongside a web request or response, not shown on the page itself.
  • HackerOne: a platform where security researchers report vulnerabilities to companies.
  • Host: the header that tells the server which website is being requested.
  • HTTP: the language browsers and servers use to exchange requests and responses.
  • HTTPS: HTTP carried over an encrypted connection.
  • Information disclosure: revealing details about a system that are more useful to an attacker than to a normal user.
  • Intercepting proxy: a tool that sits between browser and server and lets you inspect the traffic passing through.
  • Patch management: the practice of tracking software versions and installing updates promptly.
  • Port: a numbered door on a server through which a particular kind of traffic arrives; 443 is the usual door for HTTPS.
  • Proxy: software that sits in front of a server and forwards traffic to it; vegur is one.
  • Recon: the early exploration stage of a security assessment, gathering information about a target.
  • Response header: a line of information a server sends back with a page, such as the server software name.
  • Root path: the address /, meaning the site's home page.
  • Server: the computer (or the software on it) that answers requests and sends back pages.
  • Set-Cookie: a response header that hands the browser a cookie to store.
  • Severity: how serious an issue is judged to be, often Low, Medium, High or Critical.
  • Status code: a number in the response saying how the request went; 200 means success.
  • Transfer-Encoding: a header saying how the body of the response is packaged, for example in chunks.
  • User-Agent: a header identifying the browser and operating system making the request.
  • UTF-8: a standard way of encoding text characters.
  • Vegur: a proxy used in front of web applications.
  • Via: a response header that names the proxy that handled the request, sometimes with its version.
  • Virtual host: one of several websites served by the same physical server.
  • Vulnerability: a weakness in software that an attacker could use to cause harm.
  • X- header: a custom header whose name starts with X-, often used by an application for its own information.
  • X-Frame-Options: a header that controls whether a page may be embedded in a frame on another site.
  • X-XSS-Protection: a header that asks the browser to use its built-in cross-site scripting filter.

More from Gratipay

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.