提交 #1057474: https://github.com/nliautaud/pico-content-editor pico-content-editor 02d5ad6c820c5050c542ab9505819b5e0a0ba1af Cross-Site Request Forgery信息

标题https://github.com/nliautaud/pico-content-editor pico-content-editor 02d5ad6c820c5050c542ab9505819b5e0a0ba1af Cross-Site Request Forgery
描述Summary: PicoContentEditor's content-save and file-upload request handlers perform no CSRF token validation and the server never checks the Origin or Referer headers. A cross-site POST request from an attacker-controlled page is processed exactly like a legitimate same-site request, as long as the victim's browser sends a valid session cookie. This flaw is independent of, and persists even after correctly applying the official mitigation (installing the PicoUsers plugin) for the previously reported unauthenticated-upload vulnerability in the same plugin. Vulnerable component: PicoContentEditor content-save and file-upload request handlers (src/Edits.php, src/Uploads.php, PicoContentEditor.php) Affected file(s) and parameter(s): src/Edits.php (saveMeta(), saveRegions()); src/Uploads.php (saveFile()); PicoContentEditor.php (processPageEdits(), processOverallEdits()); HTTP POST field "PicoContentEditor" (JSON) and multipart field "PicoContentEditorUpload" sent to the Pico site root Technical description: The only check performed before processing a save or upload request is Auth::can(Auth::SAVE) / Auth::can(Auth::UPLOAD), which answers "is this session authorized to perform this action," never "did this request actually originate from the application's own pages." A full-text search of the plugin's PHP source for csrf, samesite, origin, and referer returns zero matches outside of unrelated bundled third-party JavaScript assets, confirming the complete absence of CSRF protection anywhere in this request-handling path. The victim must hold an authorized session, which includes both the plugin's default insecure configuration (no PicoUsers installed, where every visitor is implicitly authorized) and a correctly configured PicoUsers setup where a legitimate editor or admin happens to be logged in at the time. In the evaluated environment, PHP's session.cookie_samesite setting is empty, meaning any protection against this flaw currently depends entirely on the visiting browser's own default cookie-handling behavior rather than anything enforced by the application itself. Steps to reproduce: 1. Install PicoContentEditor and PicoUsers, grant a test account the PicoContentEditor/save right, and authenticate it. 2. Send a POST / request with that session cookie and the body field PicoContentEditor=<json-payload> (e.g. {"meta":"Title: PWNED\n"}), setting Origin and Referer to a domain unrelated to the target and omitting any CSRF token. 3. Observe that the server accepts and applies the change despite the mismatched Origin/Referer, and that the target page's content subsequently reflects the attacker-supplied value. Impact: An attacker who lures an authorized PicoContentEditor user (or, in an unprotected default install, any visitor) to a malicious web page can silently tamper with site content, overwriting page titles, descriptions, and other front-matter fields, or planting uploaded files, using the victim's own authorization and without their knowledge. No special privileges are required of the attacker; impact depends entirely on the victim's own session state.
来源⚠️ https://github.com/vinniboy021-blip/Advisory/blob/main/pico-content-editor-csrf.md
用户
 vinniboy021 (UID 100165)
提交2026-10-26 19時11分 (1 月前)
管理2026-11-24 19時51分 (29 days later)
状态重复
VulDB条目431149 [nliautaud pico-content-editor 直到 02d5ad6c820c5050c542ab9505819b5e0a0ba1af 跨网站请求伪造]
积分0

Do you need the next level of professionalism?

Upgrade your account now!