NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Pub (Dart)

CVE-2024-48915: Agent Dart is missing certificate verification checks

highCVSS 4.0 7.6GHSA-fmj7-7gfw-64pg

Certificate verification (in lib/agent/certificate.dart) has been found to contain two issues: - During the delegation verification (in checkDelegation function) the canisterranges aren't verified. The impact of not checking the canisterranges is that a subnet can sign canister responses in behalf of another subnet. You have more details in the IC specification here.

Published Oct 15, 2024 · Updated Jan 23, 2025

Affected packages

agent_dart

Ecosystem
Pub (Dart)
Affected
<= 1.0.0-dev.28
Fixed in
1.0.0-dev.29

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Certificate verification (in lib/agent/certificate.dart) has been found to contain two issues:

  • During the delegation verification (in _checkDelegation function) the canister_ranges aren't verified. The impact of not checking the canister_ranges is that a subnet can sign canister responses in behalf of another subnet. You have more details in the IC specification here. Also for reference you can check how is this implemented in the agent-rs.
  • The certificate’s timestamp, i.e /time path, is not verified, meaning that the certificate effectively has no expiration time. The IC spec doesn’t specify an expiry times, it gives some suggestions, quoting: "A reasonable expiry time for timestamps in R.signatures and the certificate Cert is 5 minutes (analogously to the maximum allowed ingress expiry enforced by the IC mainnet). Delegations require expiry times of at least a week since the IC mainnet refreshes the delegations only after replica upgrades which typically happen once a week". For reference you can check how is this implemented in the agent-rs (here and here).

Additionally, seems replica signed queries aren’t implemented

Credited to eduarddfinity, AlexV525.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology