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

PR Test 2 #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app.js
Copy link
Author

@ferreiratiago ferreiratiago Jul 18, 2024

Choose a reason for hiding this comment

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

Vulnerability D on line 42

Copy link
Author

@ferreiratiago ferreiratiago Jul 19, 2024

Choose a reason for hiding this comment

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

Vulnerability F on line 69

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// mongoose setup
require('./mongoose-db');
require('./typeorm-db')
require('./typeorm-db');
Copy link
Author

@ferreiratiago ferreiratiago Jul 15, 2024

Choose a reason for hiding this comment

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

Vulnerability B (✅ Resolved on commit bf4b849)

Copy link
Author

Choose a reason for hiding this comment

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

Reply


var st = require('st');
var crypto = require('crypto');
Expand Down Expand Up @@ -71,6 +71,8 @@ app.use('/users', routesUsers)
// Static
app.use(st({ path: './public', url: '/public' }));

console.log('test');
Copy link
Author

@ferreiratiago ferreiratiago Jul 18, 2024

Choose a reason for hiding this comment

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

Vulnerability B


// Add the option to output (sanitized!) markdown
marked.setOptions({ sanitize: true });
app.locals.marked = marked;
Expand All @@ -80,7 +82,7 @@ if (app.get('env') == 'development') {
app.use(errorHandler());
}

var token = 'SECRET_TOKEN_f8ed84e8f41e4146403dd4a6bbcea5e418d23a9';
var token = 'SECRET_TOKEN_f8ed84e8f41e4146403dd4a6bbcea5e418d23a9'; // inline
console.log('token: ' + token);

http.createServer(app).listen(app.get('port'), function () {
Expand Down