VulnCheck.Types.TraceHop (VulnCheck v1.0.1)

Copy Markdown View Source

One hop of a witness call chain from an entrypoint to a vulnerable routine.

A chain whose entrypoint is not called by the project itself (protocol handlers of a network daemon, modules named in the configuration) starts with an activation hop (:daemon_activation or :config_activation): the place in the project that makes the entrypoint live, with note saying how. Its mfa is nil when that place is not a function (a .app file or a configuration file).

An :incoming_data hop marks a receive function of a protocol client (Mint.HTTP2.stream/2, ...): the chain before it reaches the client from the project, the chain after it processes what servers send back.

Summary

Functions

true for the activation hop that starts a chain.

Types

kind()

@type kind() ::
  :daemon_activation
  | :config_activation
  | :incoming_data
  | :entrypoint
  | :static_call
  | :macro_expanded
  | :behaviour_callback
  | :supervisor_child
  | :dynamic_apply
  | :dynamic_candidate
  | :imports

t()

@type t() :: %VulnCheck.Types.TraceHop{
  file: String.t() | nil,
  kind: kind() | nil,
  line: non_neg_integer() | nil,
  mfa: VulnCheck.Types.MFA.t() | nil,
  note: String.t() | nil
}

Functions

activation?(trace_hop)

@spec activation?(t()) :: boolean()

true for the activation hop that starts a chain.