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

Update Tags_Resource_V2.postman_collection.json #27052

Closed
wants to merge 5 commits into from

Conversation

rashik1144
Copy link
Contributor

@rashik1144 rashik1144 commented Dec 19, 2023

Added the following postman test:

  • XSS injection test in the 'save-tags' API
image

Copy link

Quality Gate passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No Coverage information No data about Coverage
No Duplication information No data about Duplication

See analysis details on SonarQube

@rashik1144
Copy link
Contributor Author

@bryanboza The status code is still 200 when XSS is present. We may need to solve this as this shouldn't be functionally correct. Tag is not admin only feature.

@mbiuki
Copy link
Contributor

mbiuki commented Jan 23, 2024

@bryanboza - is this ready to merge?

Copy link
Contributor

@nollymar nollymar left a comment

Choose a reason for hiding this comment

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

Please fix the broken test

@mbiuki
Copy link
Contributor

mbiuki commented Feb 5, 2024

@rashik1144 - can you please address the comment?

@rashik1144
Copy link
Contributor Author

rashik1144 commented Feb 5, 2024

@mbiuki @nollymar This is actually an issue. It is giving 200 error even when there is XSS attack. Tag is not an admin only feature. We must first restrict the XSS characters in tag to make this test pass. Tag do not have regex option like in others:
image

@mbiuki
Copy link
Contributor

mbiuki commented Mar 20, 2024

We are not going to fix XSS issues of the same nature. Please close this pull request.

@mbiuki mbiuki closed this Mar 20, 2024
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

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.

Tags_Resource_V2.postman_collection.json Tags_Resource_V2.postman_collection.json
5 participants