Mythos reports that ExportDownloadView loads an export by id without checking the caller's org. Export ids are sequential. It rates the finding high severity, cross-tenant data exposure.
The handler really has no org check. In the running app, a user from another org still gets 403 Forbidden: requireMembership() runs before the handler, and the report doesn't mention it.
Customers send us findings from Claude Mythos, Codex Security, Daybreak and XBOW. The code analysis is often right. Whether an attacker can use the bug depends on code the report didn't weigh: middleware, feature flags, role checks, the data layer, where the input comes from, and infrastructure that lives in another repository.
Four verdicts, each backed by evidence
Every finding should end in one of four verdicts.
- Reproduced. An attacker gets the claimed impact. You have the request and the response.
- Hardening. The bug is real, and a named precondition stops the attack: the middleware that answered 403, the flag that was off, the role the attacker could not get.
- False positive. The code does not do what the report says.
- Inconclusive. The attack could not run, and the reason is attached: the app did not deploy, or the finding depends on cloud infrastructure the test environment can't reproduce, like instance metadata or IAM roles. It stays open until someone answers it.
Many triage processes only have two outcomes: exploitable or false positive. A real bug that can't be exploited fits neither, so it gets closed as a false positive or escalated as a P1. Hardening closes it with the reason: the guard that stops the attack.
Keep that reason after the ticket closes. A second bug that gets around it, like a legacy /v1 route that mounts the same handler without requireMembership(), turns the missing org check into a cross-tenant read. Attackers and pentesters working with AI hunt for exactly these chains, and finding the second bug costs them less than it used to. When a new finding lands, you need to know which closed bugs it could unlock.
That's why Konvu keeps a security ledger: every finding you closed, and the reason behind it.
Six things that stop a real bug
Once you've confirmed the code still exists on main and hasn't been fixed since the scan, look at what runs between the attacker and the flagged line.
1. Something answers before the handler
The report covers the handler. The guard can live in another file, or 40 lines up in the same one.
// routes/projects.js, top of the file: runs for every route with :projectIdasync function requireMembership(req, res, next, projectId) {if (!(await isMember(req.user.id, Number(projectId)))) {return res.status(403).json({ error: 'not a member' });}next();}router.param('projectId', requireMembership);// 40 lines down: the handler the report citesrouter.get('/:projectId/members', async (req, res) => {const members = await db.member.findMany({where: { projectId: Number(req.params.projectId) },});res.json(members);});
To check, start where the app mounts the router and list every middleware, router param and decorator that applies to the route's path.
The opposite case catches people during triage. You see a global before_action, close the finding, and miss the one controller that skips it:
class ApplicationController < ActionController::Basebefore_action :require_membershipendclass ExportsController < ApplicationControllerskip_before_action :require_membership, only: :downloadend
In DRF, permission_classes = [] on a single view does the same thing to your DEFAULT_PERMISSION_CLASSES.
2. The feature is off
@bp.get("/v2/exports/<int:export_id>/download")def download_export(export_id):if not flags.enabled("exports_v2", org=g.org):abort(404)export = Export.query.get_or_404(export_id) # no org checkreturn send_file(export.path)
Check the default in the repository first, then the targeting in LaunchDarkly or whatever serves your flags.
The flag is evaluated for the attacker's org, not the victim's. If exports_v2 is on for a single beta customer, any user in that org can download every other org's exports.
A Hardening verdict that depends on a flag stops being true when the flag rolls out. Record the flag with the verdict, and revisit the finding when the flag changes.
3. The role looks out of reach
class IsOrgAdmin(BasePermission):def has_permission(self, request, view):return request.user.role == "admin"class ProjectSettingsView(APIView):permission_classes = [IsAuthenticated, IsOrgAdmin]def put(self, request, pk):project = Project.objects.get(pk=pk) # no org filter...
IsOrgAdmin checks the caller's role in their own org. In a self-serve SaaS, everyone is admin of the org they just created. The attacker signs up, becomes admin, and edits any org's project settings.
DRF only runs has_object_permission when the view calls check_object_permissions(). GenericAPIView.get_object() does that for you. A plain APIView that loads the object with Project.objects.get() never does, so every object-level check you wrote is skipped.
For any role check, look for the resource's org in the condition. If it isn't there, "admin only" doesn't stop a cross-tenant request.
4. The data layer scopes the query
class Project < ApplicationRecordacts_as_tenant :organizationendclass ProjectsController < ApplicationControllerdef membersproject = Project.find(params[:id]) # the report: "no org check"render json: project.membersendend
With acts_as_tenant and a current tenant set per request, Project.find only sees the caller's org. A cross-org id raises RecordNotFound and returns 404. The controller has no org check, as the report says, but the model scopes every query.
Then look for the escape hatches: ActsAsTenant.without_tenant, unscoped, raw SQL, and any code that runs outside a request. Check background jobs first. A Sidekiq job that runs without a current tenant sees every org's rows unless require_tenant is on.
With Postgres row-level security, the table owner skips the policies unless the table has FORCE ROW LEVEL SECURITY. Superusers and roles with BYPASSRLS skip them regardless. If your app connects as the role that ran the migrations, your policies may not apply to it.
SELECT relrowsecurity, relforcerowsecurity, pg_get_userbyid(relowner) AS ownerFROM pg_class WHERE relname = 'projects';SELECT rolsuper, rolbypassrls FROM pg_roles WHERE rolname = current_user;
5. The attacker does not control the input
const rows = await db.query(`SELECT * FROM invoices WHERE org = '${req.session.orgSlug}' AND number LIKE $1`,[q + '%'],);
Codex Security flags SQL injection, and the query is built with string interpolation. Whether it's exploitable depends on who writes orgSlug.
If the slug is set at signup from a field validated as ^[a-z0-9-]{3,40}$, the attacker chooses it but cannot put a quote in it. If an org rename endpoint skips that validation, the finding is exploitable. Look at every place the value is written, admin tools included.
6. The guard lives in another repository
Mythos flags POST /internal/reindex in search-api: no authentication. The app code agrees. Who can reach the route is decided somewhere else, often in a separate infrastructure repository.
# platform repository: k8s/search-api.yamlapiVersion: v1kind: Servicemetadata:name: search-apispec:type: ClusterIP # no load balancer of its ownselector:app: search-apiports:- port: 8080---apiVersion: networking.k8s.io/v1kind: NetworkPolicymetadata:name: search-api-ingressspec:podSelector:matchLabels:app: search-apiingress:- from:- podSelector:matchLabels:app: indexer
The service has no load balancer, no Ingress or Gateway route points at it, and the network policy only admits the indexer. An attacker on the internet can't reach the route. Anyone who compromises the indexer, or can run a pod labeled app: indexer in that namespace, can. The verdict is Hardening, with the attacker position written down: internal network.
Check that your cluster enforces the policy. Without a network plugin that supports NetworkPolicy, Kubernetes accepts the object and ignores it.
Security engineers tell us that asking a coding agent where one service's network rules live can take a long, expensive session, because each team wires ingress its own way.
Konvu keeps a security graph for this. Each repository is a node. The edges record how they connect: which service calls which, which ones face the internet, and which endpoints are only reachable through another service that requires authentication. Konvu builds it from your repositories and infrastructure code and reuses it on every finding. When it can't read the infrastructure repository, the verdict says so and names what it assumed.
Replay the attack to settle it
Reading code can still get it wrong. The router.param guard might sit on a different router than the route, the flag might be on for three tenants, or a background job might call without_tenant. Sending the request to a running copy of the app settles it.
Build the app at the commit you care about, then seed what the attack needs. For a cross-tenant finding that means two orgs, a user in each, and the record the second user must never see.
INSERT INTO orgs (id, name) VALUES (1, 'org-a'), (2, 'org-b');INSERT INTO users (id, email, org_id) VALUES (10, 'alice@org-a.test', 1), (20, 'bob@org-b.test', 2);INSERT INTO projects (id, org_id, name) VALUES (77, 1, 'q4-roadmap');INSERT INTO project_members (project_id, user_id) VALUES (77, 10);
Send three requests:
# control: Alice is a member of org A, so this must workcurl -s -i -H "Authorization: Bearer $ALICE" http://app:8000/v2/projects/77/members# attack: Bob from org B asks for the same projectcurl -s -i -H "Authorization: Bearer $BOB" http://app:8000/v2/projects/77/members# baseline: Bob asks for a project that does not existcurl -s -i -H "Authorization: Bearer $BOB" http://app:8000/v2/projects/999/members
Without the control request, a 403 could just mean the seed is broken.
| Attack response | Verdict | Next step |
|---|---|---|
| 200 with org A's members | Reproduced | Keep the request and response. They are your proof and your regression test. |
| 403, control returned 200 | Hardening | Find the code that returned the 403 and name it in the verdict. |
| 404, same body as the baseline | Hardening | Tenant scoping hides the record. Confirm which layer does it. |
| 200 with an empty list | Hardening, once you find the filter | The control proved the seed, so something scoped the query. Find which layer. |
| 500 | Inconclusive | Read the server log. |
For endpoints that write, re-read the record as Alice after the attack to confirm the change landed. For blind bugs like SSRF, run a listener inside the test network and look for the callback.
Run the attacker from a separate host that can only reach the app, and never point any of this at production. A model wrote the proof of concept in the report. Read it before you run it.
Turn the proof into the test
The attack request makes a good regression test:
from rest_framework.test import APIClientdef test_project_members_are_scoped_to_org(org_a_project, user_b):client = APIClient()client.force_authenticate(user=user_b)resp = client.get(f"/v2/projects/{org_a_project.id}/members")assert resp.status_code in (403, 404)
Once the fix is on a branch, replay the same attack against it before you merge.
The checklist, for you or your agent
Work through it by hand, or paste it into Claude Code or Codex with the finding and ask for the file and line behind each answer. An agent can cover the first two groups from your code. The last group needs a running copy of your app, which is the part Konvu runs for you.
Before you deploy anything
- Confirm the file, function and route the report names exist on main.
- Check whether main changed that code since the commit the scan ran on.
- Group findings that share the same missing check into one fix.
Between the attacker and the vulnerable line
- List the middleware, router params and decorators that run before the handler, and any controller that skips them.
- Find the feature flags on the path, and check their state for the attacker's org.
- Check that every role check references the resource's org. A check on the caller's role alone doesn't count.
- Check for tenant scoping in the ORM or in row-level security, and for anything that bypasses it.
- Find who writes each value the report calls attacker-controlled.
- Find the gateway, ingress and network policy for the service, including the ones defined in another repository.
On a running copy of the app
- Seed two orgs, then send a control request, the attack, and a baseline on an id that doesn't exist.
- Record the verdict with the request and response that decided it, and the guard behind any Hardening verdict.
- Replay the attack against the fix before you merge.
What Konvu runs for you
Konvu Agents build the app from the repository, configure it to the finding's preconditions, and seed what the attack needs. Cloud services run as open-source stand-ins, like Postgres for RDS. An attacker agent on a separate machine, which can only reach the sandbox, replays the proof of concept. It gets a browser when the attack needs one, and a victim agent when someone has to click a link.
The verdict is one of the four above, with the requests and responses that decided it. Hardening verdicts name the precondition that stopped the attack. When a precondition lives outside the repository, like a LaunchDarkly flag or roles stored in a database, Konvu uses the default configuration and says which one it assumed.
For every exploitable finding, Konvu writes a remediation plan from what the sandbox proved: the root cause, the change that closes the exploit, the test to add, and a prompt ready for Claude Code or Codex. Once the fix is on a branch, Konvu runs the same exploit against it to confirm it no longer works.
Deploying the app is the slow, expensive step. What the agents learn while deploying is saved and reused, so later runs on the same app go faster. The pipeline itself is described in From vulnerability finding to exploit proof.
Try it on findings you already know the answer to
Pick ten Mythos findings your team already triaged by hand. Include a few you know are exploitable and a few you closed as noise. Send them to Konvu:
konvu finding vulnerability-report submit \--repo github:acme/web \--source mythos \--file findings.sarif
Markdown, JSON, SARIF and PDF exports all work, and a multi-finding export splits into one report per finding. You can also upload the file in the dashboard, or ask Claude Code or Codex to send it for you.
Then compare Konvu's verdicts with yours. Start at app.konvu.com/start with your company domain.