Trick make all fixed open redirect links vulnerable again
The open redirect in Slack's checkcookie endpoint was fixed to only allow redirects to slack.com domains, but an attacker could bypass this by uploading an SVG file with an onload handler that redirects to an external site, then using the public link to that SVG as the redir parameter. This allowed the attacker to redirect victims to arbitrary external websites.
- Triaged in 30 hours
- Fixed in 28 days
- Paid in 28 days
- Disclosed after 5 months
this trick make all fixed open redirect links vulnerable again in this resolved report "https://hackerone.com/reports/2622" before fixing this link "https://slack.com/checkcookie?redir=http://www.example.com" redirect victim to "http://www.example.com"
after fixing this link "https://slack.com/checkcookie?redir=http://www.example.com" only redirect to "https://www.slack.com/" or "https://subdomain.slack.com/"
the trick
1- use slack account to upload .svg file contain this code <code>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><svg onload="window.location='http://www.example.com'" xmlns="http://www.w3.org/2000/svg"> </svg> </code>
2-make public link for svg file "https://files.slack.com/files-pri/T0E7QLVLL-F0G41EG2W/redirect.svg?pub_secret=7a6caed489"
3- complete link "https://slack.com/checkcookie?redir=https://files.slack.com/files-pri/T0E7QLVLL-F0G41EG2W/redirect.svg?pub_secret=7a6caed489"
4-when user click this link will redirect to "http://www.example.com"
in this accepted and Bounty report "https://hackerone.com/reports/2622" when user click this link "https://slack.com/checkcookie?redir=http://www.example.com" the result is redirect user to "http://www.example.com" in my report it's the same result
you should stop execute svg files and display its's code like HTML files
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
Impact
An attacker could redirect victims to an external website despite the open redirect fix.
What the attacker needed
A Slack account; victim clicks a link
The fix
The text suggests stopping the execution of SVG files and displaying their code like HTML files instead.
How it was found
- Upload an SVG file containing an onload handler that redirects to an external site using a Slack account.
- Create a public link for the uploaded SVG file.
- Construct a checkcookie URL with the redir parameter set to the public SVG link.
- When a user clicks the link, they are redirected to the external site.
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.
An open redirect is a flaw where a website lets you specify where to send a user after they click a link, and attackers abuse it to send people to malicious sites. Slack tried to fix this by only allowing redirects to its own domains, but the researcher found that by hosting a file on Slack's own file storage that automatically redirects elsewhere, they could still achieve the same effect.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.