From 98ce99e34ca230167125969596e3674fa313cea4 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 19 Jan 2022 22:35:17 +0000 Subject: [PATCH] Update gh-pages --- advisories/RUSTSEC-2022-0003.html | 206 +++++++++++++++++++++ advisories/index.html | 22 +++ categories/format-injection.html | 22 +++ feed.xml | 297 +++++++++++++++++------------- keywords/html.html | 22 +++ keywords/xss.html | 22 +++ packages/ammonia.html | 22 +++ packages/index.html | 2 +- 8 files changed, 481 insertions(+), 134 deletions(-) create mode 100644 advisories/RUSTSEC-2022-0003.html diff --git a/advisories/RUSTSEC-2022-0003.html b/advisories/RUSTSEC-2022-0003.html new file mode 100644 index 000000000..9af483624 --- /dev/null +++ b/advisories/RUSTSEC-2022-0003.html @@ -0,0 +1,206 @@ + + + + + + + +RUSTSEC-2022-0003: ammonia: Space bug in `clean_text` › RustSec Advisory Database + + + + + + +
+

+ +
+ +
+
+ + + + History ⋅ + Edit + + + +
+

+ + + RUSTSEC-2022-0003 + +

+

Space bug in clean_text

+
+
+ + + + +
+
Issued
+
+ +
+ +
Package
+
+ + + + ammonia + (crates.io) + + +
+ +
Type
+
+ + + Vulnerability + +
+ + +
Categories
+
+ +
+ + + +
Keywords
+
+ + #html + + #xss + +
+ + + + + + +
Details
+
+ + https://github.com/rust-ammonia/ammonia/pull/147 + +
+ + + + + + + + + + +
Patched
+
+ + +
    + +
  • >=3.1.3
  • + +
+ +
+ + +
Unaffected
+
+
    + +
  • <3.0.0
  • + +
+
+ + + +
Keywords
+
+ + #html + + #xss + +
+ + + + + + + + + + +
+ + + + +
+
Affected Functions
+
Version
+ +
ammonia::clean_text
+
+
    + +
  • <=3.1.2
  • + +
+
+ +
+ + + +

Description

+

An incorrect mapping from HTML specification to ASCII codes was used. +Because HTML treats the Form Feed as whitespace, code like this has an injection bug:

+
let html = format!("<div title={}>", clean_text(user_supplied_string));
+
+

Applications are not affected if they quote their attributes, or if they don't use clean_text at all.

+ +
+
diff --git a/advisories/index.html b/advisories/index.html index a69378e02..4960774b6 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -53,6 +53,28 @@