Skip to content

fix: narrow plugin-owned uploads, Gravity Forms logs for review, escaped embeds as plain - #29

Merged
oxyc merged 1 commit into
mainfrom
fix/audit-classes-narrow
Dec 1, 2026
Merged

oxyc merged 1 commit into
mainfrom
fix/audit-classes-narrow

Conversation

@oxyc

@oxyc oxyc commented Dec 1, 2026

Copy link
Copy Markdown
Member

Three flag classes from the December data-audit cards, fixed in the check rather than with per-site accepts. All three stay thorough.

Plugin-owned uploads: exact paths, not folders. An active plugin used to make its whole uploads folder go uncounted. Now only the files it serves on purpose do, by path and type:

  • Complianz: complianz/**.{css,js,json,pdf}
  • Product Feed Pro: woo-product-feed-pro/{xml,csv,…}/*
  • CTX Feed (new): woo-feed/<channel>/{xml,csv,…}/*
  • Rank Math (new): rank-math/rank_math_<md5>.xml
  • WP All Export: wpallexport/exports/<hash>/*.{csv,xml,…}

A name suggesting people's data never counts, and anything else in those folders is judged as usual. WP All Import's folder no longer counts at all. It holds whatever someone uploaded to import, and one site had a years-old customer export sitting there publicly. Expect some WP All Export exports to flag again where their file names say "export"; that's the point.

Gravity Forms logs: one review flag per folder, served or not. They read as "logging is on, or its old logs are left", with count, size and how many are served. GF's 40-hex token in each name keeps a served log from being urgent. A served log without that token is still urgent, and so is a listed folder.

HTML-escaped embeds are judged as if plain. The collector now reports how a hit was hidden. If it was found only after decoding HTML entities or URL encoding (how the classic editor stores an iframe), it's labelled (HTML-escaped) and judged like the plain embed, so an accept for a known host covers it. Base64 stays (encoded) and urgent.

go test ./..., go vet and gofmt pass. New: TestExposedPluginPathsAndGFLogs, base64 and escaped cases in the collector scan test, and an escaped case in TestContent. README updated.

🤖 Generated with Claude Code

…ped embeds as plain

- Plugin-owned uploads are exact paths and types, never a name suggesting people's data; WP All Import's folder no longer counts (it holds whatever was uploaded to import). CTX Feed's feeds and Rank Math's sitemap cache join.
- Gravity Forms debug logs: one review flag per folder, served or not, saying logging is on; a log without GF's random token stays urgent when served.
- Content found only after decoding HTML entities is labelled HTML-escaped and judged as if plain; base64 stays urgent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc
oxyc force-pushed the fix/audit-classes-narrow branch from e02c69d to 541c6b6 Compare December 1, 2026 21:55
@oxyc
oxyc merged commit 23de231 into main Dec 1, 2026
2 checks passed
@oxyc
oxyc deleted the fix/audit-classes-narrow branch December 1, 2026 21:57
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.

1 participant