Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/capivara-research/cve-2026-122158
Privilege EscalationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPapers & ResearchLabs & Practice
GitHubcapivara-research/cve-2026-122158

CVE-2026-122158

Analysis and loopback-restricted PoC for CVE-2026-122158, a cross-tenant privilege escalation in InvoiceShelf allowing an owner to assign arbitrary roles in another tenant.

查看仓库
14天前尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-122158 — InvoiceShelf cross-tenant privilege escalation

CVE-2026-122158 — InvoiceShelf cross-tenant privilege escalation

CVE VulDB VulDB Submit

A company owner can place an attacker-controlled account into another tenant with an arbitrary role, including owner.

Português do Brasil · Official advisory · Fix for 2.x · Fix for 3.x

VulDB accepted submission #1028117, created VDB-431158, and assigned CVE-2026-122158. The canonical CVE record was published on November 5, 2026.

At a glance

ItemValue
ProductInvoiceShelf
Affected<= 2.4.3; 3.0.0-alpha.1 through 3.0.0-alpha.3
Fixed2.4.4; 3.0.0-alpha.4
GHSA severityCritical
WeaknessCWE-284, CWE-863 (GHSA); CWE-284, CWE-266 (CVE)
VulDB CVSS v3.14.7 — CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
Researcher CVSS v3.19.1 — CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
AdvisoryGHSA-c9cx-7r7m-264v
CVECVE-2026-122158
VulDBVDB-431158

Why this happens

MemberRequest validates only the shape of the client-controlled companies array. It does not establish that the caller owns the referenced company or may assign the requested role:

'companies' => ['required'],
'companies.*.id' => ['required'],
'companies.*.role' => ['required'],

MemberService::create() and update() then treat that list as authoritative. They synchronize memberships using the supplied IDs and switch Bouncer's authorization scope to each supplied company before assigning the supplied role:

$member->companies()->sync($memberships->pluck('id'));

foreach ($memberships as $membership) {
    BouncerFacade::scope()->to($membership['id']);
    BouncerFacade::sync($member)->roles([$membership['role']]);
}

The controller verifies that the caller owns the active company. It does not bind that authorization decision to companies[].id in the request body. This creates a confused authorization boundary:

owner of Company A
        │ authorized to create a member in A
        ▼
POST /api/v1/members
companies[0].id = Company B
companies[0].role = owner
        │ values trusted by the service
        ▼
attacker-controlled account becomes an owner of Company B

Proof of concept

The repository deliberately provides a laboratory-only reproducer. It refuses non-loopback targets and does nothing unless --execute is supplied. We did not execute it while preparing this disclosure.

Prerequisites:

  1. An isolated InvoiceShelf 2.4.3 or 3.0.0-alpha.3 test installation.
  2. Two test companies, A and B.
  3. A valid Sanctum token for an owner of Company A.
  4. The numeric identifier of Company B.

Preview the request without sending it:

python3 poc/poc.py \
  --base-url http://127.0.0.1:8080 \
  --token LAB_TOKEN \
  --active-company-id 1 \
  --victim-company-id 2 \
  --email [email protected]

After reviewing the generated request, an authorized tester can add --execute. On a vulnerable release, the expected vulnerable result is HTTP 200/201 and a new member associated with Company B as owner. A fixed release must reject the cross-company membership, normally with HTTP 403 or 422, and must not create the unauthorized relationship.

See poc/poc.py and poc/request.http.

Impact

An owner of one legitimate tenant can obtain administrative control over another tenant on the same installation. The resulting account can access or alter invoices, customers, payments and other financial records, invite additional users, and exercise any capability granted to the selected role. Confidentiality, integrity and availability cross the intended tenant boundary.

VulDB scores the issue as Medium (4.7) with unchanged scope and Low impact to confidentiality, integrity, and availability. The public GHSA rates it Critical, while the researcher vector models the administrative cross-tenant boundary as changed scope with High impact. These are different risk models for the same root cause; consumers should apply the vector that matches their deployment and vulnerability-management policy.

Remediation

Upgrade to 2.4.4, 3.0.0-alpha.4, or a later release. The fix restricts submitted company IDs to companies owned by the caller, validates roles in their company scope, preserves memberships outside the caller's authority, and prevents sensitive account changes when a member also belongs to a company the caller does not own.

Disclosure and references

  • CVE-2026-122158 — canonical CVE Program record
  • VDB-431158 — VulDB entry
  • Public GitHub Security Advisory
  • VulDB submission #1028117
  • InvoiceShelf repository
  • Patch for the 2.x line, PR #826
  • Patch for the 3.x line, PR #822
  • Audited commit: 0076ab9c5b1840d53690e721a1a4e7a91a068795
  • Public disclosure: 2026-09-23

Timeline

DateEvent
2026-09-16InvoiceShelf commit 0076ab9c5b1840d53690e721a1a4e7a91a068795 audited
2026-09-23Vendor published GHSA-c9cx-7r7m-264v and credited capivara-research as reporter
2026-11-04VulDB accepted submission #1028117, created VDB-431158, and reserved CVE-2026-122158
2026-11-05The canonical CVE record was published

Credits

Research and disclosure credits:

  • Alysson Dutra
  • Lucas Diniz
  • Fernando Viana

The public GHSA currently lists capivara-research as Reporter and gdarko as Coordinator.

Legal and ethical use

Use this material only on systems you own or have explicit permission to test. The reproducer is constrained to loopback laboratory targets. Do not test public or third-party InvoiceShelf installations.

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    371
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    336
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    322

探索所有工具

浏览我们的工具集合

查看所有工具 →