← 返回列表

Every pull request pentested before it ships

单站 ProjectDiscovery Blog 入库 2026-11-17T04:35:27

Neo reads the diff with the whole repository as context, runs the exploit in a preview build, and posts the proof as a review comment. Push the fix and the same exploit runs again.

acme/apithreat-modelv14

Internetuntrusted

Public edgecloudflare

Private VPCacme-prod

Dataencrypted at rest

Customer

Partner API client

checkout.acme.com

api.acme.com

auth-service

orders-service

invoice-service

sessions (redis)

orders (postgres)

invoices (s3)

billing-worker

ledger (postgres)

T-03Cross-tenant invoice read

On this diff

Files changed6

acme/apipriya-n wants to merge 3 commits into main from feat/invoice-export

Conversation4Commits3Checks4Files changed6

42 const orgId = req.query.org_id as string;

43 const rows = await db.invoices.findMany({ where: { orgId } });

44 res.json({ org_id: orgId, count: rows.length, invoices: rows });

neobotrequested changes 4 minutes ago

api/invoices/export.ts:42
HighCross-tenant data exposureVerified in preview build

pr-4821.preview.acme.devOpen

1GET /api/invoices/export?org_id=org_8821 HTTP/2

2cookie: session=eyJhbGci… // logged in as org_1042

3HTTP/2 200 OK

4{ "org_id": "org_8821", "count": 1284, "invoices": [ { "id": "inv_77f0…", "total": 4180.00, … } ] }

org_id is never checked against the session, so any signed-in user can export another tenant’s invoices.

Suggested change

42 const orgId = req.session.org.id;

43 if (req.query.org_id && req.query.org_id !== orgId) {

44 return res.status(403).json({ error: 'forbidden', reason: 'org mismatch' });

45 }

Commit suggestionAdd to batch

ReplyResolve conversation

TasksReview PR #4821

Running 6m 12s

Branchfeat/invoice-export

Commita41f9e2

Previewpr-4821.preview.acme.dev

Accountsorg_1042, org_8821

  1. Mapped the change
  2. Connected to the preview build pr-4821.preview.acme.dev, built from a41f9e2.
  3. Signed in as tenant A Logged in through the browser as org_1042 with the test account from the secret store.
  4. Exported tenant B’s invoicespr-4821.preview.acme.devOpen1GET /api/invoices/export?org_id=org_8821 HTTP/22HTTP/2 200 OK3{ "org_id": "org_8821", "count": 1284, … }
  5. Posting review comment…

acme/apipriya-n wants to merge 4 commits into main from feat/invoice-export

Conversation7Commits4Checks4Files changed6

PNScope invoice export to the session’s organization3f9c2ad

neobotresolved the conversation 2 minutes ago

Re-tested on 3f9c2ad
2HTTP/2 200 OK

2HTTP/2 403 Forbidden

3{ "error": "forbidden", "reason": "org mismatch" }

neo / security-review—0 exploitable findings, 1 fix verifiedDetails

preview / deploy—pr-4821.preview.acme.devDetails

ci / test—412 passedDetails

ci / build—Succeeded in 3m 04sDetails

Merge pull requestAll checks have passed

GET /api/invoices/export?org_id=org_8821

1,284 rowsas org_1042

One tenant reads another tenant’s records by swapping an identifier.

GET /api/users/1042/api-keys

3 keysas user 2210

Change an ID in the path and read another user’s resource.

POST /api/refunds/4471/approve

approvedreview step skipped

Call the final endpoint without the steps before it and get an approved outcome.

PATCH /api/orgs/1042/members/88

role: adminas member

The UI hides the control. The backend still accepts the request.

POST /api/cart/apply-coupon ×3

total 0.00same instant

Parallel requests slip past single-use and balance checks.

POST /api/checkout { unit_price: 1 }

paid 1.00list price 128

Modify price or quantity in the request and still complete checkout.

Trusted by security teams

We use tools on this site to collect and record your data (e.g., your searches), which we and our vendors may use to provide, improve, and personalize our offerings, make recommendations, and for analytics and marketing. Some of these tools identify visitors and link website activity to business contact and company information so we can better understand interest in our services and tailor our outreach. We may share your data with third parties, such as advertising vendors, social media companies, and research partners, which may be "targeted advertising," "selling," or "sharing" under applicable privacy laws. Continuing to browse our site means you accept these terms and our Privacy Policy. To opt out, click the Your Privacy Choices link in the footer.

原文链接:https://projectdiscovery.io/solutions/pr-security-review