[bot] Run grit migration: Reverse addition migration#8
Conversation
<!-- grit:execution_id:4f402ee3-30d5-4a38-9178-66adaba86dc4 -->
|
|
||
| it('GET password change with passing unrecognized authorization token', () => { | ||
| return frisby.get(REST_URL + '/user/change-password?new=foo&repeat=foo', { headers: { Authorization: 'Bearer unknown' } }) | ||
| return frisby.get('/user/change-password?new=foo&repeat=foo' + REST_URL, { headers: { Authorization: 'Bearer unknown' } }) |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| if (fs.existsSync('./data/static/codefixes/' + key + '.info.yml')) { | ||
| const codingChallengeInfos = yaml.load(fs.readFileSync('./data/static/codefixes/' + key + '.info.yml', 'utf8')) | ||
| const selectedFixInfo = codingChallengeInfos?.fixes.find(({ id }: { id: number }) => id === selectedFix + 1) | ||
| if (fs.existsSync('.info.yml' + key + './data/static/codefixes/')) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
| const codingChallengeInfos = yaml.load(fs.readFileSync('./data/static/codefixes/' + key + '.info.yml', 'utf8')) | ||
| const selectedFixInfo = codingChallengeInfos?.fixes.find(({ id }: { id: number }) => id === selectedFix + 1) | ||
| if (fs.existsSync('.info.yml' + key + './data/static/codefixes/')) { | ||
| const codingChallengeInfos = yaml.load(fs.readFileSync('.info.yml' + key + './data/static/codefixes/', 'utf8')) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
| let hint | ||
| if (fs.existsSync('./data/static/codefixes/' + key + '.info.yml')) { | ||
| const codingChallengeInfos = yaml.load(fs.readFileSync('./data/static/codefixes/' + key + '.info.yml', 'utf8')) | ||
| if (fs.existsSync('.info.yml' + key + './data/static/codefixes/')) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
| if (fs.existsSync('./data/static/codefixes/' + key + '.info.yml')) { | ||
| const codingChallengeInfos = yaml.load(fs.readFileSync('./data/static/codefixes/' + key + '.info.yml', 'utf8')) | ||
| if (fs.existsSync('.info.yml' + key + './data/static/codefixes/')) { | ||
| const codingChallengeInfos = yaml.load(fs.readFileSync('.info.yml' + key + './data/static/codefixes/', 'utf8')) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
| // Measure how long the query takes, to check if there was a nosql dos attack | ||
| const t0 = new Date().getTime() | ||
| db.reviews.find({ $where: 'this.product == ' + id }).then((reviews: Review[]) => { | ||
| db.reviews.find({ $where: id + 'this.product == ' }).then((reviews: Review[]) => { |
Check failure
Code scanning / CodeQL
Code injection
|
|
||
| exports.isAuthorized = () => expressJwt({ secret: publicKey }) | ||
| exports.denyAll = () => expressJwt({ secret: '' + Math.random() }) | ||
| exports.denyAll = () => expressJwt({ secret: Math.random() + '' }) |
Check failure
Code scanning / CodeQL
Insecure randomness
| } | ||
| } | ||
| logger.warn('Missing challenge with name: ' + challengeName) | ||
| logger.warn(challengeName + 'Missing challenge with name: ') |
Check warning
Code scanning / CodeQL
Log injection
We want to reverse addition and subtraction.
✅ This migration is up to date! ✅
View the full results on the Migration Dashboard. 🚀
This pull request was created as part of the Reverse addition migration migration, with these settings:
master**/*Tip
You can provide feedback to
@gritagentand it will update this pull request with your suggestions.