Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Sanitize innert document #12524

Closed
wants to merge 10 commits into from

Conversation

IgorMinar
Copy link
Contributor

No description provided.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@IgorMinar
Copy link
Contributor Author

hmm.. tests are failing because different browsers enumerate over the list of tags in a different order which results in non-deterministic. I'll either have to sort the attribute list or change the matcher to account for this.

@lgalfaso
Copy link
Contributor

lgalfaso commented Aug 8, 2015

@IgorMinar even after sorting the attributes, there are two test failures with IE9

IE 9.0.0 (Windows 7) HTML htmlParser should throw badparse if text content contains "<" followed by an ASCII letter without matching ">" FAILED
    Expected { tag : 'a', attrs : { body : '', bar< : '' } } to equal undefined.
IE 9.0.0 (Windows 7) HTML htmlParser should parse empty value attribute of node FAILED
    Expected null to equal { tag : 'option', attrs : { selected : '', value : '' } }.

I think it should be possible to fix the second issue with something like https://github.com/angular/angular.js/blob/master/src/jqLite.js#L159
The first issue, I am not sure on how to work around it

@IgorMinar IgorMinar force-pushed the sanitize-innertDocument branch from e403d80 to f128934 Compare August 11, 2015 22:05
@IgorMinar IgorMinar force-pushed the sanitize-innertDocument branch from f128934 to d99fb5a Compare August 11, 2015 22:06
@IgorMinar IgorMinar force-pushed the sanitize-innertDocument branch 5 times, most recently from 1520d90 to d24463f Compare August 12, 2015 14:10
* Enables a subset of svg to be supported by the sanitizer.
*
* **Warning**: By enabling this setting without taking other precautions, you might expose your
* application to click-hijacking attacks. In these attacks, a sanitize svg could be positioned
Copy link
Member

Choose a reason for hiding this comment

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

sanitize svg ??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@IgorMinar IgorMinar force-pushed the sanitize-innertDocument branch 6 times, most recently from 4d3a2a4 to 801fb7a Compare September 10, 2015 00:02
benjaminParisel pushed a commit to bonitasoft/angular.js that referenced this pull request Jan 24, 2023
julienmege added a commit to bonitasoft/angular.js that referenced this pull request Feb 6, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 6, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 20, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 20, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 20, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 20, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 21, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 21, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 21, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 21, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 21, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 21, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 24, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 24, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 24, 2023
julienmege pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 24, 2023
DumitruCorini pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 24, 2023
julienmege added a commit to bonitasoft/angular.js that referenced this pull request Feb 28, 2023
fix($compile): properly sanitize xlink:href attribute interoplation

Closes angular#12524

(cherry picked from commit f33ce17)

Co-authored-by: Igor Minar <igor@angularjs.org>
Co-authored-by: Dumitru Corini <dumitru.corini@gmail.com>
taki-eddine-rahal pushed a commit to bonitasoft/angular.js that referenced this pull request Feb 28, 2023
fix: grunt package is working

fix(angular.merge): do not merge __proto__ property

Report from
* angular@c0498d4
* angular@add78e6

fix($compile): properly sanitize xlink:href attribute interoplation

Closes angular#12524

(cherry picked from commit f33ce17)

Build version on windows

Build version on windows

Update ReadMe for Windows environment

Update ReadMe

Fix Unit Test

Fix Unit Test

Fix Unit Test

Fix Test e2e

Fix Test e2e

Fix Test e2e

Fix Test e2e
taki-eddine-rahal pushed a commit to bonitasoft/angular.js that referenced this pull request Mar 1, 2023
fix: grunt package is working

fix(angular.merge): do not merge __proto__ property

Report from
* angular@c0498d4
* angular@add78e6

fix($compile): properly sanitize xlink:href attribute interoplation

Closes angular#12524

(cherry picked from commit f33ce17)

Build version on windows

Build version on windows

Update ReadMe for Windows environment

Update ReadMe

Fix Unit Test

Fix Unit Test

Fix Unit Test

Fix Test e2e

Fix Test e2e

Fix Test e2e

Fix Test e2e

Fix npm:angular:20150909

Test and Validation CVE npm:angular:20150909

fix($sanitize): disallow unsafe svg animation tags and add mXSS protection
taki-eddine-rahal pushed a commit to bonitasoft/angular.js that referenced this pull request Mar 1, 2023
fix: grunt package is working

fix(angular.merge): do not merge __proto__ property

Report from
* angular@c0498d4
* angular@add78e6

fix($compile): properly sanitize xlink:href attribute interoplation

Closes angular#12524

(cherry picked from commit f33ce17)

Build version on windows

Build version on windows

Update ReadMe for Windows environment

Update ReadMe

Fix Unit Test

Fix Unit Test

Fix Unit Test

Fix Test e2e

Fix Test e2e

Fix Test e2e

Fix Test e2e

Fix npm:angular:20150909

Test and Validation CVE npm:angular:20150909

fix($sanitize): disallow unsafe svg animation tags and add mXSS protection
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants