⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-145071: Stoatchat Direct-Message Pinning Authorization Flaw | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-145071: Stoatchat Direct-Message Pinning Authorization Flaw

Executive summary

CVE-2026-145071 affects the direct-message pin and unpin functionality in Stoatchat versions before 0.16.5. The affected endpoints fail to ensure that the authenticated requester participates in the targeted direct-message channel.

As a result, a logged-in Stoatchat user can submit a POST or DELETE request against a known direct-message channel and message ULID to pin or unpin a message in a private conversation involving other users. The operation also injects a system message into that conversation. The vulnerability permits manipulation of conversation state and limited content injection, but it does not directly expose the contents of the private messages.

The NVD record assigns the issue a CVSS score of 4.3 (Medium). The real-world severity is assessed here as low because exploitation requires a valid account, knowledge of both relevant identifiers, and no known exploitation has been reported in the supplied context.

Affected systems

  • Product: Stoatchat

  • Affected versions: Versions before 0.16.5

  • First version indicated as fixed by the source: 0.16.5

  • Vulnerability class: Missing authorization / broken access control

  • Affected functionality: Direct-message message pin and unpin endpoints

  • Required access: An authenticated Stoatchat account

  • Impact: Unauthorized changes to pinned state and system-message injection into private conversations

Self-hosted and on-premises deployments are particularly relevant because their administrators control the upgrade schedule. The supplied NVD entry does not provide separate information about affected configuration settings or deployment editions.

Technical analysis

The direct-message pin route accepts POST and DELETE operations associated with a channel message. For a direct-message context, the server should verify that the authenticated principal is a participant in that channel before changing message state. According to the vulnerability description, this authorization check is absent or incomplete.

An attacker can therefore target a conversation using two identifiers:

  1. The direct-message channel identifier.

  1. The ULID of the message whose pinned state should be changed.

The request itself can be made over the network by any authenticated Stoatchat user. A successful POST pins the selected message, while a successful DELETE removes its pinned state. In either case, a system message is generated within the private conversation, making the unauthorized action visible to legitimate participants.

The identifiers are opaque and are not described as readily enumerable in the supplied context. Their acquisition may depend on another disclosure, shared access to a channel, or information exposed through a separate application feature. The provided analysis identifies ULIDs as 128-bit identifiers and notes that blind brute force is generally impractical; however, that observation does not replace the need for server-side authorization.

Security impact

The primary consequence is a loss of integrity within private conversations. An unauthorized user can change which message is presented as pinned and create a system notification inside a thread. This could support nuisance activity, misleading conversation state, or social-engineering scenarios involving trusted participants.

The vulnerability does not, based on the available description, provide direct read access to messages, privilege escalation, code execution, or data exfiltration. Its practical impact is therefore narrower than a general private-message disclosure vulnerability.

Exploitability and threat activity

The available context records no evidence of exploitation in the wild, no public proof of concept, and no listing of CVE-2026-145071 in the CISA Known Exploited Vulnerabilities catalog. These factors lower the assessed real-world urgency.

Exploitation still has a low barrier beyond account creation because the affected requests are standard HTTP operations. Difficulty obtaining the channel and message identifiers, together with the absence of known targeting activity, is the main constraint on practical abuse.

Mitigation

Upgrade affected deployments

Upgrade Stoatchat to 0.16.5 or later and verify the deployed version after the upgrade. The affected-version statement in the NVD description is the only fix indicator available in the supplied sources; no separate patch advisory is cited.

Interim protections

Where an immediate upgrade is not feasible:

  • Restrict access to the affected pin route at the reverse proxy or application gateway.

  • Enforce a check that the authenticated user is a participant in the referenced direct-message channel before allowing POST or DELETE requests.

  • Disable direct-message pinning if the deployment offers a supported configuration option.

  • Review successful pin and unpin requests for accounts accessing messages across unrelated or multiple channels.

These compensating measures reduce exposure but are less reliable than upgrading because application-layer authorization is the defective control.

Detection and auditing

Useful signals include:

  • Successful POST or DELETE responses to the channel-message pin route where the authenticated user is not a participant in the referenced channel.

  • One account issuing pin or unpin requests across numerous direct-message channels in a short period.

  • Reports from legitimate participants about unexpected pin changes or system messages in private conversations.

  • Deployment inventories that identify any Stoatchat instance running a version below 0.16.5.

Log retention and correlation should preserve both the authenticated account and the targeted channel identifier so that cross-channel activity can be distinguished from normal conversation use.

Expert insight

This vulnerability illustrates why route-level authentication is not equivalent to route-level authorization. Validating a Stoatchat session proves that the requester is an account holder, but it does not establish that the account may act on a particular direct-message channel. The secure design pattern is to derive the user's channel membership server-side and authorize the requested resource before performing any state change.

The narrow scope of the CVE should not obscure its relevance to integrity controls. Pinned messages and generated system notifications can influence how users interpret a conversation. In environments where private discussions carry operational or social significance, unauthorized manipulation is more consequential than a simple cosmetic defect. Nevertheless, the absence of direct message disclosure, known exploitation, or KEV inclusion supports a low overall severity assessment rather than an emergency classification.

References

·
← News