FTP Credentials Assignment detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_SECRET_310
Category
Secrets
Severity
MEDIUM
Framework
Git
Impact
The FTP Credentials Assignment exposes cleartext credentials (username/password) for an FTP server.
Exposure grants unauthorized access to the FTP server, allowing an attacker to compromise file systems, steal proprietary business data, or compromise the entire network infrastructure.
How to Fix
To remediate a generic or high-entropy secret:
Identify the service or resource protected by this secret (investigate variable names or surrounding code for context).
Log in to the identified service and rotate the credentials.
If the service cannot be identified, treat the secret as critical: check if it matches internal passwords or keys and rotate them as a precaution.
Update your application configuration with the new value.
Next, remove the secret from your codebase:
Locate the exposed string in your codebase.
Remove it or replace it with a secure variable or reference.
Finally, clean your version control history:
Permanently remove the sensitive data from your version control history to ensure it cannot be retrieved.
Last updated
Was this helpful?
