Skip to content

Validate API paths, sessions, and wallet CSP - #665

Merged
DeFiVC merged 2 commits into
ChainLearnOfficial:mainfrom
tecch-wiz:fix-534-545-546-543
Oct 23, 2026
Merged

DeFiVC merged 2 commits into
ChainLearnOfficial:mainfrom
tecch-wiz:fix-534-545-546-543

Conversation

@tecch-wiz

Copy link
Copy Markdown
Contributor

PR Description

Consolidate ResponseInterceptor in shared API types.
Validate session JWT structure and expiry in middleware, clearing invalid cookies. Signature verification remains server-side.
Encode API path parameters and reject blank or dot-segment identifiers.
Restrict CSP extension origins to the official Freighter, LOBSTR, and Rabet IDs.
Closes #534
Closes #545
Closes #546
Closes #543

Tests, lint, and typecheck were not run. Editor diagnostics still report existing ModuleContent typing errors in courses.ts and metadata-fetch typing warnings.

@netlify

netlify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for chainlearn failed.

Name Link
🔨 Latest commit ac18ffe
🔍 Latest deploy log https://app.netlify.com/projects/chainlearn/deploys/6adb13d9db7ae5df0a7c030a

@DeFiVC

DeFiVC commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Resolve conflict

@DeFiVC
DeFiVC merged commit 29ae905 into ChainLearnOfficial:main Oct 23, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants