Sep 23, 2026·5 min read·27 visits
An incorrect authorization flaw in klever-go < 1.7.20 allows attackers to overwrite any account's permission set using a malicious contract call, resulting in unauthorized account takeover.
A critical incorrect authorization vulnerability (CWE-863) exists in the Go implementation of the Klever blockchain protocol (klever-go) prior to version 1.7.20. The vulnerability allows an attacker to completely replace a target account's permission set by manipulating the RecipientAddr parameter in a VM built-in function, leading to total account takeover.
The Go implementation of the Klever blockchain protocol (klever-go) contains a critical incorrect authorization vulnerability within its Virtual Machine execution layer. The flaw resides specifically in the KleverUpdateAccountPermission VM built-in function. This function is responsible for managing and modifying cryptographic authorization structures and permissions for user accounts on the blockchain network.
This security vulnerability belongs to the Incorrect Authorization class (CWE-863). During VM execution, the system fails to correctly verify whether the entity invoking the permission modification has the required cryptographic authority to perform the action. Instead, the validation checks rely on an attacker-controlled variable rather than the authenticated transaction caller.
Successful exploitation of this flaw allows an unauthenticated remote attacker to completely overwrite the permission structure of a target wallet. This enables a complete account takeover, leading to the unauthorized transfer of assets and permanent lockout of the legitimate owner. The vulnerability exposes a critical attack surface in the protocol's smart contract execution environment.
The root cause of the vulnerability resides within the authorization check in core/kapp/builtInFunctions/kleverUpdateAccountPermission.go. When a contract triggers the ProcessBuiltinFunction method, the virtual machine loads the target account data into memory. It then invokes the internal helper method contractHasValidPermission to determine whether the transaction execution is authorized.
This helper method validates authorization by comparing registered signers in the target account with the vmInput.RecipientAddr parameter. However, in the context of indirect contract calls, the calling contract controls both the parameters of the call and the value of vmInput.RecipientAddr. Because of this design choice, the target value is entirely under the control of the attacker's execution payload.
By setting vmInput.RecipientAddr to match the target victim's account address, the attacker forces the comparison bytes.Equal(signer.Address, recipientAddr) to evaluate as true. The validation checks identify the victim's self-signing entry and accept its weight as valid authorization. The virtual machine then proceeds to execute the state change without verifying that the actual transaction caller has any authorization over the victim account.
Prior to the patch, the vulnerable helper function evaluated permissions using the uncontrolled recipient address as shown below:
func (e *kleverUpdateAccountPermission) contractHasValidPermission(permissions []*state.Permission, recipientAddr []byte) bool {
for _, permission := range permissions {
for _, signer := range permission.Signers {
if !bytes.Equal(signer.Address, recipientAddr) {
continue
}
if signer.Weight >= permission.Threshold &&
permission.CheckPermissionGrantedForContracts(transaction.TXContract_UpdateAccountPermissionContractType) {
return true
}
}
}
return false
}The security patch resolved this flaw in commit c58740eb74d7ee8f07db1e18a7d6214b5559ba32 by removing the vulnerable helper and passing the authenticated CallerAddr directly to the KApp core:
// Updated call structure passing caller address explicitly
resultCode, err := e.kappController.GetAccountsKApp().UpdatePermission(vmInput.CallerAddr, address, contract)The core KApp function signature was hardened to ensure that permissions can only be updated if the cryptographically verified authorizer matches the target account, or is explicitly registered as an authorized delegate in the permission state:
func (a *accountsKapp) UpdatePermission(authorizer []byte, target []byte, tc *transaction.UpdateAccountPermissionContract) (transaction.Transaction_TXResultCode, error) {
...
if !bytes.Equal(authorizer, target) && !authorizerCanUpdatePermission(ownerAcc.GetPermissions(), authorizer) {
ctx.Receipts().AddError(ctx.ContractID(), common.ErrFieldInvalidPermission, common.ErrNoPermission.Error())
return transaction.Transaction_ParameterInvalid, common.ErrNoPermission
}
...
}To execute this attack, an adversary deploys a malicious smart contract on the target network. This smart contract is configured to trigger the KleverUpdateAccountPermission built-in function via an indirect call. The attack payload specifies the target victim's wallet address as the subject of the permission change.
The exploit sequence operates as follows:
The malicious contract sets the RecipientAddr parameter of the indirect call payload to the victim's account address. When the built-in function processes this input, it locates the victim's own self-signing key within their permission structure. Because the addresses match, the validator confirms that the self-signer key meets the threshold and approves the modification, replacing the legitimate key with the attacker's public key.
The impact of CVE-2026-82405 is critical to the security and integrity of the affected blockchain network. Successful exploitation allows an attacker to seize absolute control of any account on the network that has previously configured custom permissions. Legitimate users are locked out of their accounts because their active keys are deleted from the account's state.
With administrative access established, the attacker can transfer all tokens, interact with contracts as the victim, and modify secondary security settings. This bypasses multi-signature configurations entirely, rendering advanced account protection mechanisms ineffective. This poses a severe threat to decentralized organizations, validators, and individual participants.
The primary remediation for this vulnerability is to upgrade all klever-go nodes, validators, and client software to version 1.7.20 or later. This release contains the formal patch that replaces the vulnerable validation checks with a robust identity check. Users should review their account permission configurations to ensure no unexpected changes occurred prior to patching.
In environments where immediate software upgrades are not feasible, network administrators should implement logging and monitoring controls to capture and analyze call parameters to the UpdateAccountPermission built-in contract. Any pattern of contract-initiated permission updates targeting separate user addresses should be treated as a highly critical security incident.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
klever-go klever-io | < 1.7.20 | 1.7.20 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-863 |
| Attack Vector | Network |
| CVSS v4.0 Score | 8.7 (High) |
| Exploit Status | PoC Available |
| CISA KEV Status | Not Listed |
| Remediation Status | Patched in v1.7.20 |
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly associate the authorization with the identity of the actor.
CVE-2026-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.
CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.
CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).
CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.