PT-2021-22209 · Raspap · Raspap

Published

2021-08-24

·

Updated

2024-02-14

·

CVE-2021-38557

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions RaspAP version 2.6.6
Description The issue allows attackers to execute commands as root due to insecure sudoers permissions. The www-data account can execute /etc/raspap/hostapd/enablelog.sh as root with no password. Moreover, the www-data account can overwrite /etc/raspap/hostapd/enablelog.sh with any executable content, further escalating the attack.
Recommendations For RaspAP version 2.6.6, consider restricting the www-data account's access to /etc/raspap/hostapd/enablelog.sh to prevent unauthorized execution and modification. As a temporary workaround, consider disabling the execution of /etc/raspap/hostapd/enablelog.sh as root until a patch is available.

Exploit

Fix

Incorrect Default Permissions

Incorrect Permission

Weakness Enumeration

Related Identifiers

CVE-2021-38557
GHSA-536P-4PCJ-5MR9

Affected Products

Raspap