Skip to content

v1.8.1 - DCR dedup + SSRF v6 + destructive gate on media_delete

Choose a tag to compare

@TaherSayed TaherSayed released this 26 May 12:47
· 4 commits to main since this release

Highlights

  • DCR client dedup — fixes the "4 duplicate Claude clients" admin UI clutter that appears when a remote app (Claude.ai) re-registers because it dropped its credentials. The OAuth register endpoint now sweeps any existing DCR client rows that share the incoming metadata and have no active tokens before inserting the new row. Daily cron also reaps DCR clients older than 7 days with zero active tokens.
  • SSRF guard now covers IPv6 — media_upload previously used gethostbynamel(), which is IPv4-only. An attacker host with an AAAA record pointing at fc00::… or ::1 could bypass the filter. Guard now resolves A+AAAA via dns_get_record(), validates literal-IP hosts directly, and explicitly rejects IPv6 ULA (fc00::/7), link-local (fe80::/10), IPv4-mapped IPv6, and cloud metadata endpoints (169.254.169.254, fd00:ec2::254).
  • media_delete now respects "Allow destructive operations" — it was an unconditional hard delete before. Matches the gate already enforced by posts_delete and settings_update.
  • UX: Renamed the OAuth Clients page buttons. "Revoke tokens" → Sign out (keep registration, drop tokens). "Delete client" → Disconnect (revoke + remove). Tooltips and confirm prompts spell out the difference.
  • Internal: Fixed UTF-8 mojibake of em-dashes in 24 tool source files introduced by 1.8.0. No runtime impact.

Upgrade notes

  • Update the plugin, then visit wp-admin → Commander → OAuth Clients. The next time Claude.ai (or any DCR client) reconnects, the orphan rows for its app name will be cleaned up automatically before the new row is inserted. You can also manually click Disconnect on the duplicates right now to clear them.
  • The daily cron sweep runs at the next scheduled cleanup tick — no action needed.