CVE-2026-137309 in Friendica
Summary
by MITRE • 11/26/2026
Friendica through 2026.05-1 contains an incorrect authorization vulnerability in item_edit() that allows authenticated local users to edit other authors' posts by submitting their own stored copy's post_id. Attackers can POST to /item to delete attachments and overwrite the shared body, title and content warning, which is shown under the original author's name.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in Friendica versions up to 2026.05-1 represents a critical failure in access control mechanisms within the application's post editing functionality. Specifically, the flaw resides in the item_edit() function, which is responsible for handling updates to existing content items on the social networking platform. The core technical issue stems from an incorrect authorization check that relies solely on client-supplied identifiers rather than validating ownership against server-side session data or database records associated with the authenticated user's account. This design oversight allows any authenticated local user to bypass intended restrictions by manipulating the post_id parameter during a POST request to the /item endpoint. By submitting their own stored copy of another user's post ID, an attacker can trick the system into treating unauthorized content as if it were legitimately owned and editable by the current session holder.
From a technical perspective, this vulnerability exploits a lack of proper object-level access control validation. When a user initiates an edit operation, the application should verify that the resource being modified belongs to the authenticated principal making the request. In this case, the system fails to cross-reference the provided post_id with the identity of the logged-in user before processing the update payload. Consequently, malicious actors can exploit this gap by crafting HTTP POST requests containing arbitrary post_ids associated with other users' content. This mechanism effectively neutralizes the isolation boundaries between different accounts on the same instance, allowing for unauthorized modification of data that should remain immutable to external parties except the original author or designated administrators.
The operational impact of this vulnerability is significant in terms of both integrity and trust within the social network ecosystem. Attackers can delete attachments associated with other users' posts, leading to potential loss of media content such as images or documents shared by victims. More critically, they can overwrite the body text, title, and content warning fields of another user's post. Since these modifications are processed under the context of the victim's account, the altered content appears publicly attributed to the original author rather than the attacker. This capability enables sophisticated social engineering attacks where defamatory, misleading, or malicious information is published seemingly by a trusted individual, thereby damaging reputations and spreading misinformation without direct attribution to the perpetrator.
This type of flaw aligns with CWE-269, which describes Improper Privilege Assignment, as well as CWE-862, Missing Authorization, because the application fails to enforce proper access controls on sensitive operations. In terms of offensive security frameworks, this vulnerability maps to MITRE ATT&CK technique T1078, Valid Accounts, where attackers leverage legitimate credentials to perform unauthorized actions due to flawed logic rather than credential theft. The ability to modify content under another user's identity also touches upon aspects of data manipulation and integrity violations that undermine the fundamental trust model of social platforms.
Mitigation strategies must focus on implementing robust server-side validation for all resource modification requests. Developers should ensure that every edit operation verifies that the authenticated user is the rightful owner of the specific post_id being modified by querying the database with both the identifier and the current session's user ID. Additionally, employing anti-CSRF tokens can help prevent unauthorized state changes initiated from external sources. Immediate patching to version 2026.05-1 or later is required to resolve this issue. In the interim, administrators should monitor for unusual patterns of post edits originating from single accounts and consider restricting write permissions if possible until a permanent fix is deployed. Regular security audits focusing on access control logic are recommended to prevent similar flaws in other parts of the application architecture.