aquasecurity / aquasecurity/cloudsploit
Issue for plugin kmsDefaultKeyUsage and instanceVcpusLimit
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 751
- Avg merge
- 11d 9h
- Merged PRs (30d)
- 3
Description
region is cn-north-1
```
../scans/plugins/aws/kms/kmsDefaultKeyUsage.js:244
if (region in regions.efs) {
^
TypeError: Cannot use 'in' operator to search for 'cn-north-1' in undefined
at /home/xxxx/softwares/scans/plugins/aws/kms/kmsDefaultKeyUsage.js:244:24
at /home/xxxx/softwares/scans/node_modules/async/dist/async.js:3110:16
at eachOfArrayLike (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:1069:9)
at eachOf (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:1117:5)
at Object.eachLimit (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:3172:5)
at Object.run (/home/xxxx/softwares/scans/plugins/aws/kms/kmsDefaultKeyUsage.js:31:15)
at /home/xxxx/softwares/scans/engine.js:164:24
at /home/xxxx/softwares/scans/node_modules/async/dist/async.js:3682:9
at replenish (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:1011:17)
at iterateeCallback (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:995:17)
/home/xxxx/softwares/scans/plugins/aws/ec2/instanceVcpusLimit.js:232
if (regions.servicequotas.includes(region)) {
^
TypeError: Cannot read property 'includes' of undefined
at /home/xxxx/softwares/scans/plugins/aws/ec2/instanceVcpusLimit.js:232:43
at /home/xxxx/softwares/scans/node_modules/async/dist/async.js:3110:16
at eachOfArrayLike (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:1069:9)
at eachOf (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:1117:5)
at Object.eachLimit (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:3172:5)
at Object.run (/home/xxxx/softwares/scans/plugins/aws/ec2/instanceVcpusLimit.js:218:15)
at /home/xxxx/softwares/scans/engine.js:164:24
at /home/xxxx/softwares/scans/node_modules/async/dist/async.js:3682:9
at replenish (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:1011:17)
at iterateeCallback (/home/xxxx/softwares/scans/node_modules/async/dist/async.js:995:17)
```
Contributor guide
Research direction
Reproduce the scan for region cn-north-1 and start at plugins/aws/kms/kmsDefaultKeyUsage.js:244 and plugins/aws/ec2/instanceVcpusLimit.js:232. Trace how regions.efs and regions.servicequotas are populated, then verify the plugins complete without TypeErrors for that region.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100