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

feat.: Adding alternate userProfile. #37

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

raphabot-snyk
Copy link
Owner

This PR adds a new, alternate, userProfile called userProfile.js.

@raphabot-snyk
Copy link
Owner Author

raphabot-snyk commented Sep 17, 2024

Snyk has found 1 issues.

Icon Severity Issues
Critical 0
High 0
Medium 1
Low 0

security/snyk check is completed. No issues were found. (View Details)

license/snyk check is completed. No issues were found. (View Details)

code/snyk check is completed. Snyk found 1 issues. (View Details)

const themes = require('../views/themes/themes').themes

module.exports = function getUserProfile () {
return (req, res, next) => {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  Allocation of Resources Without Limits or Throttling

This endpoint handler performs a file system operation and does not use a rate-limiting mechanism. It may enable the attackers to perform Denial-of-service attacks. Consider using a rate-limiting middleware such as express-limit.

CWE-770 | Priority score 522 | Line 16

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.

1 participant