Skip to content

Working one program deeply

7 min readRecon Atlas

Scanners cannot find business logic bugs, but you can once you know an app well. After a few weeks on one app you know its objects, roles, workflows and vocabulary better than most of its testers. Write down how each workflow is supposed to behave, break each rule on purpose, track coverage in a matrix, test new features first, and leave with a knowledge file so you can return later.


Breadth finds the bugs scanners find, and so does everyone else. Depth finds bugs that need understanding. An invite can be accepted twice. A refund can exceed the payment. A viewer role can call an editor-only API because the UI hid the button but the server did not check.

Weeks on one app What you know What it lets you find
Week 1 Main features, two roles, the API’s shape Classic access control on obvious objects
Weeks 2 to 3 All roles, object types, how IDs and states work, the internal vocabulary Cross-role and cross-tenant flaws, state machine bugs
Month 2 and later Release rhythm, which teams ship carelessly, where old code lingers New-feature bugs on release day, regressions, logic chains

Depth also compounds the economics: each bug teaches you where the next one is, and your private wordlists and notes, as in the delta recon feedback loop, get better every week.

Business logic bugs are cases where the application does what the code says, but not what the business intended. To find them, you first need to write down what the business intended.

  1. Map the app as a user. List roles, object types and workflows. Use the app as each role for a while before testing anything.

    # notes.md: app map (example.com shared-workspace app)
    Roles: owner, admin, member, viewer, guest (invited by link), logged-out
    Objects: workspace, project, document, comment, invite, invoice, API token
    Workflows: sign up, create workspace, invite member, change role, share document by link,
    export project, upgrade plan, apply coupon, cancel plan, delete workspace
  2. Write the expected behaviour of each workflow in plain sentences. One sentence per rule. These are your test cases.

    # notes.md: rules for "invite member"
    R1. Only owner and admin can invite.
    R2. An invite is for one email address and can be accepted once.
    R3. The role in the invite is chosen by the inviter and cannot exceed the inviter's role.
    R4. A revoked invite cannot be accepted.
    R5. Accepting an invite adds the user to that workspace only.
  3. Break each rule. For every rule, ask how it could fail, using these five families.

    Family Question Example against the rules above
    Object ownership Can I act on an object that is not mine? Accept an invite addressed to a different email (R2)
    Order of operations What if I skip, repeat or reorder steps? Accept the invite after it was revoked (R4); accept it twice (R2)
    Quantity and price What if numbers are negative, zero, huge or fractional? Seats set to 0 or negative on an upgrade; coupon applied twice
    State machine steps Can I jump to a later state directly? Call the “accepted” endpoint without the “pending” step
    Race conditions What if two requests arrive at the same moment? Accept one invite from two sessions at once to join twice or at two roles

    Race testing is Heavy active in a short burst and can create real side effects. Use the safe single-packet approach from HTTP protocol testing, only on your own objects, and clean up.

  4. Track coverage in a matrix. Every workflow, every role pair. A role pair is “acting role” against “owning role”, because most logic bugs are one role touching another role’s object.

    # notes.md: coverage matrix for "invite member" (acting role -> object owned by)
    # owner admin member viewer guest other-workspace
    owner ok ok ok ok ok BLOCKED-ok
    admin R3-bug? ok ok ok ok BLOCKED-ok
    member FAIL-R1 untested untested untested untested untested
    viewer untested untested untested untested untested untested
    guest untested untested untested untested untested untested
    logged-out n/a n/a n/a n/a n/a untested
    # legend: ok = rule held; FAIL-Rn = rule n broken (lead); BLOCKED-ok = correctly refused

    The matrix shows two things at a glance: where you found leads, and where you have not looked. The “untested” cells are your next session.

Write the matrix in plain text in notes.md, or in a small spreadsheet if you prefer. What matters is that “I tested invites” becomes “I tested invites as member against admin-owned objects and the rule held”.

Fresh code has had the least review and the fewest testers. When a feature ships, it goes to the top of your queue.

Source What it tells you Effort
Product emails to your test accounts New features announced to users, often with a link Read them; that is why your test accounts have real inboxes
In-app “what’s new” panels Feature names and where they are Check each session
Changelogs, release notes, API spec diffs Precise endpoints and parameters Weekly; see Part 4
JavaScript bundle diffs Routes and feature flags before the UI shows them Re-run phase 9 and diff js/endpoints.txt
Mobile app updates Endpoints the web app does not use yet Diff the API calls of the new version, as in mobile testing
Terminal window
# New API routes in today's JS extraction compared with last week's (recon phase 9 output)
comm -13 <(sort -u ~/recon/example.com/runs/2026-11-07/js/endpoints.txt) <(sort -u ~/recon/example.com/js/endpoints.txt)

When you find a new feature, add it to the app map, write its rules (step 2), and fill its row in the matrix. Feature flags you see in JS but not in the UI are interesting. Test them only through the normal, in-scope API, as an ordinary user. Do not try to enable unreleased features for real customers.

The two-account method is the core technique of access control testing. The bookkeeping is what keeps it from turning into confusion after a month.

# ~/research/example/accounts.md: never put passwords here; use a password manager
| Label | Email | Role | Workspace | Plan | Created | Notes |
| A-owner | hunter-a@example.com | owner | ws-A (1101) | trial | 2026-10-01 | main account, owns ws-A |
| B-member | hunter-b@example.com | member | ws-A (1101) | - | 2026-10-01 | invited by A-owner |
| C-owner | hunter-c@example.com | owner | ws-C (1188) | free | 2026-10-03 | separate tenant for x-tenant |
| D-viewer | hunter-d@example.com | viewer | ws-C (1188) | - | 2026-10-09 | for viewer-role tests |

Rules that prevent mistakes:

  • One browser profile per account, named with its label and a distinct colour, so you always know which session you are in. Proxy tools such as Burp and Caido let you label or colour requests; use it.
  • Use the program’s test account rules. Some programs require a specific email format, such as an alias with your handle, so they can find your accounts. Follow it exactly.
  • Record object IDs you create, per account, so your reports can name “my own record” precisely.
  • Never use a real customer’s account, a friend’s account, or an account you did not create.
  • Clean up when you leave: cancel trials, delete test workspaces, if the program does not say otherwise.
# SAMPLE, invented
# Record 1: revoked invite still accepted. Rule R4.
Target: https://app.example.com/api/v2/workspaces/ws-101/invites
Step: owner A revokes invite 84102. Account B then accepts it.
Response: HTTP 200, body {"joined":true,"role":"admin"}
Assertion: the accept call succeeded after revocation.
# Record 2: plan upgrade refused. Rule R1 for this cell only.
Cell: member acting on an admin-owned billing plan
Request: POST /api/v2/workspaces/ws-101/plan-upgrade
Response: HTTP 403, error insufficient_role
Matrix: BLOCKED-ok for this role pair. Seat count and coupon fields are still untested.
# Record 3: automations feature shipped this week
Target: https://app.example.com/api/v2/automations/rules
Test: an account in workspace A saves a webhook URL on workspace B, both yours.
Response: HTTP 200, rule created and marked active.
Assertion: the new feature stored another workspace's destination. Watch it fire against your own second workspace.

Account B joined as admin after the owner revoked the invite. Rule R4 failed.

Save the create, revoke, and accept exchanges with times. This sample shows a bad state change on an invite B already had. It leaves every other workspace untested.

The member cannot change the plan. Mark BLOCKED-ok for that cell. The same workflow still has quantity fields. Test seat count and a repeated coupon before you leave it.

Put the new feature on the app map the day it ships, then write its rules. Here the rule that failed is “a webhook stays inside the workspace that created it.” Confirm the delivery against your own second workspace, on your own data, and stop.

The settings HTML hides a delete control:

<button id="delete-workspace-btn" style="display: none;" onclick="deleteWorkspace()">Delete Workspace</button>

The tester shows the button, sends DELETE /api/v2/workspaces/ws-101 as a viewer, and gets HTTP 200 with a body of {}.

The owner then reads the same workspace. Status is still active.

The old route answers that call with an empty object and leaves the workspace in place. The button was hidden because the feature was removed. Read the object back with the owner’s session before you file.

Depth pays until it does not. Signs it is time to move on, at least for a while:

Sign What it suggests
Several weeks with nothing valid, and the matrix is mostly filled You have found what your current skills can find here
Releases have slowed to almost nothing Little fresh code
Triage has become slow or unfair compared with your notes The program’s economics changed
Your atlas shows much better hours per finding elsewhere Your edge is on another kind of target
You dread opening it Burnout risk, see Part 7

Rotating away is not quitting. Programs change: a feature launch, a redesign, an acquisition or a scope addition can make a program fresh again.

Before you leave, spend thirty minutes writing a file you will thank yourself for.

# ~/research/example/summary.md, "Leaving" section (added 2026-11-14)
## State when I left
- Covered: invites, roles, sharing, billing (matrix in notes.md, 80% filled)
- Not covered: API tokens, webhooks, the export service
- Open leads: race on invite accept (inconclusive, retest with fresh accounts)
## How to restart fast
- Accounts: see accounts.md (A-owner, B-member, C-owner, D-viewer); trials expire, recreate
- Vocabulary: "spaces" are workspaces internally; "atlas" is the search service
- Watch: changelog page, API spec at /openapi.json, mobile release notes
## Come back when
- They launch the announced "automations" feature, or webhooks get a redesign

When you return, read this first, then diff the app against it: new features since the date at the top are your first queue.

Next, keep the practice going for a year with Long-game habits.

Connections8 backlinks · 8 outgoingFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Recon AtlasFor authorized testing only. Your scope is the map edge.