[Security] Your MiniMax API key was committed to this repo

Open
#427 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
security

Research direction

Start by inspecting the referenced commit and src/messages.ts to verify the exposed MiniMax key, then review the MiniMax dashboard and usage logs. Coordinate key revocation and replacement, remove the key from the file and git history, and update .gitignore as described. Done means the exposed credential is no longer usable or present in repository history.

Written by the indexing model from the issue text.

Description

Hey! Just a heads-up -- I ran a scan and it looks like an API key got committed to this repo, and it's still active.

Detail Value
Provider MiniMax
File src/messages.ts
Source https://github.com/MetaMask/providers/blob/4ac0b3e2df7de682a95d50e3429dadb0995862cf/src/messages.ts
What's the risk?

The key is still live -- anyone who comes across it can use it, burning through your credits or quota.

What to do:
  1. Revoke the key in your MiniMax dashboard
  2. Generate a new key and swap it in
  3. Delete the key from the committed file and add .env to .gitignore
  4. Check your MiniMax usage logs for anything suspicious
  5. Scrub the key from git history with git filter-branch or BFG

Once you've sorted it out, just close this issue.


This is a free public-service scan. If it helped, you can buy me a coffee at https://ko-fi.com/cheeseup (no pressure at all).

Dominant language
TypeScript
Stars
268
Forks
130
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MetaMask/providers

All issues in MetaMask/providers

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.