CVE-2022-2626 - Incorrect Privilege Assignment

Severity

72%

Complexity

12%

Confidentiality

98%

Incorrect Privilege Assignment in GitHub repository hestiacp/hestiacp prior to 1.6.6.

CVSS 3.1 Base Score 7.2. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).

Demo Examples

Incorrect Privilege Assignment

CWE-266

Evidence of privilege change:


               
seteuid(getuid());/* do some stuff */

               
}
// privileged code goes here, for example:// nothing to return

Incorrect Privilege Assignment

CWE-266

This application sends a special intent with a flag that allows the receiving application to read a data file for backup purposes.


               
sendBroadcast(intent);

               
}
}
stealUserData(userData);

Any malicious application can register to receive this intent. Because of the FLAG_GRANT_READ_URI_PERMISSION included with the intent, the malicious receiver code can read the user's data.

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.