You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/rust
Victor Julien 29a5370e71 nfs: validate WRITE and READ records sizes
Replace the hardcoded 16 MiB record caps with configurable
max-{write,read}-size and observable events: an oversized WRITE
request or READ response is rejected, logged, and its payload skipped
to keep the stream in sync. 0 disables the check.

For v4 records, the issue is more complex due to the COMPOUND type:
A partial v4 COMPOUND record whose frag_len claim is huge must not be
buffered toward that claim (31-bit, attacker-controlled → OOM). The
full parser can't help: on a partial buffer it only returns Incomplete
 ("need more bytes"), with no information about what's coming. The scan
instead walks the buffered prefix's ops by wire extent and reads the
file op's header words alone, answering the gate's four-way question:
 oversized claim detected (reject + skip to the record boundary before
any data buffers), data not yet present (buffer normally), structurall
malformed (bounded rejection), or no oversized op (fall through). It
exists because rejecting before buffering requires the claimed length,
which only a prefix walk can extract.

Ticket: #8791.
2 months ago
..
.cargo rust: rename .cargo/config to .cargo/config.toml 2 years ago
derive rust/ffi: move AppLayerEvent to ffi 6 months ago
ffi rust/ffi: add flow accessors to flow wrapper 2 months ago
htp http: warn once for chunk extension 2 months ago
src nfs: validate WRITE and READ records sizes 2 months ago
suricatactl rust: limit clap verson to 4.5.57 8 months ago
suricatasc rust: clippy fixups for 1.97 4 months ago
sys rust/ffi: bindgen flow storage 2 months ago
.gitignore rust: rename .cargo/config to .cargo/config.toml 2 years ago
Cargo.lock.in rust: update ldap parser 2 months ago
Cargo.toml.in rust: update ldap parser 2 months ago
Makefile.am rust: set CARGO_ENV when generating ffi bindings 3 months ago
cbindgen.toml http2: split transaction state machines 4 months ago
rustfmt.toml rustfmt: replace deprecated fn_args_layout with fn_params_layout 3 years ago