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

[REF] Remove xssString as it is providing a false sense of security #19045

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

seamuslee001
Copy link
Contributor

Overview

This removes the xssString function which only partially captures possible xss and is only really providing a false sense of security

Before

Function Present

After

Function Gone

ping @colemanw @eileenmcnaughton @totten @pfigel

@civibot
Copy link

civibot bot commented Nov 25, 2020

(Standard links)

@colemanw
Copy link
Member

@seamuslee001 I agree with the concept. Test failures seem to indicate the rule is still in use by many forms though.

@seamuslee001
Copy link
Contributor Author

@colemanw I think that is coming from needing civicrm/civicrm-packages#312 to be merged first then

@totten
Copy link
Member

totten commented Nov 25, 2020

It's a little surprising, but - fortunately - xssString doesn't appear to be used in universe. So I guess we don't need to think to hard about special/extension-specific impacts. 🎉

At a macro level, this also seems a bit redundant with PHP IDS (if you assume that PHP IDS is wired-up correctly to the inputs). Relevant factoids:

For me, I guess the main question would be -- if you took the list of xssString use-cases/fields and overlayed with the list of PHP IDS use-cases/fields, would the disjoint section be problematic?

@seamuslee001
Copy link
Contributor Author

@totten I don't think so, I think having this function may lead to people to potentially try and use it when it doesn't work properly so I think we should get it out given its not really providing a decent defence

@seamuslee001
Copy link
Contributor Author

Jenkins re test this please,

I'm going to add merge on pass based on Coleman and Tim's comments and based on Coleman putting MOP on the packages PR

@seamuslee001 seamuslee001 merged commit ab8c4a3 into civicrm:master Nov 26, 2020
@seamuslee001 seamuslee001 deleted the remove_xss_function branch November 26, 2020 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants