diff options
| author | Misko Hevery | 2010-10-18 21:20:47 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-10-26 13:41:07 -0700 |
| commit | 4fdab3765919e9fffc6d2f84e74754b1012997be (patch) | |
| tree | d20dae529b35b0474912fea7765c5ca016a1c015 /CHANGELOG.md | |
| parent | 841013a4c4d25acf6fc9ff40e449c3d0a4b82ec3 (diff) | |
| download | angular.js-4fdab3765919e9fffc6d2f84e74754b1012997be.tar.bz2 | |
create HTML sanitizer to allow inclusion of untrusted HTML in safe manner.
Sanitization works in two phases:
1) We parse the HTML into sax-like events (start, end, chars).
HTML parsing is very complex, and so it may very well be that what
most browser consider valid HTML may not pares properly here,
but we do best effort. We treat this parser as untrusted.
2) We have safe sanitizeWriter which treats its input (start, end, chars)
as untrusted content and escapes everything. It only allows elements
in the whitelist and only allows attributes which are whitelisted.
Any attribute value must not start with 'javascript:'. This check
is performed after escaping for entity (&xAB; etc..) and ignoring
any whitespace.
- Correct linky filter to use safeHtmlWriter
- Correct html filter to use safeHtmlWriter
Close #33; Close #34
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 963deb34..96b9ed2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,13 @@ ### Breaking changes - $cookieStore service is not globally published any more, if you use it, you must request it via $inject as any other non-global service - +- html filter now sanitizes html content for XSS attacks which may result in different behavior # <angular/> 0.9.0 dragon-breath (2010-10-20) # ### Security -- angular.fromJson not safei (issue #57) +- angular.fromJson not safer (issue #57) - readString consumes invalid escapes (issue #56) - use new Function instead of eval (issue #52) |
