Skip to content

Add Rate limit to Cloud Commander Basic Authentication #437

@tp9222

Description

@tp9222

Describe the bug
Cloud Commander relies on Basic Authentication, which exposes credentials even when served over HTTPS. This authentication method is vulnerable to credential theft, brute-force attacks

To Reproduce
Steps to reproduce the behavior:

Scenario 1: Credentials Interception
Start Cloud Commander:

cloudcmd --port 8000
Open Burp Suite and enable Intercept mode.
Log in to Cloud Commander using valid credentials.
Capture the Authorization header:
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Decode it using:
echo "dXNlcm5hbWU6cGFzc3dvcmQ=" | base64 -d
The plaintext username & password are exposed.

Scenario 2: Brute-Force Attack Using Hydra
Create a password file (passwords.txt) with credential pairs:

root:123456
root:password
root:admin

Run the following Hydra command:
hydra hydra -I -V -C passwords.txt "http-get://192.168.33.131:8000"

Observe that Cloud Commander does not block multiple failed login attempts, allowing attackers to brute-force credentials.

Expected behavior
Cloud Commander should not use Basic Authentication or should at least:
Implement rate-limiting (e.g., block after 5 failed attempts).
Use modern authentication methods (OAuth, JWT).
Provide session expiration & logout functionality.

Screenshots

Image
Image
Image

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Browser Firefox
  • Version 135.0.1 (64-bit)
  • Node.js version 135.0.1 (64-bit)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions