Skip to content

Potential leakage of Sentry auth tokens by React Native SDK with Expo plugin #10

@jeff-a-holland-codecov

Description

@jeff-a-holland-codecov

Package and Versions

Package: sentry/react-native
Affected Version(s): >=5.16.0, <=5.19.0
Patched Version(s): >=5.19.1

Description

SDK versions between and including 5.16.0 and 5.19.0 allowed Sentry auth tokens to be set in the optional authToken configuration parameter, for debugging purposes. Doing so would result in the auth token being built into the application bundle, and therefore the auth token could be potentially exposed in case the application bundle is subsequently published.

You may ignore this notification if you are not using authToken configuration parameter in your React Native SDK configuration or did not publish apps using this way of configuring the authToken.

If you had set the authToken in the plugin config previously, and built and published an app with that config, you should rotate your token.

Impact

The auth token would be built in to the application bundle potentially exposing it in cases where the application bundle is published.

Patches

The behavior that allowed setting an authToken parameter was fixed in SDK version 5.19.1 where, if this parameter was set, you will see a warning and the authToken would be removed before bundling the application.

Workarounds

Remove authToken from the plugin configuration.

If you had set the authToken in the plugin config previously, and built and published an app with that config, you should rotate your token.

Information

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions