Accessing Apple’s internal UAT Slackbot for fun and non-profit
An internal Apple UAT Slackbot installation endpoint was reachable without authorisation, and installing it returned an OAuth authorisation code in the redirect URL. An attacker could install the bot into their own Slack workspace and obtain that code, potentially allowing them to send Slack messages, alter the development lifecycle, or disrupt CI/CD pipelines.
Published on shail-official.medium.com
In December 2020, Ashish Kunwar and I went on a hunting spree against multiple Apple targets. To begin with, as usual, we started by collecting all of their subdomains first.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the bot installation and OAuth flow lacked authorisation checks, so anyone could start an install and receive a valid authorisation code.
Impact
An adversary could potentially send Slack messages, alter the software development lifecycle, or interrupt the CI/CD pipeline, and possibly disclose sensitive information.
What the attacker needed
Reachable internal UAT host; attacker has a Slack workspace
The fix
The issue was patched within two days of being reported.
How it was found
- Collect Apple subdomains and find the UAT Slackbot host.
- Brute-force files and directories to discover the install path.
- Visit the install path and allow the bot to be installed.
- Observe the redirect to the OAuth endpoint carrying a code and state value.
- Confirm the Slackbot was installed in the attacker's workspace.
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 write-up has not been written yet. The Original tab links to the source.
A Slackbot is an automated app that lives in a Slack workspace and can post messages or act on the team's behalf. Here, a page meant for Apple staff let anyone start installing an internal bot, and the reply handed back a short code that normally proves the install was legitimate. Holding that code could let someone else finish the connection and act as the bot.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.