Skip to main content

FUXA SCADA CVE-2026-47721

MEDIUM
Missing Authorization (CWE-862)
2026-06-08 https://github.com/frangoteam/FUXA GHSA-8ghr-w65f-j3qr
6.3
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
6.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Source Code Evidence Fetched
Jun 08, 2026 - 23:40 vuln.today
Analysis Generated
Jun 08, 2026 - 23:40 vuln.today

DescriptionGitHub Advisory

Summary

An authorization issue in the Scheduler API allowed authenticated non-admin users to create or modify scheduled actions that should be restricted to administrators.

Details

The Scheduler API did not correctly enforce administrator permissions when processing scheduler modifications.

As a result, authenticated users with non-administrative roles could create or modify scheduled actions that execute privileged operations, including device value changes and server-side script execution.

The issue was fixed in version 1.3.2 by enforcing the appropriate permission checks for scheduler modifications.

Impact

An operator-level user in FUXA reaches the PLC-write and server-side-script-execution surface that the platform otherwise restricts to administrators. In a SCADA deployment those two privileges cover setpoint control and the automation scripting engine. Alice schedules a job that rewrites a pump's enable tag, opens a safety interlock, or runs a project script that walks the device tree. The scheduled-action model extends the attack: Alice does not need to keep a session open for the action to fire, and a repeating schedule re-applies her changes every cycle even if an admin reverts them manually.

CVSS 3.1: AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (Medium, 6.3). CWE-862.

Recommended Fix

Add authJwt.haveAdminPermission(permission) to both POST /api/scheduler and DELETE /api/scheduler, matching every other write endpoint that reaches runtime.devices.setTagValue or runtime.scriptsMgr.runScript.

javascript
schedulerApp.post("/api/scheduler", secureFnc, function(req, res) {
    if (res.statusCode === 403) {
        runtime.logger.error("api post scheduler: Tocken Expired");
        return;
    }
    const permission = checkGroupsFnc(req);
    const isGuest = authJwt.isGuestUser(req.userId, req.userGroups);
    if (runtime.settings?.secureEnabled && (isGuest || !authJwt.haveAdminPermission(permission))) {
        res.status(401).json({error:"unauthorized_error", message: "Unauthorized!"});
        runtime.logger.error("api post scheduler: admin permission required");
        return;
    }
    // ... rest unchanged ...
});

Apply the same change to the delete handler at server/api/scheduler/index.js:102-112. As defense in depth, the scheduler service should also validate each deviceActions entry against the creator's stored groups before execution (e.g., reject onRunScript on any scheduler whose author is not an admin at execution time).

--- A fix is available at https://github.com/frangoteam/FUXA/releases/tag/v1.3.2.

--- *Found by aisafe.io*

AnalysisAI

Privilege escalation in FUXA's Scheduler API allows authenticated operator-level users to create or modify scheduled actions restricted to administrators, reaching PLC write and server-side script execution surfaces in SCADA deployments. The vulnerability (CWE-862) exists because POST /api/scheduler and DELETE /api/scheduler lacked the authJwt.haveAdminPermission() check applied to every other privileged write endpoint. Uniquely dangerous in OT environments: the scheduled-action model means an attacker does not need to maintain an active session - a repeating schedule persistently re-applies unauthorized setpoint or script changes even after manual admin remediation.

Technical ContextAI

FUXA is an open-source web-based SCADA/HMI platform (npm package fuxa-server) that exposes a REST API for managing industrial automation workflows, including a Scheduler API for timed device actions. Authentication is handled via JWT with role-group segmentation (guest, operator, admin) enforced by authJwt middleware. The root cause is CWE-862 (Missing Authorization): the Scheduler API's POST and DELETE handlers applied only the baseline secureFnc JWT validity check but omitted the authJwt.haveAdminPermission(permission) gate present on all other write-path endpoints (those reaching runtime.devices.setTagValue or runtime.scriptsMgr.runScript). This allowed any authenticated non-guest user - including operator-role accounts - to submit or remove scheduler entries that trigger privileged actions such as PLC tag writes (setpoint control) and project-level script execution (automation scripting engine). The affected package is identified as pkg:npm/fuxa-server. CWE-862 represents a missing authorization step rather than broken logic - the role model was correct everywhere except these two API endpoints.

RemediationAI

Upgrade fuxa-server to version 1.3.2, available at https://github.com/frangoteam/FUXA/releases/tag/v1.3.2, which enforces authJwt.haveAdminPermission(permission) on both POST /api/scheduler and DELETE /api/scheduler endpoints. As defense-in-depth recommended by the advisory, the scheduler execution service should additionally validate each deviceActions entry against the creator's stored role groups at execution time - specifically rejecting onRunScript actions for non-admin authors - so that pre-existing malicious scheduler entries created before patching cannot continue to execute. If immediate upgrade is not possible, restrict network access to the FUXA web interface to trusted operator network segments to reduce exposure, accepting the trade-off that this does not eliminate the threat from insider operator accounts. Auditing existing scheduler entries for unauthorized deviceActions (particularly setTagValue and onRunScript types) created by non-admin users is strongly recommended before and after patching.

Share

CVE-2026-47721 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy