【】
If you perform a very specific query in the search field of online code repository Github, where many Slack bot projects are stored, you can get info that potentially lets you access a trove of corporate data, including companies' internal chats and files.
This is because a lot of Slack bot developers -- and there are a lot of them, since building a Slack bot is quite easy -- included their Slack tokens (personal Slack account credentials) directly in the code, which they share publicly on Github.
SEE ALSO:How do I make Slack apps?The issue was discovered by security company Detectify, which notified Slack about it on March 26. Detectify managed to find "thousands" of such tokens with a simple GitHub search. The story was first reported by Quartz.
Tokens of all types aren't uncommon on GitHub, but the problem is made worse by the way Slack tokens are constructed. In case of private tokens and custom bot tokens, they're a string of characters using these formats:
xoxp-XXXXXXXXX-XXXXXXXXXXXXXXXXXXX
xoxb-XXXXXXXXX-XXXXXXXXX-XXXXXXXXX-XXXXXX
Simply searching for the four letter prefixes on GitHub will net you a lot of tokens in plain text, which we were able to replicate.
If you've never built anything on the Slack platform, you may think this doesn't affect you, and in many cases that's true. But in larger business organizations, it's quite possible that some team member had built a Slack bot and inadvertently revealed their Slack token, potentially exposing company data.
Outsiders can easily gain access to internal chat conversations, shared files, direct messages and even passwords.
"Using the tokens it’s possible to eavesdrop on a company. Outsiders can easily gain access to internal chat conversations, shared files, direct messages and even passwords to other services if these have been shared on Slack," writes Detectify.
The researchers at Detectify have found tokens belonging to Fortune 500 companies, payment providers, Internet service providers health care providers, advertising agencies, university classes and newspapers, among other organizations. And using those tokens, they revealed database credentials, private messages and login details for other services.
The good news is the problem has largely already been fixed. Slack responded to the problem, telling Detectify they've “revoked the tokens you reported, notified affected users and team owners directly, and that we’ll be doing that proactively going forward”.
In other words, if someone makes the same mistake again, Slack will disable the tokens and warn them -- as seen in the message Slack recently started sending to some developers.
Developers, in general, should take care not to place tokens directly in the code and use environment variables instead. Slack admins can make sure only Team Owners and selected Slack members can create tokens and integrations; the option is in Slack's Admin Settings.
Mashablehas contacted Slack about the issue. "Slack is clear and specific that tokens should be treated just like passwords. We warn developers when they generate a token never to share it with other users or applications," a Slack spokesperson said in an email.
According to the spokesperson, Slack will continue to improve its documentation and communications to make sure developers understand this.
"For privacy reasons, we are not sharing information about the teams impacted, however, all of the reported tokens were disabled, as well as others we proactively found. We notified both the users who created the tokens, as well as the owners of affected teams," she wrote.
A popular platform for corporate communication (disclosure: We use Slack at Mashable), Slack boasted more than 2.3 million daily active users in February.
Have something to add to this story? Share it in the comments.
相关文章

Dog elected for third term as mayor of Minnesota town
Hopefully he has a human chief of staff.。Duke the Great Pyrenees is the only dog that's ever been el2025-12-31
前言 :會議邀請函(範本15篇)《會議邀請函》會議邀請函一):尊敬的_______先生女士感謝您一向以來對本公司的關心和支持,使公司得以蓬勃發展。為更好的使你了解我們,更好的使我們合作共贏 、共創輝煌 。誠2025-12-31
怎麽描寫?1、蟋蟀通過摩擦唱歌。在蟋蟀的翅膀上,一邊有一個類似銼刀的翼膜,相當於弦樂器,另一邊有一個堅硬的翼膜,相當於蹦跳者。當這兩種發音裝置相互摩擦時,蟋 。昆蟲記中意大利蟋蟀的發聲情況?"2025-12-31
醋泡黑豆的醋泡黑豆養生保健食品,具體有以下幾種功效:具有降血壓、降血脂的功效,可以用於治療高血壓,高血脂,並且可以預防各種心腦血管疾病的發生,例。糖尿病人能吃醋泡黑豆醋泡黑豆是一種養生方法 。醋泡黑豆有2025-12-31
This weird squid looks like it has googly eyes, guys
Internet, meet your new spirit animal.。Scientists aboard the research vessel the E/V Nautilus, off t2025-12-31
周琦直接隔空喊話新疆男籃高層 ,到底是聰明還是愚昧?真的希望周琦和小丁都不要再拿自己的職業生涯做賭注了,把心思都用在打球上,別的事對你來說都不是最重要的。即使一時得到了很多錢,你能持續性的給俱樂部帶來.2025-12-31

最新评论