security: API profiles endpoint leaks FTP/S3/GDrive credentials #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: HIGH
api/BackupsController::profiles()returns the entire profile object includingftp_password,s3_secret_key,gdrive_client_secret,gdrive_refresh_token, andencryption_passwordin the JSON API response.Any authenticated API consumer with
core.managecan read all stored credentials.Fix
Unset sensitive fields before serialization, or create a sanitized DTO with only safe fields.
File
api/src/Controller/BackupsController.php:124-130