View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008687 | Kali Linux | General Bug | public | 2024-03-23 05:21 | 2024-04-08 23:31 |
Reporter | Lynx | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Summary | 0008687: The root prompt is accessible from the EC2 serial console | ||||
Description | Summary The kali Linux AMI ami-08ff8eb7758eb14ec, available on the AWS Marketplace, has a vulnerability that enables operation with root privileges without the need for authentication. With only limited IAM permissions, an attacker can access the kali root prompt. This vulnerability might enable users with minimal privileges on the operating system, like monitoring operators, to acquire root privileges via the serial console. Steps for reproduce
AMI name: kali-last-snapshot-amd64-2023.4.0-804fcc46-63fc-4eb6-85a1-50e66d6c7215
The IAM user who is performing the operation needs to have the permission to connect to the EC2 serial console. Please grant the following permissions.
Root cause analysisThe following entry is located in /etc/systemd/system/[email protected]/autologin.conf.
Recommendation to fixI recommend to fix /etc/systemd/system/[email protected]/autologin.conf as follows:
| ||||
Attached Files | |||||
some corrections:
|
|
see IAM.png
see AWS-kali-SerialConsole.png: Additional recommendations
Consideration
|
|
I would argue this is a feature, not a bug. In fact, we often use it for ease of debugging. Access to serial console on AWS means you are in full control over the system: you can gain access easily via other means, including feeding appropriate user-data settings, and so on. |
|
There is no dispute that access to the OS from the Serial Console is a feature. However, being able to access the root prompt without requiring authentication is a different issue. |
|
I was referring to the fact that the console does not require password as a feature. We find it useful. If Kali developers deem necessary to change this behavior, I'd ask for it to be announced, along with instructions on how to revert it to the original behavior for the benefit of other folks who rely on it. |
|
Unfortunately, in the context of security, convenience and security are incomparable. When a user prompt appears, simply authenticating suffices. Moreover, as a fundamental feature of Linux, you're probably aware that customizing --autologin for your instance is possible, right? If you prefer that environment, you can customize it that way. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2024-03-23 05:21 | Lynx | New Issue | |
2024-03-23 05:21 | Lynx | File Added: kali linux on AWS serial console issue.pdf | |
2024-03-23 06:09 | Lynx | Note Added: 0019065 | |
2024-03-23 06:09 | Lynx | Note Edited: 0019065 | |
2024-03-23 06:26 | Lynx | Note Added: 0019066 | |
2024-03-23 06:26 | Lynx | File Added: IAM.png | |
2024-03-23 06:26 | Lynx | File Added: AWS-kali-SerialConsole.png | |
2024-03-23 06:26 | Lynx | File Added: AWS-Ubuntu22.04.4 LTS.jpg | |
2024-03-23 06:26 | Lynx | File Added: AWS-AL2023.png | |
2024-03-23 06:28 | Lynx | Note Edited: 0019066 | |
2024-03-23 06:32 | Lynx | Note Edited: 0019066 | |
2024-04-08 12:41 | dominik.borkowski | Note Added: 0019115 | |
2024-04-08 13:08 | Lynx | Note Added: 0019116 | |
2024-04-08 14:26 | dominik.borkowski | Note Added: 0019117 | |
2024-04-08 23:31 | Lynx | Note Added: 0019119 |