Skip to content

Security Update - #102

Merged
Abraham-Flutterwave merged 12 commits into
masterfrom
dev
Sep 17, 2026
Merged

Abraham-Flutterwave merged 12 commits into
masterfrom
dev

Conversation

@Abraham-Flutterwave

Copy link
Copy Markdown
Contributor

No description provided.

bajoski34 and others added 12 commits September 14, 2026 17:33
The public callback (?wc-api=flw_wc_payment_gateway) gated on
!isset($_GET['_wpnonce']) && !wp_verify_nonce(...), so any _wpnonce value
skipped verification and an unauthenticated GET could cancel any order by
sequential id.

- Authenticate the callback against the order key and require the order
  to use the Flutterwave gateway.
- Bind tx_ref to references issued for that order; orders with no stored
  reference only accept WOOC_<order id>_<suffix>.
- Confirm cancellations with Flutterwave before changing an order, and
  ignore callbacks for orders no longer awaiting payment.
- Let the webhook reopen a cancelled order when a verified successful
  charge arrives, instead of rejecting it as already processed.
- Compare verif-hash with hash_equals(), reject webhooks when no secret
  hash is configured, and drop replayed webhooks.
- Encrypt the stored card token at rest and keep webhook PII out of logs
  unless logging is enabled.
- Scope checkout nonces to the order; fix callback URLs on plain
  permalinks; write order meta through the CRUD API for HPOS.
- Bump version to 3.3.1 and add the release notes.
- Remove the unreferenced express-checkout scaffolding in
  client/blocks/payment-request/ and the unused flutterwave-react-v3,
  gridicons and @automattic/interpolate-components dependencies, which
  pulled a vulnerable axios into the dependency tree without reaching
  the build.
- Upgrade the JavaScript dev toolchain (@wordpress/scripts, webpack,
  Playwright and friends) and require Node 24 via .nvmrc and engines.
- Upgrade the PHP dev toolchain to WPCS 3, PHPCompatibilityWP 2.1 and
  phpunit-polyfills 2, run tests with PHPUnit, and rename the short
  ternary sniff exclusion for WPCS 3.
- Bump GitHub Actions (checkout, cache, setup-node, codecov,
  composer-install) to current majors.
@Abraham-Flutterwave
Abraham-Flutterwave merged commit 67d432d into master Sep 17, 2026
6 of 8 checks passed
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.

2 participants