Skip to content

Prepare 1.2.1: prevent personalized Markdown cache disclosure - #59

Closed
jdevalk wants to merge 2 commits into
mainfrom
codex/release-1.2.1
Closed

jdevalk wants to merge 2 commits into
mainfrom
codex/release-1.2.1

Conversation

@jdevalk

@jdevalk jdevalk commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Superseded by #69, which prepares 1.3.0 from current main with the full changelog since 1.2.0. The security fix in this draft already landed through #60.


Markdown rendered for a logged-in visitor could be saved in the per-post transient and then served to anonymous visitors. Release 1.2.1 prevents shared cache reads and writes for logged-in visitors, password-protected posts, and known session cookies, with matching private/no-store response headers. A separate cache schema invalidates older entries even when an integration's version token still matches.

Markdown response handlers now run at template_redirect priority 15, allowing default-priority access checks and canonical redirects to run first. Explicit .md URLs retain their canonical-redirect exemption; format and Accept requests can normalize first. Access checks must run before priority 15.

Validation: 35 standalone tests pass on PHP 7.4 and 8.3, including mutation checks that fail when the protections are removed. All 67 isolated real WordPress 7.1.4 / PHP 8.3 HTTP checks passed, covering the actual Login/out block, authenticated and anonymous requests, missing/expired/legacy caches, HEAD responses, canonical redirects, access checks at priorities 10 and 14, and static front pages. PHP syntax and WordPress coding standards pass on changed lines.

The plugin version and stable tag are 1.2.1. Purge any page/CDN caches when deploying; old plugin transient entries regenerate automatically.

@github-actions

Copy link
Copy Markdown

WordPress Playground Preview

The changes in this pull request can previewed and tested using a WordPress Playground instance.

Open WordPress Playground Preview

@github-actions

Copy link
Copy Markdown

Plugin readme preview

Open preview · Commit 12e73cc

24 passed · 2 warnings · 2 notes

Warnings

  • “Tested up to” is 7.2; the latest WordPress major release is 7.1. Test with 7.1 and update the header.
  • The Screenshots section is missing or has no captions.
Notes (2)
  • No banner loaded. Add banner-772x250.png or banner-1544x500.png.
  • No icon loaded. A placeholder appears in the preview.
Passed checks (24)
  • 117 / 150 characters in the short description.
  • Plugin name header recognized.
  • License header recognized: GPLv2 or later.
  • 5 tags accepted within the five-tag limit.
  • Description is within the parser’s word limit.
  • Installation is within the parser’s word limit.
  • Faq is within the parser’s word limit.
  • Changelog is within the parser’s word limit.
  • Stable tag is declared: 1.2.1.
  • The PHP Version header is declared: 1.2.1.
  • Stable tag matches the PHP Version header: 1.2.1.
  • The readme “Requires at least” value is valid: 6.0.
  • The PHP “Requires at least” header is a numeric version: 6.0.
  • “Requires at least” matches between the readme and PHP header: 6.0.
  • The readme “Requires PHP” value is valid: 7.4.
  • The PHP “Requires PHP” header is a numeric version: 7.4.
  • “Requires PHP” matches between the readme and PHP header: 7.4.
  • “Tested up to” 7.2 meets the minimum WordPress version 6.0.
  • Installation content is present.
  • FAQ content is present.
  • Changelog content is present.
  • The first changelog release matches Stable tag: 1.2.1.
  • The first changelog release matches PHP Version: 1.2.1.
  • Plugin PHP header loaded.

Readme and PHP-header checks only; this does not test plugin runtime compatibility.

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