-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/wallet app #22
Conversation
Date: Sun Apr 7 13:29:56 2024 +0530
|
||
const routes = app => { | ||
app.use(express.json({limit: '16kb'})); | ||
app.use(cookieParser()); |
Check failure
Code scanning / CodeQL
Missing CSRF middleware High
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
This cookie middleware is serving a
request handler
const LocalStorage = { | ||
get(key) { | ||
const item = localStorage.getItem(key); | ||
return item ? JSON.parse(item) : 'null'; |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
authorization header
const {filter = '', page = 1, limit = 10} = req.query; | ||
|
||
// This regex matches each word in a name starting with "filter". | ||
const regex = new RegExp(`\\b${filter}`, 'i'); |
Check failure
Code scanning / CodeQL
Regular expression injection High
user-provided value
const recipientWallet = await Wallet.findOne({ | ||
userId: recipientId, | ||
}).session(session); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
).session(session); | ||
|
||
await Wallet.updateOne( | ||
{userId: recipientId}, |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
const {name, email, password} = req.body; | ||
|
||
let user = await User.findOne({email}); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
const {email, password} = req.body; | ||
|
||
const user = await User.findOne({email}); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
Week-8 MERN + Tailwind Project