PolicyEngine / PolicyEngine/microcosm

Denied-pool reads: single-snapshot or bound-file reads and a non-denied ABA regression

Open
#860 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
4
Avg merge
1d 3h
Merged PRs (30d)
94

Description

PR #857 checks an H5's byte digest and content identity, reads it, then re-hashes; the identity of the loaded frame is checked in memory. Sol's final round on #857 noted the remaining ABA case: allowed file A present for both hashes, a non-denied file B held open during parsing, A restored afterward — the loader returns B labelled with A's authenticated manifest and digest. Post-read frame verification catches the case where B is denied, not the general misbinding. Follow-up: bind parsing to one immutable snapshot or a bound file object in the authenticated and generic loaders, add a non-denied ABA regression, and bind release and cache identities to the loaded snapshot rather than the pathname. Refs #856, #857.

🤖 Generated with Claude Code

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the authenticated and generic loaders discussed in PRs #856 and #857, focusing on how parsing, release, and cache identities are tied to a pathname. Add the described non-denied ABA regression and verify that reads, release, and cache operations remain bound to one loaded snapshot or file object.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.