Skip to content
Open redirect Disclosed report Beginner

HTTP Parameter Pollution using semicolons in iframe element at hackerone.com/careers allows loading external Greenhouse forms

The HackerOne careers page embedded a Greenhouse application form in an iframe, taking the gh_jid parameter from the URL and placing it into the iframe's token parameter. By including a semicolon in the gh_jid value, an attacker could override the for parameter and load an arbitrary Greenhouse form (e.g., Airbnb's) on the HackerOne page, enabling phishing.

kapytein Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in 2 hours
  • Fixed in 34 hours
  • Paid in 5 days
  • Disclosed after 3 months

Summary by the researcher

Using semicolons, I was able to override the for parameter in the iframe element. This allowed me to load external Greenhouse forms (which are not owned by HackerOne) on the page. Later on, a global fix was applied by Greenhouse on the boards.greenhouse.io/embed/ endpoint.

The report

Summary: I noticed that HackerOne career pages loads it's application forms from Greenhouse.io via an iframe. The gh_jid parameter value is taken into the iframe element for the token parameter in the iframe URL (boards.greenhouse.io). Any html characters are escaped in order to avoid XSS (and possibly also to avoid any additional parameters to be included to avoid that parameters are overridden). However, I have discovered that I could load any form on the page.

Description (Include Impact): Basically, you can load any form of Greenhouse.io via a GET request. I am not entirely sure how Greenhouse works (I also can not discover how it actually works since you only have paid subscriptions at Greenhouse), but you might also be able to craft pages instead of forms only (which would be more effective for a phishing attack, than only a form).

This happens because due to the fact that you can include a semicolon in the iframe element. As stated on https://en.wikipedia.org/wiki/Query_string, a semicolon can be used besides the ampersand in URLs embedded in HTML.

Steps To Reproduce

  1. Go to https://www.hackerone.com/careers?gh_jid=795069;for=airbnb for example.
  2. You will notice an AIrbnb application form being loaded on the page.

(I sadly could not test my own forms, hence why I have used Airbnb forms to load on the page, as stated above).

A fix would be to either escape the semicolon, or to adjust the position of the for parameter in the iframe URL to avoid the URL being overridden.

Example for changing the order of the URLs:

with

PS: After my pretty much failed report (#289999) (which was valid, but the way I described the vulnerability made it invalid), I appreciate any feedback on the quality of my report! Thanks in advance.

Impact

An attacker can load any other forms on the page, and possibly craft pages as well, but that depends on how Greenhouse.io actually works with it's forms. Therefore, a phishing attack would be possible.

The original report as published on HackerOne, by kapytein. 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

HackerOne's careers page embeds job application forms from Greenhouse. The page takes a gh_jid parameter from the URL and passes its value into an iframe that points at boards.greenhouse.io, where the token parameter selects which job application form is shown. The researcher's summary describes the mechanism plainly: the gh_jid value is taken into the iframe element for the token parameter in the iframe URL.

The feature therefore has two jobs: render the correct form for the requested job, and make sure nothing else in the iframe URL can be influenced by the visitor. HTML characters in the value are escaped, which the researcher reads as a defence against XSS and possibly also as a way to stop extra parameters being appended and overriding existing ones.

Setup

No accounts, tools or versions are described. The researcher notes that Greenhouse only offers paid subscriptions, so they could not create their own forms to test with. That limitation shapes the whole report: every demonstration uses a form belonging to another organisation, Airbnb, loaded in place of the HackerOne form.

Finding it

The researcher noticed that the careers page loads its application forms from Greenhouse via an iframe, and that the gh_jid value ends up in the iframe URL as the token parameter. Escaping of HTML characters was in place, but the researcher found that a semicolon could still be included in the iframe element. As the Wikipedia article on query strings cited in the report explains, a semicolon can be used alongside the ampersand in URLs embedded in HTML. That gives a second way to separate parameters, one that the escaping did not remove.

Exploitation

Step 1: put a semicolon and a second parameter into gh_jid

Request the careers page with a value that contains both the legitimate job id and an additional for parameter:

Text
https://www.hackerone.com/careers?gh_jid=795069;for=airbnb

Here 795069 is the token for the HackerOne job, and ;for=airbnb is smuggled in behind it. Because the semicolon acts as a parameter separator in the iframe URL, the injected for=airbnb overrides the for value HackerOne intended.

Step 2: observe which form is rendered

The result is that an Airbnb application form is loaded on the HackerOne careers page. The legitimate for=hackerone value is overridden by the later for=airbnb, so the page displays a form that does not belong to HackerOne.

The researcher could not test with forms of their own, which is why an Airbnb form was used for the demonstration.

The URL shapes involved

The report gives the two orderings side by side. With the for parameter placed before the token, the injected value wins:

Text
https://boards.greenhouse.io/embed/job_app?for=hackerone&[redacted]&b=https%3A%2F%2Fwww.hackerone.com%2Fcareers

With for moved to the end, after the token and the b parameter, the injected value no longer overrides anything:

Text
https://boards.greenhouse.io/embed/job_app?[redacted]&b=https%3A%2F%2Fwww.hackerone.com%2Fcareers&for=hackerone

In the first URL the injected for=airbnb overrides the earlier for=hackerone, so the form loads. In the second URL the same split happens, but the genuine for=hackerone now comes last, so the form is not overridden. This is the basis for one of the two fixes the researcher proposes.

Root cause

The iframe URL is assembled from a visitor-controlled value, and the only sanitisation applied is escaping of HTML characters. Escaping stops markup from breaking out of the attribute, but it does not stop a semicolon from acting as a query-string separator once the value is placed inside the URL. A semicolon can act as a parameter separator in URLs embedded in HTML, so a value like 795069;for=airbnb produces an extra parameter. Whether the injected parameter wins depends on where it lands relative to the legitimate one; in the report's first example the legitimate for came first and the injected one overrode it. The researcher's reading is that the escaping was intended, at least in part, to prevent additional parameters being included and overriding existing ones; the semicolon bypassed that intention.

Impact

An attacker can load any other Greenhouse form on the HackerOne careers page. The researcher is explicit that they are not certain how Greenhouse works internally, and could not find out because of the paid subscription requirement, so they raise the possibility that whole pages, not just forms, could be crafted. That would be more effective for phishing than a form alone. The concrete, demonstrated effect is the substitution of a third-party application form on a trusted page, which the researcher frames as enabling a phishing attack. The report does not claim any access to data submitted through the substituted form, and no bounty or severity is recorded.

Fix

The researcher proposes two options: escape the semicolon, or change the position of the for parameter in the iframe URL so that it cannot be overridden, as shown by the second URL above. According to the summary, a global fix was later applied by Greenhouse on the boards.greenhouse.io/embed/ endpoint.

Variants to test

  1. Try other separator characters in the same parameter: a value such as 795069%3Bfor=airbnb or a literal & where the application escapes HTML but not query syntax. A positive result is a second parameter appearing in the generated iframe URL and changing what the embedded endpoint renders.
  2. Test parameter ordering on the embedded endpoint directly: request the embed URL with the legitimate parameter first and an injected duplicate later, then reversed. A positive result is the injected value taking effect in the first ordering and not in the second, which confirms last-wins parsing.
  3. Look for other embeds that copy a request parameter into an iframe src and escape only HTML characters. A positive result is any change to the rendered third-party content, such as a different form, tenant or page, driven solely by the crafted parameter.
  4. Check whether the same semicolon trick reaches parameters other than the one being overridden, for example the b parameter that carries the embedding site's URL. A positive result is the embedded frame behaving as though it were hosted on a different origin than the one the site intended.

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. 10 min read.

What happened, in plain words

HackerOne runs a careers page where people can apply for jobs. The application forms themselves are not built by HackerOne: they are supplied by a separate company called Greenhouse, which hosts job application forms for many organisations. HackerOne's page simply shows the Greenhouse form inside a small window embedded in the page, called an iframe.

An iframe is like a picture frame cut into a web page: the page you are on stays around it, but the content inside the frame comes from somewhere else. Here the frame points at Greenhouse's servers, and a value in the address of the HackerOne careers page decides which job's form appears inside the frame.

The researcher found that by putting a semicolon and some extra text into that value, they could make the frame show a completely different organisation's application form, in this case Airbnb's, on HackerOne's own careers page. A visitor would see an Airbnb application form loaded on HackerOne's own careers page. That is useful for phishing: tricking people into typing personal details into a form that is not what it appears to be.

The pieces involved

Before the trick makes sense, three everyday ideas need to be clear.

A URL and its query string. A web address can carry extra information after a question mark. In https://www.hackerone.com/careers?gh_jid=795069, everything after the ? is called the query string, and it is made of pairs like name=value. Here the name is gh_jid and the value is 795069. Servers read these pairs to decide what to show. Normally pairs are separated by an ampersand (&), so ?a=1&b=2 means two pairs.

A parameter. Each name=value pair in a query string is a parameter. Think of it as a labelled slot on a form: the label is the name, the content is the value. The careers page has a slot called gh_jid, and the Greenhouse embed address has slots called token, for and b.

A token. In this context a token is just an identifier: a number that tells Greenhouse which particular job application form to display. 795069 is the token for the HackerOne job in the example. It is not a password or a secret; it is closer to a ticket number that says "show form number 795069".

How the careers page works

HackerOne's careers page takes the gh_jid value from its own address and passes it into the iframe that points at boards.greenhouse.io, where the token parameter selects which job application form is shown. The researcher's summary puts it plainly: the gh_jid value is taken into the iframe element for the token parameter in the iframe URL.

So the feature has two jobs. First, show the right form for the job the visitor asked for. Second, make sure a visitor cannot influence anything else in the iframe address. To do the second job, the page escapes HTML characters in the value. Escaping means replacing characters that have special meaning in HTML, such as < and >, with harmless coded versions, so that the value cannot break out of the place it is inserted and become markup. The researcher reads this as a defence against XSS (cross-site scripting, where an attacker gets their own code to run inside someone else's page), and possibly also as a way to stop extra parameters being appended and overriding existing ones.

Setting up

No accounts, tools or versions are described. The researcher notes that Greenhouse only offers paid subscriptions, so they could not create their own forms to test with. That limitation shapes the whole report: every demonstration uses a form belonging to another organisation, Airbnb, loaded in place of the HackerOne form.

Finding it

The researcher noticed that the careers page loads its application forms from Greenhouse via an iframe, and that the gh_jid value ends up in the iframe address as the token parameter. Escaping of HTML characters was in place, but the researcher found that a semicolon could still be included in the iframe element. As the Wikipedia article on query strings cited in the report explains, a semicolon can be used alongside the ampersand in URLs embedded in HTML. That gives a second way to separate parameters, one that the escaping did not remove.

In other words: the page was careful to neutralise characters that could turn into HTML, but a semicolon is not an HTML character. It is an ordinary punctuation mark that happens to also work as a parameter separator in some URL contexts. The filter was watching the wrong door.

Exploitation

Step 1: put a semicolon and a second parameter into gh_jid

Request the careers page with a value that contains both the legitimate job id and an additional for parameter:

Text
https://www.hackerone.com/careers?gh_jid=795069;for=airbnb

Line by line, in plain words:

  • https://www.hackerone.com/careers is the normal careers page address.
  • ? starts the query string, the part that carries extra instructions.
  • gh_jid=795069 is the legitimate parameter: show the form for job 795069.
  • ;for=airbnb is smuggled in behind it. The semicolon is the separator, and for=airbnb is an extra parameter that says which organisation's form to show.

Here 795069 is the token for the HackerOne job, and ;for=airbnb is smuggled in behind it. Because the semicolon acts as a parameter separator in the iframe address, the injected for=airbnb overrides the for value HackerOne intended.

Why this step: the researcher wanted to see whether the page would pass the whole value, semicolon included, through to the iframe address without complaint. If it did, the semicolon would split the value into two parameters on the Greenhouse side.

Step 2: observe which form is rendered

The result is that an Airbnb application form is loaded on the HackerOne careers page. The legitimate for=hackerone value is overridden by the later for=airbnb, so the page displays a form that does not belong to HackerOne.

Why this step: seeing which form appears is the proof. If the Airbnb form shows up, the injected parameter won. If the HackerOne form still shows, it did not.

The researcher could not test with forms of their own, which is why an Airbnb form was used for the demonstration.

The URL shapes involved

The report gives the two orderings side by side. With the for parameter placed before the token, the injected value wins:

Text
https://boards.greenhouse.io/embed/job_app?for=hackerone&[redacted]&b=https%3A%2F%2Fwww.hackerone.com%2Fcareers

Line by line:

  • https://boards.greenhouse.io/embed/job_app is the Greenhouse address that serves the embedded application form.
  • for=hackerone says the form belongs to HackerOne. This comes first.
  • & is the normal separator between parameters.
  • [redacted] is the token parameter, but with a semicolon and a second for` hidden inside its value.
  • &b=https%3A%2F%2Fwww.hackerone.com%2Fcareers is the b parameter, which carries the address of the site doing the embedding. The %3A and %2F are encoded versions of : and /, a standard way of writing characters that would otherwise be ambiguous in a URL.

With for moved to the end, after the token and the b parameter, the injected value no longer overrides anything:

Text
https://boards.greenhouse.io/embed/job_app?[redacted]&b=https%3A%2F%2Fwww.hackerone.com%2Fcareers&for=hackerone

Line by line:

  • The address and the first parameter are the same as before, except that for=hackerone is no longer at the front.
  • [redacted] still hides a second for` inside the token value.
  • &b=https%3A%2F%2Fwww.hackerone.com%2Fcareers is unchanged.
  • &for=hackerone now comes last, after everything else.

In the first URL the injected for=airbnb overrides the earlier for=hackerone, so the form loads. In the second URL the same split happens, but the genuine for=hackerone now comes last, so the form is not overridden. This is the basis for one of the two fixes the researcher proposes.

The everyday comparison: imagine a form where two people write their name in the same box. Whoever writes last is the name that stays. In the report's examples, the later for value is the one that takes effect. Putting the genuine value last means the injected one is overwritten instead of overwriting.

Why it works

The iframe address is assembled from a value a visitor controls, and the only cleaning applied is escaping of HTML characters. Escaping stops markup from breaking out of the attribute, but it does not stop a semicolon from acting as a query-string separator once the value is placed inside the URL. A semicolon can act as a parameter separator in URLs embedded in HTML, so a value like 795069;for=airbnb produces an extra parameter. Whether the injected parameter wins depends on where it lands relative to the legitimate one; in the report's first example the legitimate for came first and the injected one overrode it. The researcher's reading is that the escaping was intended, at least in part, to prevent additional parameters being included and overriding existing ones; the semicolon bypassed that intention.

This kind of problem is often called HTTP parameter pollution: pollution because extra, unwanted parameters are injected into a request, and HTTP because it happens in the parameters of a web request. The page was not broken by a single dramatic flaw; it was a gap between what the filter checked (HTML characters) and what the receiving server treated as meaningful (semicolons as separators).

Impact

An attacker can load any other Greenhouse form on the HackerOne careers page. The researcher is explicit that they are not certain how Greenhouse works internally, and could not find out because of the paid subscription requirement, so they raise the possibility that whole pages, not just forms, could be crafted. That would be more effective for phishing than a form alone. The concrete, demonstrated effect is the substitution of a third-party application form on a trusted page, which the researcher frames as enabling a phishing attack. The report does not claim any access to data submitted through the substituted form, and no bounty or severity is recorded.

Why this matters to an ordinary visitor: people trust a form because of the page it sits on. If the page is HackerOne's careers page, a job seeker may type their name, contact details and work history without a second thought. A form that silently belongs to someone else undermines that trust, even if nothing else is broken.

Fix

The researcher proposes two options: escape the semicolon, or change the position of the for parameter in the iframe address so that it cannot be overridden, as shown by the second URL above. According to the summary, a global fix was later applied by Greenhouse on the boards.greenhouse.io/embed/ endpoint.

The report notes a global fix was applied by Greenhouse on the boards.greenhouse.io/embed/ endpoint.

Variants to test

  1. Try other separator characters in the same parameter: a value such as 795069%3Bfor=airbnb or a literal & where the application escapes HTML but not query syntax. A positive result is a second parameter appearing in the generated iframe address and changing what the embedded endpoint renders.
  2. Test parameter ordering on the embedded endpoint directly: request the embed address with the legitimate parameter first and an injected duplicate later, then reversed. A positive result is the injected value taking effect in the first ordering and not in the second, which confirms last-wins parsing.
  3. Look for other embeds that copy a request parameter into an iframe src and escape only HTML characters. A positive result is any change to the rendered third-party content, such as a different form, tenant or page, driven solely by the crafted parameter.
  4. Check whether the same semicolon trick reaches parameters other than the one being overridden, for example the b parameter that carries the embedding site's URL. A positive result is the embedded frame behaving as though it were hosted on a different origin than the one the site intended.

Glossary

  • API: a way for one piece of software to ask another for something, like a service counter where you make a request and get a defined response.
  • Cookie: a small piece of data a website stores in your browser so it can recognise you on later requests.
  • Cross-site scripting (XSS): a flaw where an attacker gets their own code to run inside someone else's web page, so it appears to come from the trusted site.
  • Embed: to place content from one site inside another site's page, usually in a frame.
  • Escaping: replacing characters that have special meaning with harmless coded versions so they cannot be interpreted as instructions.
  • Greenhouse: the third-party company that hosts job application forms for organisations, including the forms shown on HackerOne's careers page.
  • HTTP parameter pollution: injecting extra, unwanted parameters into a web request so that they override or interfere with the ones the site intended.
  • Iframe: a window cut into a web page that displays content from another address.
  • Parameter: a name=value pair in a URL's query string, like a labelled slot on a form.
  • Phishing: tricking someone into entering information into something that looks trustworthy but is not.
  • Query string: the part of a URL after the ?, carrying parameters.
  • Semicolon (;): a punctuation character that, in some URL contexts, can act as a separator between parameters alongside the ampersand.
  • Token: an identifier, here a number that tells Greenhouse which job application form to display.
  • URL: a web address.
  • XSS: see cross-site scripting.

More by kapytein

View all

5 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.