Skip to content
Exploit for CVE-2026

Exploit for CVE-2026

Sploitus • November 22, 2026

# CVE-2026-134623 — Microweber CMS ≤ 2.0.20 Authentication Bypass via API Dispatcher

| **CVE ID** | [CVE-2026-134623]( |

| **VulDB ID** | [VDB-441836]( |

| **Affected Software** | [Microweber CMS]( |

| **Vulnerability Type** | Improper Access Control (CWE-284) |

| **Component** | Generic API Dispatcher (`ApiController.php`) |

| **Function** | `UserManager::make_logged` |

| **Impact** | Full Authentication Bypass / Account Takeover |

| **Researcher** | [Sumit Nayak]( |

A critical access control vulnerability exists in Microweber CMS versions up to and including **2.0.20**. The flaw resides in the **Generic API Dispatcher** (`ApiController.php`), which fails to properly enforce authorization checks on the `UserManager::make_logged` function.

The `make_logged()` function authenticates a session as any user given only their `user_id` — with **no internal authorization verification**. While this function is registered via `api_expose_admin()` (intended for admin-only access), the API dispatcher's class-resolution logic contains a code path (`class_is_already_here`) that **bypasses the access control whitelist entirely**, allowing an unauthenticated attacker to invoke the function and authenticate as any user, **including administrators**.

This results in a **complete authentication bypass and full account takeover**.

Attacker Request ──► /api/... ──► ApiController::api()

'class_is_already_here' 'default' case

**1. The API Dispatcher** (`src/MicroweberPackages/App/Http/Controllers/ApiController.php`)

The API dispatcher dynamically resolves function names from URL paths via a catch-all route:

// Routes - only 'public.web' middleware, no auth required

Route::any('/api/{slug}', 'ApiController@api');

Route::any('api/{all}', 'ApiController@api')->where('all', '.*');

**2. Access Control Whitelist (Intended Protection)**

The dispatcher builds a dynamic whitelist (`$api_exposed`) of callable functions based on the user's current session:

$api_exposed .= (api_expose(true)); // Public functions — always

$api_exposed .= (api_expose_user(true)); // Logged-in user functions

$api_exposed .= (api_expose_admin(true)); // Admin-only functions

`user_make_logged` is registered as admin-only:

// src/MicroweberPackages/User/helpers/api_user.php

**3. The Bypass — `class_is_already_here` Code Path**

The dispatcher has a `switch` statement that handles different resolution paths. The `class_is_already_here` case executes when a PHP class is already loaded in memory (which `UserManager` always is as a core service):

// ❌ NO check against $api_exposed whitelist

if (method_exists($res, $try_class_func)) {

$res = $res->$try_class_func($data); // Direct method call

This path calls the method **directly without verifying** it's in the allowed function list.

**4. The `make_logged` Function — No Internal Auth Check**

// src/MicroweberPackages/User/UserManager.php (line 1211)

public function make_logged($user_id, $remember = false)

// No permission check — directly authenticates as the user

Auth::loginUsingId($data['id'], $remember);

The function takes an arbitrary `user_id`, looks it up, and calls `Auth::loginUsingId()` to establish an authenticated session — **with zero authorization checks**.

| **Privileges Gained** | Full admin access |

| **Impact** | Complete account takeover |

| **Scope** | Any user account on the system |

> **⚠️ Disclaimer:** This PoC is provided for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal.

**1. Set up a vulnerable Microweber instance (≤ 2.0.20)**

**2. Identify the admin user ID** (typically `id=1` for the first admin account)

**3. Send the crafted API request to invoke `make_logged` through the dispatcher bypass:**

Content-Type: application/x-www-form-urlencoded

**4. The server authenticates the session as the admin user (id=1) without requiring any credentials.**

**5. Access the admin panel to confirm takeover:**

📹 **Video Demonstration:** [Google Drive — PoC Video](

| `src/MicroweberPackages/App/Http/Controllers/ApiController.php` | Vulnerable API dispatcher — missing access control in `class_is_already_here` path |

| `src/MicroweberPackages/User/UserManager.php` (line 1211) | `make_logged()` — no internal authorization check |

| `src/MicroweberPackages/User/helpers/api_user.php` (line 11) | `api_expose_admin('user_make_logged')` — registration |

| `src/MicroweberPackages/User/helpers/helpers.php` (line 172) | `user_make_logged()` — wrapper function |

| `src/MicroweberPackages/App/routes/web.php` (line 222) | Route definition — `public.web` middleware only |

1. **Add an internal admin check** inside `make_logged()`:

public function make_logged($user_id, $remember = false)

return ['error' => 'Unauthorized: Admin access required'];

2. **Enforce whitelist checks** in all dispatcher code paths, including `class_is_already_here`.

3. **Apply authentication middleware** at the route level for sensitive API endpoints.

4. **Update Microweber** to the latest version once a patch is released.

- **CVE Record:** [

- **VulDB Entry:** [

- **Microweber GitHub:** [

- **CWE-284:** [Improper Access Control](

| 2026-11-22 | Vulnerability disclosed and CVE published |

| 2026-11-22 | VulDB entry created (VDB-441836) |

Discovered by **[Sumit Nayak](

This vulnerability was responsibly disclosed. Use this information for defensive purposes only.

Extracted Entities

Attack Types (1)

Platforms (1)