Keep rejected BASE credentials out of Ego eval logs

Open Beginner friendly
#1,507 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, javascript, node.js
Domain
security, testing

Research direction

Read tools/eval/lobby-flavio-ego.mjs, especially the BASE parsing and credential validation at lines 12 and 21. Add regression coverage that runs the script with sentinel values in malformed and credentialed URLs, then check that neither stdout nor stderr contains the sentinel. The issue is done when both error paths use fixed or sanitized messages and the tests pass.

Written by the indexing model from the issue text.

Description

harness seguranca target:staging

Severity: low (eval/CI credential disclosure).

The copy merged to staging in b03a6c39e536826dcf9fa8206da1b0a659c75261 reflects the raw BASE value into process errors:

  • tools/eval/lobby-flavio-ego.mjs:12 constructs new URL(BASE) before validation. Node's ERR_INVALID_URL includes the raw input for malformed URLs.
  • tools/eval/lobby-flavio-ego.mjs:21 rejects URL credentials but interpolates the original BASE into the thrown error, copying the rejected username/password into stderr and CI logs.

I reproduced both paths at b03a6c3 in child processes with a fake sentinel. The credentialed-URL and malformed-URL cases both exited 1, and captured output contained the sentinel in each case. No credential or sentinel value is included here.

Please catch parsing failures and use fixed error messages that never include the raw BASE. If an origin is useful diagnostically, log only a sanitized origin with credentials removed. Add regression coverage that spawns the script with a sentinel in both inputs and asserts its absence from stdout/stderr.

The same code was flagged on the unmerged #1441 head in this review; this issue tracks the copy already present on staging.

Dominant language
JavaScript
Stars
262
Forks
42
Avg merge
1d 41m
Merged PRs (30d)
212

Getting set up

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 corosolto/client

All issues in corosolto/client

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.