From 74faaf3d221fae0fa272dd0fc09d2d01a26e8d92 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 9 Dec 2023 10:05:50 +0000 Subject: [PATCH] Update gh-pages --- advisories/RUSTSEC-2023-0073.html | 297 +++++++++++++++++++++ advisories/index.html | 19 ++ categories/denial-of-service.html | 19 ++ feed.xml | 430 +++++++++++++++++------------- js/index.js | 4 +- keywords/candid.html | 90 +++++++ keywords/canister.html | 90 +++++++ keywords/icp.html | 90 +++++++ keywords/index.html | 15 ++ packages/candid.html | 90 +++++++ packages/index.html | 6 + 11 files changed, 959 insertions(+), 191 deletions(-) create mode 100644 advisories/RUSTSEC-2023-0073.html create mode 100644 keywords/candid.html create mode 100644 keywords/canister.html create mode 100644 keywords/icp.html create mode 100644 packages/candid.html diff --git a/advisories/RUSTSEC-2023-0073.html b/advisories/RUSTSEC-2023-0073.html new file mode 100644 index 000000000..6f6ebff72 --- /dev/null +++ b/advisories/RUSTSEC-2023-0073.html @@ -0,0 +1,297 @@ + + + + + + + +RUSTSEC-2023-0073: candid: Infinite decoding loop through specially crafted payload › RustSec Advisory Database + + + + + + + + + +
+
+

+ + + +
+ +
+ +
+
+ + + History ⋅ + Edit ⋅ + JSON (OSV) + + + +
+

+ + RUSTSEC-2023-0073 + +

+

Infinite decoding loop through specially crafted payload

+
+
+ + + +
+
Reported
+
+ +
+ +
Issued
+
+ + +
+ +
Package
+
+ + + candid + (crates.io) + + +
+ +
Type
+
+ + Vulnerability + +
+ + +
Categories
+
+ +
+ + + +
Keywords
+
+ + #candid + + #canister + + #icp + +
+ + + +
Aliases
+
+ +
+ + + +
References
+
+ +
+ + + + + +
CVSS Score
+
7.5 + HIGH +
+ +
CVSS Details
+
+
+ +
Attack vector
Network
+ + + +
Attack complexity
Low + + + +
Privileges required
None
+ + + +
User interaction
None
+ + + +
Scope
Unchanged
+ + + +
Confidentiality
None
+ + + +
Integrity
None
+ + + +
Availability
High
+ +
+
+ +
CVSS Vector
+
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
+ + + +
Patched
+
+ +
    + +
  • >=0.9.10
  • + +
+ +
+ + +
Unaffected
+
+
    + +
  • <0.9.0
  • + +
+
+ + + + + + + +
+ + + +
+
Affected Functions
+
Version
+ +
candid::Decode
+
+
    + +
  • >=0.9.0, <0.9.10
  • + +
+
+ +
+ + + + +

Description

+

The Candid library causes a Denial of Service while parsing a specially crafted payload with empty data type. For example, if the payload is record { * ; empty } and the canister interface expects record { * } then the rust candid decoder treats empty as an extra field required by the type. The problem with type empty is that the candid rust library wrongly categorizes empty as a recoverable error when skipping the field and thus causing an infinite decoding loop.

+

Canisters using affected versions of candid are exposed to denial of service by causing the decoding to run indefinitely until the canister traps due to reaching maximum instruction limit per execution round. Repeated exposure to the payload will result in degraded performance of the canister.

+

For asset canister users, dfx versions >= 0.14.4 to <= 0.15.2-beta.0 ships asset canister with an affected version of candid.

+

Unaffected

+
    +
  • Rust canisters using candid < 0.9.0 or >= 0.9.10
  • +
  • Rust canister interfaces of type other than record { * }
  • +
  • Motoko based canisters
  • +
  • dfx (for asset canister) <= 0.14.3 or >= 0.15.2
  • +
+

References

+ + + +

Advisory available under CC0-1.0 + license. + + +

+
+
diff --git a/advisories/index.html b/advisories/index.html index e7c1a86da..83792123b 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -64,6 +64,25 @@