Unitech / Unitech/pm2

Twist cli report: .key and .pem files are being exposed

Open
#5,176 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

What's going wrong?

Twist cli detected a vulnerability in the CI pipeline where pm2 package is exposing some private keys.

Supporting information

/usr/local/lib/node_modules/pm2/node_modules/agent-base/test/ssl-cert-snakeoil.key, /usr/local/lib/node_modules/pm2/node_modules/get-uri/test/server.key, /usr/local/lib/node_modules/pm2/node_modules/http-proxy-agent/test/ssl-cert-snakeoil.key, /usr/local/lib/node_modules/pm2/node_modules/nssocket/test/fixtures/ryans-key.pem, /usr/local/lib/node_modules/pm2/node_modules/pac-proxy-agent/test/ssl-cert-snakeoil.key, /usr/local/lib/node_modules/pm2/node_modules/proxy-agent/test/ssl-cert-snakeoil.key, /usr/local/lib/node_modules/pm2/node_modules/socks-proxy-agent/node_modules/agent-base/test/ssl-cert-snakeoil.key, /usr/local/lib/node_modules/pm2/node_modules/socks-proxy-agent/test/ssl-cert-snakeoil.key

Contributor guide

Open the contributing guide

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.

Research direction

Start by inspecting the listed pm2 dependency paths, especially the test and fixtures directories containing the .key and .pem files, and determine how they are included in the CI or published package. Reproduce the Twist CLI finding if possible; done means the reported private-key exposure is removed or otherwise no longer detected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
ci-cd, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.