Skip to content
Info disclosure Write-up Intermediate

Intellij Ide Plugins Security

IntelliJ plugins store sensitive data such as OAuth refresh tokens in the macOS keychain, and because there is no sandboxing between plugins, any third-party plugin can read those secrets. An attacker who convinces a user to install a malicious plugin could steal tokens and potentially take over accounts.

Vaibhav Agrawal Follow

Published on infosecwriteups.com

IDE plugins are a great way to make developer’s life easier by providing functionalities which help them build or test an application and much more.

Vaibhav Agrawal, on infosecwriteups.com

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 IntelliJ platform provides no sandboxing or access control between plugins, so any plugin can read credentials stored by another plugin in the shared macOS keychain.

Impact

A malicious plugin could read OAuth refresh tokens stored by other plugins, which could lead to complete account takeover depending on what data is stored; the report notes this is on macOS and that the user may be prompted for system credentials the first time.

What the attacker needed

MacOS; victim installs a malicious plugin; victim has stored secrets via a plugin

The fix

Plugin developers should avoid storing sensitive data in persistent storage or warn users, and IDE users can disable password saving to prevent secrets from being stored.

How it was found

  1. Install a malicious third-party plugin in IntelliJ.
  2. Identify the key name used by another plugin to store its secret.
  3. Use the plugin code to fetch the credential from the macOS keychain.
  4. Read the stored token, such as an OAuth refresh token.

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.

Plugins are add-ons that extend an IDE (integrated development environment, a code editor). This report says that when one plugin saves a secret like a login token, another plugin installed in the same IDE can read it because the IDE does not isolate plugins from each other. A malicious plugin could therefore steal those secrets and use them to access the user's accounts.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.