Skip to content

macOS engine: a CFNull AXSubrole classifies as none, so a text field is not presumed secure (#405 fails open); a CFNull AXRole records as known #501

Closed

Description

@SSFSKIM

What

valueClassification (native/engine/Sources/Engine/Fetch.swift:230) reads a CFNull AXSubrole as .none, so a text field with a null subrole is not presumed secure. #405's presumption fails open where it should fail closed, which means read-back and logging treat a possibly-secure field as an ordinary one. A null AXRole has the same root: Walk.swift:933 decodes it as "AXUnknown" with roleRead true, recording the node as known and inert instead of roleUnknown.

Found while mapping the CFNull label-slot bug (screenshot decoder, sibling ticket); outside that ticket's scope. Frequency: no evidence (the probe kits read with as? String).

Done when

A null AXSubrole on a text-entry role is classified as unknown and handled as #405 handles an unreadable subrole (presumed secure). A null AXRole records roleUnknown. Tests inject CFNull at decode and fail on main.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    priority:P1
    and removed
    priority:P2
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 23, 2026
  3. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    Ruling 1131: P1; gates the flip (pre-flight gates table f281a7f). The rule follows 1083: a null AXSubrole is unread, and an unread subrole on a text field presumes secure (fail closed). A null AXRole records as unknown. Lane after #500.

  4. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #518: null subrole unread, null role unknown, withheld value unread in stale-point record

  7. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-high a9b38778: cdb36ad..7574c05 incorrect (P2 withheld static-text value recorded known-absent -> overlayLabelsAgree press; fixed ab7fc27). Re-review 7574c05..ab7fc27: correct, no findings.

  8. removed
    status:in-review
    on Nov 23, 2026
  9. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #518 (cua 0.29.10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions