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

Resolves #962 #728 removed decodeEntities and escape calls #1148

Merged
merged 3 commits into from
Nov 28, 2023
Merged

Conversation

jdaigneau5
Copy link
Collaborator

Closes Issues #728 and #962

Summary

Removed calls to escape on routes, because new middleware was added that prevents certain characters from being submitted that could potentially cause XSS. decodeEntities was also removed because it also potentially enabled XSS.

Important Changes

cve.controller/index.js, cve-id.controller/index.js, org.controller/index.js

  • removed calls to escape()

org.controller.js

  • Removed calls to decodeEntities

Testing

Steps to manually test updated functionality, if possible

  • 1) Run npm run test to run all unit and integration tests

Copy link
Collaborator

@david-rocca david-rocca left a comment

Choose a reason for hiding this comment

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

LGTM

@david-rocca david-rocca merged commit f0336b9 into dev Nov 28, 2023
9 checks passed
@david-rocca david-rocca deleted the jd-962 branch November 28, 2023 15:58
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.

2 participants