Access Matrix Gap Finder¶
Run the Access Matrix Gap Finder MicroSim Fullscreen
About This MicroSim¶
Each cell in the matrix shows two things: whether the browser shows or hides the action for that role, and whether the server allows or refuses it. The role rules above the matrix say what each role should be able to do.
A cell is a gap when three things are all true: the browser hides the action, the server allows it, and the rule says refuse. A hidden button is a sign on the door. Anyone who sends the request directly still gets through.
One cell is a trap. The admin's delete button shows, but the server refuses. That is a bug to fix, because the admin can't do something they should, but nothing leaks. Row 2, Viewer, is the running example's gap. All other values are illustrative.
How to Use¶
- Read the role rules above the matrix.
- Click any cell to flag it as a gap. Click it again to unflag it. The line under the matrix shows the rule for that cell.
- Press Check. Right flags turn green, wrong flags turn red with their reason, and you see how many gaps are still unflagged.
- Change your flags and press Check a second time. After that, any gap you missed is shown with a dashed red border.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/access-matrix-gap-finder/main.html"
height="804px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Learning Objective¶
The learner will differentiate, in a matrix of actions against roles, the cells where only the browser blocks an action (a client-only check gap) from cells that are safe or only inconvenient.
Grade Level¶
Adult professional (Good Enough Engineering)
Duration¶
10-15 minutes
Prerequisites¶
Role, role-based access control, admin account, protected route, server-side check and client-only check gap, from the chapter sections before the matrix.
Activities¶
- Exploration (3 min): Read the role rules and click a few cells to see each cell's rule.
- Guided Practice (7 min): Flag the cells you think are gaps and use both Checks. Notice which column the gaps fall in.
- Assessment (5 min): Explain in one sentence why the admin's delete cell is not a gap.
Assessment¶
- Flags all 3 gaps with 0 wrong flags within two attempts.
- States the rule: browser hidden, server allows, and the role rule says refuse.
- Explains why a shown button the server refuses is a bug but not a leak.
References¶
- OWASP Top 10 (2025): A01 Broken Access Control - why missing server-side checks are the most common web app risk.
- OWASP Authorization Cheat Sheet - enforce every rule on the server, deny by default.