-
Notifications
You must be signed in to change notification settings - Fork 13
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
Harvest #385
Harvest #385
Conversation
@@ -159,4 +163,10 @@ | |||
|
|||
router.post('/apply', verifySignatureMiddleware,externalApply) | |||
|
|||
router.post('/checkHarvest', verifySignatureMiddleware, checkHarvest) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
@@ -159,4 +163,10 @@ | |||
|
|||
router.post('/apply', verifySignatureMiddleware,externalApply) | |||
|
|||
router.post('/checkHarvest', verifySignatureMiddleware, checkHarvest) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
@@ -159,4 +163,10 @@ | |||
|
|||
router.post('/apply', verifySignatureMiddleware,externalApply) | |||
|
|||
router.post('/checkHarvest', verifySignatureMiddleware, checkHarvest) | |||
|
|||
router.post('/externalAnswer', verifySignatureMiddleware, externalAnswer) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
@@ -159,4 +163,10 @@ | |||
|
|||
router.post('/apply', verifySignatureMiddleware,externalApply) | |||
|
|||
router.post('/checkHarvest', verifySignatureMiddleware, checkHarvest) | |||
|
|||
router.post('/externalAnswer', verifySignatureMiddleware, externalAnswer) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
This route handler performs
a database access
router.post('/checkHarvest', verifySignatureMiddleware, checkHarvest) | ||
|
||
router.post('/externalAnswer', verifySignatureMiddleware, externalAnswer) | ||
router.post('/externalGains', verifySignatureMiddleware, externalGains) |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
|
||
var tronWeb | ||
await CampaignLink.updateOne( | ||
{ id_prom: req.body.idProm }, |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
var link = await CampaignLink.findOne({ | ||
id_prom: req.body.idProm, | ||
}).lean() |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
) | ||
let updatedFUnds = { ...req.body.data.data } | ||
|
||
let cmpLink = await CampaignLink.findOne({ id_prom: req.body.idProm }).lean() |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
: new Big(cmpLink.payedAmount).plus(new Big(amount)).toFixed() | ||
updatedFUnds.type = 'already_recovered' | ||
await CampaignLink.updateOne( | ||
{ id_prom: req.body.idProm }, |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
updatedFUnds.type = 'already_recovered' | ||
await CampaignLink.updateOne( | ||
{ id_prom: req.body.idProm }, | ||
{ $set: updatedFUnds } |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
No description provided.