Case · DiggingBeagle record

Mage project Git actions could be granted after a failed role check

A repository role-authorization fallthrough let some Viewer or unassigned accounts perform write operations intended for Editor or Admin roles.

Published by DiggingBeagle:

Scope

TRA-756, Mage Git/version_control project API; PR #6207; low-privilege authenticated user.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The merged Mage PR #6207 and its regression tests support a fail-open role check affecting authenticated project Git operations. They do not identify a packaged fixed version or production misuse. The ordinary authorization boundary is separate from the OAuth issuance flaw and from shell command interpretation.

Assessed Oct 18, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Authenticate as Viewer or unassigned user.

  2. 02

    Request Git project mutation.

  3. 03

    Authorization helper fails but caller proceeds to write action.

Claims & evidence

CLM-CP13-MAGE-RBAC-FIXPR #6207 introduces explicit failure on denied checks and reports separate regression tests for Viewer, unassigned, Editor and Admin behavior.supported

Basis: reported finding

Link to claim
CLM-CP13-MAGE-RBAC-ROOTFailed role checks could fall through and allow authenticated non-Editor users to create or change version-control resources.supported

Basis: reported finding

Link to claim
CLM-ENRICH-MAGE-RBAC-MERGEDThe October 16 merged Mage PR #6207 rejects legacy-mode project mutations without Editor-level authority while retaining granular permission checks; no fixed published package version is established by that merge alone.supported

Basis: reported finding

Link to claim

Implications

Authentication success is not a substitute for action-specific permission. Input safety and shell escaping also do not establish that a user may edit a repository. The right regression test is a role-by-endpoint matrix spanning legacy and granular configurations, including denied requests that must cause zero state changes.

Controls and mitigations

  • Use a Mage build containing PR #6207 and verify denial for Viewer or unassigned identities across project creation, remote changes, file mutation and branch operations.
  • Test the application's mutation state after every denied authorization path, not merely the HTTP response or a front-end warning.

Unknowns and contradictions

  • Release inclusion and production exploitation not independently confirmed.
  • Fine-grained policy configurations may require additional route-specific tests.

Sources and citation

Material revision history

  1. Oct 18, 2026 · Published version · first publication · revision 171