Unintended information disclosure in the Hubot Log files
OAuth tokens were written in plaintext to the application's log files. An attacker with access to those logs could use the tokens to gain control of the systems they grant access to.
- Triaged in 31 days
- Fixed in 8 months
- Disclosed after 10 months
Summary by the program
Dear Rocket.Chat Team
While inspecting our logs I noticed, that the OAuth Tokens are leaked in plaintext in the logs. I wanted to draw your attention to this, as this is a security vulnerability. See the attached Screenshot for a redacted log excerpt.
In my opinion, the best approach here would be to substitute all tokens for a placeholder.
Server and Version:
(We are running Rocket.Chat in a Docker Container)
+---------------------------------------------------------+ | SERVER RUNNING | +---------------------------------------------------------+ | | | Rocket.Chat Version: 4.1.0 | | NodeJS Version: 12.22.1 - x64 | | MongoDB Version: 4.2.17 | | MongoDB Engine: wiredTiger | | Platform: linux | | Process Port: 3000 | | | | ReplicaSet OpLog: Enabled | | Commit Hash: 0da143cd13 | | Commit Branch: HEAD | | | +---------------------------------------------------------+
Impact
Depending on the Token full control of the Systems, that the tokens grant access to.
Fixed in
4.6.4>
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
Depending on the token, an attacker could gain full control of the systems that the tokens grant access to.
What the attacker needed
Access to log files
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.
OAuth tokens are like temporary passwords that let apps access other services on your behalf. Here, these tokens were saved in log files without any protection, so anyone who could read the logs could use them to get into those services.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.