Skip to content

Synch PR#108

Closed
h4ck32n4u75 wants to merge 26 commits into
thkruz:mainfrom
h4ck32n4u75:dev
Closed

Synch PR#108
h4ck32n4u75 wants to merge 26 commits into
thkruz:mainfrom
h4ck32n4u75:dev

Conversation

@h4ck32n4u75

Copy link
Copy Markdown
Collaborator

Getting caught up and starting security patching as well.

const getCookie = (name: string): string | null => {
try {
// Escape the cookie name to prevent regex injection
const escapedName = escapeRegExp(name);
const pattern = new RegExp((^| )${escapedName}=([^;]+), 'u');
const match = pattern.exec(document.cookie);

  return match ? decodeURIComponent(match[2]) : null;
} catch {
  return null;
}

CWE-94 in src/user-account/supabase-client.ts

thkruz and others added 26 commits November 23, 2025 11:52
refactor(router): change access modifier for destroy method
refactor(sound): update access modifiers in SoundManager class
refactor(sync): rename method for clarity in SyncManager class
test(rf-front-end): update tests to reflect constructor changes
test(router): add destroy method test and fix window.location mock
test(draggable-html-box): add tests for DraggableHtmlBox functionality
test(save-progress-toast): add comprehensive tests for destroy method
test(sound-manager): add extensive tests for SoundManager functionality
test(sync-manager): add tests for SyncManager with mock dependencies
test(progress-save-manager): add tests for ProgressSaveManager functionality
feat(character): ✨ add character enum and avatars
feat(assets): ✨ add guide image and intro audio files
chore: ✨ update .gitignore to include notes
feat(sound): ✨ add method to check if custom audio is playing

chore(webpack): update asset copying to include character assets
…er progress

feat(scenario-selection): ✨ add campaign context to scenario selection
refactor(router): ♻️ update routing to support campaign and scenario navigation
refactor(scenario-manager): ♻️ streamline scenario data handling and imports
fix(styles): 🐛 improve layout and responsiveness of campaign and scenario pages
Created AI_MODE_DESIGN.md to formally introduce SR-AI
Working towards a more user friendly cloudflare approach. Cleaned up hard coded values that will not work like custom domains and started on a more beginner friendly deployment guide.
Just realized the bigger picture. All things lead back to the SR SB so it is the "contributor" model. Need to figure out how to validate my changes in dev without the other app elements.
Addressed critical issue with supabase-client.ts
@thkruz

thkruz commented Dec 2, 2025

Copy link
Copy Markdown
Owner

@h4ck32n4u75 I'll get this merged after work today.

@thkruz

thkruz commented Dec 3, 2025

Copy link
Copy Markdown
Owner

I merged it into the dev branch.

@thkruz thkruz closed this Dec 3, 2025
@h4ck32n4u75

Copy link
Copy Markdown
Collaborator Author

Thanks may I have the SB invite again please the token expired but I will keep an eye out for the next one and am ready to push over the next four days to get some major progress. Hope all is well on your side.

@thkruz

thkruz commented Dec 3, 2025

Copy link
Copy Markdown
Owner

@h4ck32n4u75 sent. Looking forward to it. This week is super busy for me but hoping to get plenty done this weekend. Got a bit derailed redoing the interface, but I think it was worth it to launch with an interface that better resembles a real ops center vs a students lab (which will be a later campaign).

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.

2 participants