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

Test code review threads #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ferreiratiago
Copy link

No description provided.

@ferreiratiago
Copy link
Author

ferreiratiago commented Aug 16, 2024

Snyk has found 2 issues.

Icon Severity Issues
Critical 0
High 1
Medium 1
Low 0

security/snyk check is completed. No issues were found. (View Details)

code/snyk check is completed. Snyk found 2 issues. (View Details)

Copy link
Author

@ferreiratiago ferreiratiago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snyk found 1 issues

@@ -29,6 +29,8 @@ var app = express();
var routes = require('./routes');
var routesUsers = require('./routes/users.js')

const password_token = 'super-secret-f8ed84e8f41e4146403dd4a6bbcea5e418d24i7';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  Use of Hardcoded Credentials

Do not hardcode passwords in code. Found hardcoded password used in password_token.

CWE-798 | CWE-259 | Priority score 562 | Line 32

Copy link
Author

@ferreiratiago ferreiratiago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snyk found 1 issues

@@ -68,6 +70,8 @@ app.put('/chat', routes.chat.add);
app.delete('/chat', routes.chat.delete);
app.use('/users', routesUsers)

var token = 'SECRET_TOKEN_f8ed84e8f41e4146403dd4a6bbcea5e418d23a9';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  Hardcoded Secret

Avoid hardcoding values that are meant to be secret. Found a hardcoded string used in here.

CWE-547 | Priority score 812 | Line 73

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

Successfully merging this pull request may close these issues.

1 participant