feat(enrichment): flag insecure HTTP security-header settings in iac-misconfig - #3538
Conversation
…misconfig Add three zero-FP rules for COOP unsafe-none, disabled X-XSS-Protection, and X-Frame-Options ALLOWALL on the existing iac-misconfig analyzer. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
127e25c to
4a3be05
Compare
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-05 16:19:33 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 6 non-blocking
Why this is blocked
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (No linked issue detected; Maintainer requires a linked issue; AI reviewers agree on a likely critical defect: This PR has no linked issue and self-declares the batch 'small enough' to skip one — but per the repo's contribution policy, that exception is for maintainers to grant, not contributors to assert; open or link an eligible issue before merge.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Add two zero-FP HTTP isolation header rules on the existing iac-misconfig analyzer, following #3387. Drops the X-XSS-Protection and X-Frame-Options ALLOWALL rules from the closed #3538 attempt per review feedback. Co-authored-by: luciferlive112116 <291889058+luciferlive112116@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
Adds three zero-FP HTTP security-header rules to the existing
iac-misconfiganalyzer (same pattern as #3387):coop-unsafe-noneCross-Origin-Opener-Policyset tounsafe-nonex-xss-protection-offX-XSS-Protectionexplicitly disabled (0)frame-options-allowallX-Frame-Optionsset toALLOWALLEach rule requires its own header token on the same line as the weakening value, so unrelated lines (e.g.
Cache-Control: max-age=0, bareunsafe-none = false) are not flagged.No linked issue — small, self-contained enrichment rule batch on an existing analyzer with table + near-miss tests.
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlint— not applicable (review-enrichment only)npm run typecheck— not applicable (review-enrichment only)npm run test:coverage— not applicable (review-enrichment only)npm run test:workers— not applicablenpm run build:mcp— not applicablenpm run test:mcp-pack— not applicablenpm run ui:openapi:check— not applicablenpm run ui:lint— not applicablenpm run ui:typecheck— not applicablenpm run ui:build— not applicablenpm audit --audit-level=moderate— not applicableIf any required check was skipped, explain why:
npm --prefix review-enrichment run buildandnode --test review-enrichment/test/iac-misconfig.test.ts(22/22 pass).analyzer-metadata.jsonunchanged (no registry descriptor changes).Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — no UI changes.
Notes
Cache-Control max-age=0, bareunsafe-noneconfig key).X-XSS-Protectionregex accepts both colon form (X-XSS-Protection: 0) and nginxadd_headerform (add_header X-XSS-Protection "0").