Repository navigation
fix(windows): accept a private DACL when the user is SYSTEM - #14769
Conversation
The trustee check treated the user SID and SYSTEM as exclusive. When the process user is SYSTEM, both ACEs match the user and the SYSTEM flag stays unset. Compare the two SIDs independently.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The trustee fix appears safe to merge; no actionable issues were found. SummaryFixes both Windows private-access verifiers so SYSTEM can satisfy the current-user and SYSTEM checks when those identities match.
Reviews (1) · Last reviewed commit: "fix(windows): accept a private DACL when..." · Reviewed by Greptile |
Summary
No linked issue. This pull request is the report and the fix.
Closed pulls #10318 and #10319 only add diagnostic text to this check. They do not change the comparison.
Problem and expected behavior
verifyPrivateinnative/windows/src/filesystem.ccand_verify_windows_private_pathinbridge/cutter/rea_bridge.pyrequire the current user andNT AUTHORITY\SYSTEM. The creator writes both ACEs. When the process user SID is SYSTEM (S-1-5-18), those ACEs are the same SID. The oldelse ifcounts each one as the user and never sets the SYSTEM flag, so a DACL this code just created fails its own check.A distinct user SID still needs one user ACE and one SYSTEM ACE. An unrelated SID is still rejected. The ACE count stays two.
Change and scope
Each ACE is tested against the user SID and against SYSTEM independently. One ACE may set both flags. Creation of the DACL is unchanged.
Not included: accepting a different ACE count, printing SIDs, or the diagnostic sentences from #10318 and #10319.
Contribution scope: not applicable. This stays inside the existing private-object check. No new provider, execution, injection, mutation, or protection recovery.
Contract and boundary impact
verifyPrivateand the Cutter bridge path check, at trustee classification.docs/public/product-catalog.json), package, or installation impact: none.The change accepts a private DACL whose trustees are the current user and SYSTEM when those SIDs are the same. It does not read a target, launch a process, inject, mutate a target, contact a network, or recover protected code.
Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
bridge/cutter/test_private_acl.py. A SYSTEM user SID sets both flags. A distinct user and SYSTEM stay separate. An unrelated SID is rejected.else ifonupstream/mainat331808dcd. The creator inSecurity::SecurityaddsuserSid()and the local SYSTEM SID. The verifier usedelse if, so the second comparison never ran when the SIDs were equal.npm run build:windows-nativeneeds Linux and MinGW-w64. The native check was not executed. The Python classification is the same comparison and was executed.Boundary and lifecycle regressions: not applicable. This is trustee classification inside an existing check.
Validation performed
python bridge/cutter/test_private_acl.py— 3 passed.verify:windows-native— not run. This host has no MinGW-w64 or MSVC toolchain for that lane.Compatibility, safety, and release
NT AUTHORITY\SYSTEM. The Python classification of that SID was executed.rea-windows-x64.nodedoes not include the native change until that addon is rebuilt.Author readiness
Human owner: @Adolanium
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.