Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hard-coded guest user and guest password #774

Open
amitagarwal-dev opened this issue Nov 19, 2024 · 1 comment
Open

hard-coded guest user and guest password #774

amitagarwal-dev opened this issue Nov 19, 2024 · 1 comment

Comments

@amitagarwal-dev
Copy link

Hi,

A harcoded guest user and guest password is present inside the amqplib node_module which is reported in the vapt report created by our client.
Is there any chance of removing it from the upcoming releases?

path: node_modules/amqplib/lib/connect.js:80
"version": "0.10.4",

function credentialsFromUrl(parts) {
  var user = 'guest', passwd = 'guest';
  if (parts.username != '' || parts.password != '') {
    user = (parts.username) ? unescape(parts.username) : '';
    passwd = (parts.password) ? unescape(parts.password) : '';
  }
  return credentials.plain(user, passwd);
}
@cressie176
Copy link
Collaborator

Hi @amitagarwal-dev,

Thanks for opening this issue. This is the default username and password for RabbitMQ. It is published publicly on the RabbitMQ Website and by default only usable on connections from localhost. Including it in the amqplib codebase does not introduce a security issue but removing it would be a breaking change. It is therefore not something I would consider doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants