Skip to content

Claude/fix all issues sy30 e#578

Merged
Nefrit0n merged 4 commits into
mainfrom
claude/fix-all-issues-SY30E
May 4, 2026
Merged

Claude/fix all issues sy30 e#578
Nefrit0n merged 4 commits into
mainfrom
claude/fix-all-issues-SY30E

Conversation

@Nefrit0n

@Nefrit0n Nefrit0n commented May 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

claude and others added 4 commits May 4, 2026 11:02
- storage: wrap user-controlled limit values with min() before slice
  allocation to satisfy CWE-789 (excessive memory allocation)
  Affected: workspace_repo, scans_repo, projects_repo,
            finding_events_repo, audit_log_repo (×3 sites)

- api/auth: replace per-request Secure cookie detection with config-level
  authCookieSecure variable; remove shouldUseSecureCookie() which could
  return false on localhost even when authCookieSecure=true, causing
  CWE-614 (missing Secure attribute). Local dev: set COOKIE_SECURE=false

- frontend/KindBadge: remove always-true !iconOnly guard inside the else
  branch (useless conditional, CodeQL warning)

- scripts/frontend-licenses-to-md.cjs: add backslash and backtick
  escaping to escapeMd() to fix incomplete string encoding (CWE-116)

https://claude.ai/code/session_01PSP8wFi4XPo9ZAx7qh6kAY
gosec G124 flags http.Cookie when Secure is a variable rather than
literal true. The Secure value is intentionally config-driven
(COOKIE_SECURE env var) so the flag is expected in dev environments.

https://claude.ai/code/session_01PSP8wFi4XPo9ZAx7qh6kAY
CodeQL go/uncontrolled-allocation-size traces taint from user input
through min() and if-clamp patterns — neither breaks the taint flow.
The only reliable fix is to remove user input from the capacity arg.

Capacity is purely a performance hint; Go reallocates automatically,
so using a constant (16/32) instead of limit has no semantic effect.

https://claude.ai/code/session_01PSP8wFi4XPo9ZAx7qh6kAY
@Nefrit0n Nefrit0n merged commit 97e7f12 into main May 4, 2026
12 checks passed
@Nefrit0n Nefrit0n deleted the claude/fix-all-issues-SY30E branch May 4, 2026 15:06
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