-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Advisory ID: SYSS-2026-091 Product: LimeSurvey Community Edition Manufacturer: LimeSurvey GmbH Affected Version(s): 7.0.14 (build 7.0.14+260904), 7.1.0 (build 7.1.0+260913), and 7.3.0 (build 7.3.0+260922); the affected code path is present in earlier releases and was not verified there Tested Version(s): 7.0.14 (build 7.0.14+260904), 7.1.0 (build 7.1.0+260913), 7.3.0 (build 7.3.0+260922) Vulnerability Type: Missing Authorization (CWE-862) via Incorrect Permission Assignment for Critical Resource (CWE-732) Risk Level: Medium Solution Status: Fixed Manufacturer Notification: 2026-09-30 Solution Date: 2026-10-01 Public Disclosure: 2026-10-30 CVE Reference: None (not yet assigned) Author of Advisory: Henry Weckermann, SySS GmbH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Overview LimeSurvey is a web application for creating and running online surveys. The manufacturer describes the product as follows (see [1]) "LimeSurvey is the simple, quick and anonymous online survey tool that's bursting with juicy insights. Calling students, professional researchers and enterprises: design a survey and get the best insights, it's free and as easy as squeezing a lime. Make a free online survey now!" The theme install and upload action checks the caller's permission with a call that omits the CRUD argument, so the argument defaults to "read". The check therefore reduces to "templates import OR templates read", and any user who holds the low, view-only "templates" read permission can import and install a theme. Installing a theme writes attacker-controlled files into the web-served theme directory and makes the theme's Twig reachable. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Vulnerability Details The vulnerable gate is in the upload action: application/controllers/admin/Themes.php:191 if (Permission::model()->hasGlobalPermission('templates', 'import') || Permission::model()->hasTemplatePermission($sTemplateName)) { The permission helper defaults its CRUD argument to 'read': application/models/Permission.php:748 public function hasTemplatePermission( $sTemplateName, $sCRUD = 'read', $iUserID = null) { return $this->hasPermission(0, 'global', 'templates', $sCRUD, $iUserID) || $this->hasPermission(0, 'template', $sTemplateName, $sCRUD, $iUserID); } On a fresh upload, $sTemplateName is empty, so the per-template branch is moot and the global "templates" read permission alone passes the gate. An operation that is meant to require "templates" import (create) is reachable with a view-only permission. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Proof of Concept (PoC) The following was verified live against LimeSurvey 7.0.14, executed as the account "surveycreator" (global "templates" read only). Upload a survey theme ZIP (config.xml plus a CSS file, extends vanilla): POST /index.php/admin/themes/sa/upload YII_CSRF_TOKEN= action=templateupload theme=survey the_file=@pwnr_theme.zip -> HTTP 200, page shows "Imported ... OK" Result: - - Files are written into the web root theme directory: upload/themes/survey/pwnr_theme/config.xml upload/themes/survey/pwnr_theme/css/pwn_marker.css - - A database row is created in lime_templates: name=pwnr_theme, folder=pwnr_theme, owner_id=2 (owner_id 2 = surveycreator) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Solution Require the correct CRUD permission in the gate: if (Permission::model()->hasGlobalPermission('templates', 'import') || Permission::model()->hasTemplatePermission($sTemplateName, 'import')) { Audit every call site of hasTemplatePermission() for the same missing CRUD default and consider removing the implicit 'read' default entirely since it is an error-prone default that invites this class of mistake. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclosure Timeline 2026-09-30: Vulnerability reported to the manufacturer 2026-10-01: Patch released by manufacturer 2026-10-30: Public disclosure of vulnerability ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ References [1] Product website, LimeSurvey Community Edition https://www.limesurvey.org/ [2] SySS Security Advisory SYSS-2026-091 https://www.syss.de/fileadmin/dokumente/Publikationen/Advisories/SYSS-2026-091.txt [3] SySS GmbH, SySS Responsible Disclosure Policy https://www.syss.de/en/responsible-disclosure-policy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Credits This security vulnerability was found by Henry Weckermann of SySS GmbH. E-Mail: henry.weckermann (at) syss.de Public Key: https://www.syss.de/fileadmin/dokumente/PGPKeys/Henry_Weckermann.asc Key fingerprint = 716D DC05 47A5 08B5 F348 6ED6 7FB4 16F5 EDE2 6AF3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disclaimer The information provided in this security advisory is provided "as is" and without warranty of any kind. Details of this security advisory may be updated in order to provide as accurate information as possible. The latest version of this security advisory is available on the SySS website. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright: Creative Commons - Attribution (by) - Version 4.0 URL: https://creativecommons.org/licenses/by/4.0/deed.en -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcW3cBUelCLXzSG7Wf7QW9e3iavMFAmrhxokACgkQf7QW9e3i avMXJBAAhJwLanH2tC50Dp2AoyS98L8JlWsssGMiWwV1djKJe+6VPdIjKifYltD1 FbuBW76svOTYglg57CgrPNz23PJKsNx9d9f0ijlAkYncZkKlRhGV+riI/F9wk0PL WuUJNfKIPZvEvA2QHRmXisKvNqmfDmrC3wGU4l8pOnN3vmiMkZY4YCdDxsXV7Yl+ m9xZMd6qblUtOL0Ot4JkdlpIRr2iNvhX05lHQPyDzdyHp9F4GrdvMrM5Av0+XooA dx5uCQsAx5YSvGqUgkA+EqZz1kQIFqF6rDtXwCXnLtz4NR8QXcNDS3IqLgVdhAFB cvSkKYUBUGonOukaeM/edA5Oy/Fs1rdk6KT/UmBryXSszmo5eH90zOXtDkE24Sbo dKrcno3vwOAubb93/s577bdB1RFqBdB+sl7+nHmuKmKPDE2w+M/+Wf0p82Yy4W/C hJL71rrE6GiPc13OAVglDGbGSPvWm0MRUyKiJPLrlmdMl1u3JqMnQCARfNAgSCBg 2L+Y49ZK8RBNt+yotucKh76RkUL8ICbd84RKPk5IlmzdDyeZ3UYseJ4x61n/9BGe Dnka8OoFLgHfP7PjHUa0uKQx83Fe152miMV1zTKjx1lR0JTjGYKU0kuu2/rC1ilZ YdAJE9ZlgmOB9PRkO6NJELlLENcg1z0J5LaZ6EJGykk2fn1wt+w= =ag5a -----END PGP SIGNATURE-----