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

Current balance #325

Closed
wants to merge 4 commits into from
Closed

Current balance #325

wants to merge 4 commits into from

Conversation

waelhanfi04
Copy link
Contributor

No description provided.

const response = await axios(options);
const expandedUrl = response.request.res.responseUrl || shortUrl;
const parsedUrl = new URL(expandedUrl);
const response = await axios(options)

Check failure

Code scanning / CodeQL

Server-side request forgery

The [URL](1) of this request depends on a [user-provided value](2).
Comment on lines +1106 to +1108
let campaignLink = await CampaignLink.findOne({
_id: idLink,
}).lean()

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query object depends on a [user-provided value](1).
)
let updatedFUnds = { ...copyStats }

let cmpLink = await CampaignLink.findOne({ id_prom: idProm }).lean()

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query object depends on a [user-provided value](1).
: new Big(cmpLink.payedAmount).plus(new Big(amount)).toFixed()
updatedFUnds.type = 'already_recovered'
await CampaignLink.updateOne(
{ id_prom: idProm },

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query object depends on a [user-provided value](1).
const ipfs = await ipfsConnect()

// READ FILE
const x = fs.readFileSync(req.file.path)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
let result = await ipfs.add({ content: buffer })

// REMOVE FILE FROM UPLOADS DIR
fs.unlinkSync('uploads/' + req.file.filename)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
@waelhanfi04 waelhanfi04 linked an issue Sep 6, 2023 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect display/current balance/old wallet
3 participants