close
Skip to content

[2.x] fix(package-manager): restrict task list endpoint to admins only#4410

Merged
imorland merged 1 commit into2.xfrom
im/fix-task-resource-auth
Mar 7, 2026
Merged

[2.x] fix(package-manager): restrict task list endpoint to admins only#4410
imorland merged 1 commit into2.xfrom
im/fix-task-resource-auth

Conversation

@imorland
Copy link
Copy Markdown
Member

@imorland imorland commented Mar 7, 2026

Summary

  • The TaskResource index endpoint was missing ->authenticated()->admin() guards
  • This allowed unauthenticated users to GET /api/extension-manager-tasks and read task logs containing filesystem paths, package versions, composer error output, PHP version, and peak memory usage
  • Adds the missing auth guards and integration tests covering guest (401), normal user (403), and admin (200) access

Fixes #4386

Test plan

  • GET /api/extension-manager-tasks with no auth → 401
  • GET /api/extension-manager-tasks as normal user → 403
  • GET /api/extension-manager-tasks as admin → 200 with task data

🤖 Generated with Claude Code

The TaskResource index endpoint was missing ->authenticated()->admin()
guards, allowing unauthenticated users to access task logs containing
filesystem paths, package versions, and composer error output.

Fixes #4386

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imorland imorland requested a review from a team as a code owner March 7, 2026 15:43
@imorland imorland changed the title fix(package-manager): restrict task list endpoint to admins only [2.x] fix(package-manager): restrict task list endpoint to admins only Mar 7, 2026
@imorland imorland added this to the 2.0.0-beta.8 milestone Mar 7, 2026
@imorland imorland merged commit 257989e into 2.x Mar 7, 2026
34 checks passed
@imorland imorland deleted the im/fix-task-resource-auth branch March 7, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.x] Missing auth on extension-manager TaskResource allows unauthenticated access to task logs

1 participant