Skip to content

1.8.1: Bearer tokens on FPM hosts, /mcp hardening, comment moderation authz - #271

Merged
WebTigers merged 1 commit into
mainfrom
fix/mcp-bearer-and-comment-authz
Sep 15, 2026
Merged

WebTigers merged 1 commit into
mainfrom
fix/mcp-bearer-and-comment-authz

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

Findings from the AI-driven web-installer test on host3 (TIGER-138).

  • Security: comment moderation was open to guests once comments were enabled — _isAdmin() on a guest-granted service means "allowed on this service". New Tiger_Service_Service::_isAtLeastAdmin(); moderate / datatable / delete-another's use it, and answer before the feature flag. Blast radius measured: every other bare _isAdmin() is on an admin/superadmin-granted service.
  • Bearer tokens never reached /mcp or /api under PHP-FPM (Apache drops the header). Skeleton .htaccess 1.0.21 passes it through; Tiger reads HTTP_AUTHORIZATION / REDIRECT_HTTP_AUTHORIZATION / apache_request_headers() via one reader.
  • /mcp: invalid Bearer → 401; cookie session only same-origin (403 otherwise); non-JSON → 415.

Tests: comment suite fixed (it had been moderating as user) + a refusal test; MCP 401 / redirect-env / 403 / 415. Full suite 2363 green locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L8p9pLJ3DFstG3xZuh2QgZ

…e sessions; comment moderation gated on a real admin check

TIGER-138. Comment_Service_Comment is granted to guests, and _isAdmin() there meant
'allowed on this service' — moderate/datatable/delete-another's were open to anyone with
comments enabled. New _isAtLeastAdmin() on the base service; authz before the feature flag.
/mcp: reads Authorization from HTTP_/REDIRECT_HTTP_/apache_request_headers (Apache/FPM drops
it — the skeleton .htaccess 1.0.21 passes it through); an invalid Bearer is 401; a session is
honoured only same-origin; non-JSON is 415.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8p9pLJ3DFstG3xZuh2QgZ
@WebTigers
WebTigers merged commit c88e31d into main Sep 15, 2026
14 checks passed
@WebTigers
WebTigers deleted the fix/mcp-bearer-and-comment-authz branch September 15, 2026 17:01
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