Skip to content

fix: five false-alarm classes (edited installs, inert uploads PHP, tooling configs, per-site plugins, coded cron hooks) - #27

Merged
oxyc merged 1 commit into
mainfrom
fix/audit-false-alarms
Dec 1, 2026
Merged

oxyc merged 1 commit into
mainfrom
fix/audit-false-alarms

Conversation

@oxyc

@oxyc oxyc commented Dec 1, 2026

Copy link
Copy Markdown
Member

Five flag classes from the December maintenance audits that were noise.

  • release: a wordpress.org plugin file the checkout's install has edited (a formatter run over web/app reformatted a mu-plugin) is compared with composer.lock's wordpress.org zip, the way git-sourced plugins are already compared with their ref (AtLock). Production's file was byte-identical to the 1.2.1 zip.
  • upload-php: when there is PHP under uploads, the probe asks for wp-data-audit-probe.php there, which never exists, so nothing runs. A 403 means the server refuses PHP in uploads; the files then become one review flag listing them instead of one urgent flag each (121 in one case). Anything other than 403 keeps today's per-file urgent flags.
  • exposed: phpcs.xml, phpunit.xml and similar code-checker configs are counted, not flagged: settings, not people's data.
  • plugins: on a multisite, a plugin switched on or off on one of its sites is counted in a note; network activations still flag.
  • cron: a new scheduled hook that the checkout's install quotes in a PHP file ('hook' or "hook", e.g. a package's const HOOK) is counted, not flagged. Needs a checkout with an install; without one the hook flags as before.

Tests cover each rule; go test ./... and go vet pass.

🤖 Generated with Claude Code

- release: a wordpress.org plugin file the checkout's install has edited
  (a formatter run over web/app) is compared with composer.lock's zip,
  as git-sourced ones already are with their ref
- upload-php: ask the server for a .php under uploads that doesn't exist;
  a 403 means it refuses to run PHP there, so the files become one review
  flag instead of one urgent flag each
- exposed: code-checker configs (phpcs.xml, phpunit.xml, ...) are settings,
  not people's data: counted, not flagged
- plugins: on a multisite, a plugin switched on or off on one site is
  counted; a network activation still flags
- cron: a new hook the site's own code quotes (a plugin, package or theme)
  is counted, not flagged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oxyc
oxyc merged commit b7d4af9 into main Dec 1, 2026
2 checks passed
@oxyc
oxyc deleted the fix/audit-false-alarms branch December 1, 2026 17:32
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