-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
⛔ Snyk has found 2 issues.
✅ security/snyk check is completed. No issues were found. (View Details) ⛔ code/snyk check is completed. Snyk found |
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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.
No description provided.