Summary
The BUK TS-G Gas Station Automation System exposes an improper authentication flaw in its configuration module that accepts any credentials as an administrator login.
Because subsequent privileged endpoints do not enforce server-side sessions, a remote unauthenticated attacker can directly invoke administrative actions over fuel equipment and configuration.
Affected context
This vulnerability appears in BUK TS-G Gas Station Automation System deployments running versions 2.9.1 through 2.10.2 on Linux.
It manifests in the web-based system configuration module, specifically around the /php/ajax-login.php, /php/ajax-main.php, and /modules/* endpoints.
Environments where this interface is reachable over the network, especially from untrusted segments, are at heightened risk, as access controls are not reliably enforced server-side.
Exploit preconditions
- Attack surface: HTTP(S) interface of the configuration module (typically browser-accessible web UI)
- Required access: Network reachability to
/php/ajax-login.phpand subsequent privileged endpoints - Trigger point: Sending a POST request with arbitrary
action=dologin,login, andpwdparameters to the login endpoint, followed by direct calls to admin endpoints - Why exploitation is possible: The login endpoint unconditionally returns
userid=1(administrator) for any credentials, and privileged endpoints under/php/ajax-main.phpand/modules/*fail to validate a server-side session or enforce authentication/authorization on each request.
Why this happens
The underlying bug class is improper authentication and missing enforcement of authorization checks on sensitive operations.
Instead of verifying user-supplied credentials against a trusted user store and creating a robust, server-side session, the application effectively treats all login attempts as successful administrator logins by returning userid=1.
Compounding this, downstream privileged endpoints execute administrative actions without confirming an authenticated session or user identity, relying implicitly on client-supplied state or none at all.
This behavior maps to CWE-287 (Improper Authentication) and is closely related to CWE-306 (Missing Authentication for Critical Function), as critical configuration and control functions are exposed without reliable, server-enforced authentication.
Potential impact
- A remote attacker could perform any administrative action available in the configuration module.
- Attackers may read or modify user rules and permissions.
- Fuel tank gauge readings and calibration data can be viewed or altered.
- Control of fuel dispensers, relays, and related hardware can be obtained.
- Cash registers, bank terminals, and fuel card configurations can be manipulated.
- Pricing rules, cash collection workflows, and customer display information may be changed.
- Overall operational integrity, safety controls, and financial data of the gas station automation system can be compromised.
General mitigation guidance
Effective mitigation centers on enforcing robust authentication and authorization for all administrative endpoints.
Common defensive patterns include:
- Implementing server-side verification of user credentials against a secure identity store before assigning any privileges.
- Establishing a secure session mechanism (e.g., signed, time-limited session identifiers) and validating this session on every privileged request.
- Applying role-based access control (RBAC) so that only explicitly authorized accounts can access configuration and control functions.
- Ensuring that critical operations, especially those affecting physical devices or financial data, require explicit authentication and cannot be triggered solely by crafted HTTP requests.
- Isolating the administration interface onto restricted network segments and limiting access through firewalls or VPNs to reduce exposure.
How teams detect issues like this
Detection generally involves a combination of code-level review and operational monitoring:
- Static analysis or manual code review can look for login handlers that unconditionally assign administrator identities or fail to check credentials.
- Review privileged endpoints for absence of checks on server-side sessions or user roles, especially under
/php/ajax-main.phpand/modules/*. - Implement logging and security monitoring for anomalous administrative activity, such as unexpected configuration changes or control actions from unfamiliar IP addresses.
- Use web application security scanners or automated test harnesses to probe authentication workflows and verify that invalid credentials are rejected and that privileged endpoints cannot be accessed without a valid session.

