Skip to content

fix(server): remove open redirect in GitHub App install/OAuth callback - #7485

Open
hassan254-prog wants to merge 1 commit into
masterfrom
wari/fix-open-redirect-oauth-callback
Open

hassan254-prog wants to merge 1 commit into
masterfrom
wari/fix-open-redirect-oauth-callback

Conversation

@hassan254-prog

@hassan254-prog hassan254-prog commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Describe the problem and your solution

  • GitHub App install/update callbacks with no state param redirected to the request's Referer header, which is attacker-controlled, enabling open redirect to phishing URLs. This pr redirect to basePublicUrl (fixed server config) instead.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/server/lib/controllers/appAuth.controller.unit.test.ts Outdated
@hassan254-prog hassan254-prog self-assigned this Sep 10, 2026
@hassan254-prog
hassan254-prog force-pushed the wari/fix-open-redirect-oauth-callback branch from 0340c84 to a752864 Compare September 10, 2026 17:51
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