Spaces:
Running
Running
Commit History
4 days ago
-
fix(sonar): wave 6 - operator tooling + infra, 477 findings (scripts/, infra/, tests/, cache/, public/, .agents/, .github/, Dockerfile)
Z UserSECURITY (real fixes at root): - S2083 BLOCKER: lh_static_server path traversal -> canonical resolve + root-prefix check + 403 - S5144 SSRF: prod_reverse_proxy -> fixed upstream + allowlist + origin-form - S5443 x22: probe artifacts moved from /tmp to project-local .cache dirs - S2245 x5: credential material -> node:crypto randomBytes - S8689: log redaction helper for token/secret material - S5145 x4: log injection sanitized; S8476: CSRF URL allowlist - S4036 x3: absolute executable paths instead of PATH lookup - S9383 BUG: cache-nuke promise handled; S3923 x3 + S1244 x2 + S5797 real bugs collapsed / math.isclose SMELLS: python S1192 literals hoisted (53), S3776 refactored (32) with differential fuzz equivalence on parsers, S1481/S1186/S1172/S1854/S8513... ; js/ts scripts S9382/S6582/S3358/S7780/S7785/S4624...; infra worker S3776 28->extracted; page objects; cache/ TS files; GitHub Actions snake_case; Dockerfile RUN arg order; shell [[ conditionals. Verified: node --check all edi…23a1787
21 days ago
-
fix(security): sanitize remaining raw log sinks in final-e2e-check poll block (S5145)
Z UserSonarCloud's new-code period flagged the 4th shifted-past S5145 instance (opened 2026-10-29, re-attributed when the sanitizer line was edited): poll.status, body.events.length and ev.createdAt reached console.log raw. All remote-derived values in the poll block now pass through cleanLog(), including numbers (Sonar's taint analysis treats the whole off-host response body as attacker-shaped).4e35045 -
perf+fix: kill 14 DB waterfalls, close production-audit gaps (uptime probe, fail-secure NODE_ENV, log hygiene)
Z UserInstalled the 5 requested skills (triage-sonarqube from netdata — the repo's actual name for the requested sonarqube-audit, react-performance + production-audit from ECC, frontend-design from anthropics, systematic- debugging from obra/superpowers) and ran their workflows against the repo. REACT-PERFORMANCE WORKFLOW — 14 verified sequential-await waterfalls parallelized (every one verified independent by reading the file first, error precedence and early-return gates preserved exactly): - journey-router.timeline: 4 reads -> Promise.all (4x -> 1 round-trip) - lib/progress.ts recalcEnrollmentProgress: 3 reads -> 1 (runs after EVERY lesson watch/quiz submit — hottest waterfall in the system) - lib/progress.ts getCourseProgressDetail: 2 reads -> 1 - search-router.global: 3 searches -> 1 (keystroke-driven GlobalSearch) - course-browse.list: count+rows -> 1; bySlug: category+lessons -> 1 (Courses load + CourseDetail first paint) - chatbot-router POST /: catalog promise hoisted alongside…88ffd69 -
fix(security): sanitize ev.url/ev.message log sinks in final-e2e-check (S5145)
Z UserThe first scan-after-fix flagged the two log lines my first S5145 patch shifted past: ev.url and ev.message were still logged raw. Both now go through the same control-char/newline cleaner as type/title.d9d7a37 -
fix: clear all SonarCloud BUGs/VULNERABILITIES/BLOCKERs + perf + a11y quality floor
Z UserInstalled 5 external skills (triage-sonarqube from netdata, react-performance + production-audit from ECC, frontend-design from anthropics, systematic- debugging from obra/superpowers) and ran their workflows against the repo. SonarCloud (project ahmdelbaz28-ux_elbaz-platform, public API) reported 987 open findings: 3 BUG, 10 VULNERABILITY, 2 BLOCKER. ALL 15 real defects are fixed here, root-caused first per systematic-debugging: BUGS - S2871 (CRITICAL) api/lib/sld/repair.ts:125 + lint.ts:125: [a,b].sort() without comparator on wire-key strings -> localeCompare comparator. Only 2 occurrences repo-wide (grep-verified). - S7493 (MAJOR) scripts/shot_sld_qa.py:22: synchronous open() inside async main() blocked the event loop -> asyncio.to_thread write. VULNERABILITIES - S5443 (CRITICAL) x4 (yt_playback_proof_prod, yt_playlist_admin_import_prod, push_unavailable_live_e2e, push_toggle_live_e2e): admin session state and persistent browser profiles (REAL credentials) lived in world…9c15d63
-
test(e2e): fresh-user YouTube notification check — reusable prod probe
Z User6207c91