-
Notifications
You must be signed in to change notification settings - Fork 162
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
RHPAM-4719: Persistent Cross-Site Scripting (XSS) #1393
Conversation
@paulovmr @adrielparedes @tomasdavidorg Hello there, submitting early version of the PR for testing purposes, I am working on adding some tests in the meantime. Initial manual testing looks to be working well. |
jenkins execute compile downstream build |
jenkins do fdb |
jenkins do cdb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me when the build is green.
Logging the discussions here: |
fb0c235
to
72ea5ed
Compare
@tomasdavidorg @paulovmr added the Still ready for some additional tests |
jenkins do fdb |
1 similar comment
jenkins do fdb |
@tomasdavidorg @paulovmr updated let me know |
jenkins test this |
jenkins do fdb |
1 similar comment
jenkins do fdb |
jenkins do fdb |
jenkins do fdb |
1 similar comment
jenkins do fdb |
Fixes RHPAM-4716 & RHPAM-4717 by using StringEscapeUtils:: escapeHtml4() method in ProjectResource and by implementing helper method, using escapeHtml4(), to escape conrtributors names in OrganizationalUnitServiceImpl
Refactors unit tests to use same methods as in main classes Add some unit tests
Moves methods for escaping out of services
Kudos, SonarCloud Quality Gate passed! |
jenkins do cdb |
* RHPAM-4719: Persistent Cross-Site Scripting (XSS) Fixes RHPAM-4716 & RHPAM-4717 by using StringEscapeUtils:: escapeHtml4() method in ProjectResource and by implementing helper method, using escapeHtml4(), to escape conrtributors names in OrganizationalUnitServiceImpl * RHPAM-4719: Add unit test cases for XSS data * RHPAM-4719: Replace single qoute with nothing * RHPAM-4917: Expand escaping to RepositoryService Refactors unit tests to use same methods as in main classes Add some unit tests * Fix code duplication Moves methods for escaping out of services * Increase coverage and remove code smells
* RHPAM-4719: Persistent Cross-Site Scripting (XSS) Fixes RHPAM-4716 & RHPAM-4717 by using StringEscapeUtils:: escapeHtml4() method in ProjectResource and by implementing helper method, using escapeHtml4(), to escape conrtributors names in OrganizationalUnitServiceImpl * RHPAM-4719: Add unit test cases for XSS data * RHPAM-4719: Replace single qoute with nothing * RHPAM-4917: Expand escaping to RepositoryService Refactors unit tests to use same methods as in main classes Add some unit tests * Fix code duplication Moves methods for escaping out of services * Increase coverage and remove code smells
* RHPAM-4719: Persistent Cross-Site Scripting (XSS) Fixes RHPAM-4716 & RHPAM-4717 by using StringEscapeUtils:: escapeHtml4() method in ProjectResource and by implementing helper method, using escapeHtml4(), to escape conrtributors names in OrganizationalUnitServiceImpl * RHPAM-4719: Add unit test cases for XSS data * RHPAM-4719: Replace single qoute with nothing * RHPAM-4917: Expand escaping to RepositoryService Refactors unit tests to use same methods as in main classes Add some unit tests * Fix code duplication Moves methods for escaping out of services * Increase coverage and remove code smells Co-authored-by: Dominik Hanák <[email protected]>
* RHPAM-4719: Persistent Cross-Site Scripting (XSS) Fixes RHPAM-4716 & RHPAM-4717 by using StringEscapeUtils:: escapeHtml4() method in ProjectResource and by implementing helper method, using escapeHtml4(), to escape conrtributors names in OrganizationalUnitServiceImpl * RHPAM-4719: Add unit test cases for XSS data * RHPAM-4719: Replace single qoute with nothing * RHPAM-4917: Expand escaping to RepositoryService Refactors unit tests to use same methods as in main classes Add some unit tests * Fix code duplication Moves methods for escaping out of services * Increase coverage and remove code smells Co-authored-by: Dominik Hanák <[email protected]>
Fixes RHPAM-4716 & RHPAM-4717 by using
StringEscapeUtils:: escapeHtml4()
method in
ProjectResource
and by implementing helper method, usingescapeHtml4()
, to escape contributors names inOrganizationalUnitServiceImpl
JIRA: RHPAM-4719
Resulted contributor page after calling update with XSS valid name.