generated from host-uk/core-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
lang:phpPHP/LaravelPHP/Laravel
Description
Description
The SSH connection test in Servers.php disables host key verification, making it vulnerable to man-in-the-middle attacks.
Location
- File: src/View/Modal/Admin/Servers.php
- Lines: 180-189
Issue
The current implementation uses:
- StrictHostKeyChecking=no
With this setting disabled, an attacker who can intercept network traffic could:
- Present their own SSH server as the target
- Capture the private key authentication attempt
- Potentially gain access to the actual server
Recommendation
- Store and verify host keys in a known_hosts file per workspace
- On first connection, prompt the user to verify the host fingerprint
- Use StrictHostKeyChecking=accept-new to accept on first connect and verify thereafter
- Log host key changes as security events
Severity
Medium - Requires network-level access but could lead to credential theft
Metadata
Metadata
Assignees
Labels
lang:phpPHP/LaravelPHP/Laravel