Midtrans API Key
ID |
midtrans_key |
Severity |
high |
Vendor |
Midtrans |
Family |
API Token |
Description
Midtrans provides APIs for accessing payment gateway services. The Midtrans Key is used to authenticate API requests to process payments and access transaction data.
Security
Any hardcoded Midtrans Key is a potential secret reported by this detector.
Accidentally checking-in the key to source control repositories could compromise your Midtrans account, potentially leading to unauthorized access to payment processing capabilities and sensitive transaction data.
Mitigation / Fix
-
Remove the API Key from the source code or committed configuration file.
-
Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). Go to your settings page in the Midtrans dashboard to revoke the key.
-
If under a git repository, you may remove unwanted files from the repository history using tools like git filter-repo or BFG Repo-Cleaner. You may follow the procedure listed here for GitHub.
You should consider any sensitive data in commits with secrets as compromised. |
Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.