Skip to content

Security: Redux store exposed on window for testing#8185

Open
tomaioo wants to merge 1 commit into
ethyca:mainfrom
tomaioo:fix/security/redux-store-exposed-on-window-for-testin
Open

Security: Redux store exposed on window for testing#8185
tomaioo wants to merge 1 commit into
ethyca:mainfrom
tomaioo:fix/security/redux-store-exposed-on-window-for-testin

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented May 14, 2026

Summary

Security: Redux store exposed on window for testing

Problem

Severity: Medium | File: clients/admin-ui/global.d.ts:L10

In clients/admin-ui/global.d.ts, the __REDUX_STORE__ is exposed on the Window interface. While this is intended for Cypress testing, it could leak sensitive application state if accessed in production.

Solution

Ensure this is only exposed in test environments. Consider using environment checks or build-time configuration to exclude this from production builds.

Changes

  • clients/admin-ui/global.d.ts (modified)

In `clients/admin-ui/global.d.ts`, the `__REDUX_STORE__` is exposed on the `Window` interface. While this is intended for Cypress testing, it could leak sensitive application state if accessed in production.

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@tomaioo tomaioo requested a review from a team as a code owner May 14, 2026 18:09
@tomaioo tomaioo requested review from kruulik and removed request for a team May 14, 2026 18:09
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 14, 2026

@tomaioo is attempting to deploy a commit to the Ethyca Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant