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
Juliana Fajardini dd53a71ce2 pgsql: better boundaries to row_description/data_row
parse_row_description and parse_consolidated_data_row read a field_count
from the message body and use that to iterate a slice, without checking
whether the count actually fits the body.

A backend-controlled attack could lead to fewer fields logged, or
stalling of the parser to-client direction for the duration of the flow.

A malformed_response event is set for pgsql, if either of those
message's inner parsers has a field_count that can't be reconciled with
the body slice.

A new pgsql.response log field is added to indicate this, too:
pgsql.response.row_description_malformed, a boolean. This wasn't added
to the consolidated data row message, per its summarization nature.

The row_description unit test buffer declared a length one byte longer
than its three fields occupy. The old code silently discarded that
surplus byte; the new one reports it, so the buffer was corrected.

Ticket: #8885
(cherry picked from commit fe939e8da7)
2 months ago
..
.cargo rust: rename .cargo/config to .cargo/config.toml 2 years ago
derive rust/derive: fix clippy collapsible_match warning 1 year ago
htp http: warn once for chunk extension 2 months ago
src pgsql: better boundaries to row_description/data_row 2 months ago
suricatactl rust: allow some lints in suricatactl and suricatasc 1 year ago
suricatasc rust: fix clippy warnings 2 months ago
sys app-layer: query raw protocol names 2 months ago
.gitignore rust: rename .cargo/config to .cargo/config.toml 2 years ago
Cargo.lock.in psl: update to 2.1.228 2 months ago
Cargo.toml.in misc: time unit parsing function 8 months ago
Makefile.am rust: respect RUSTC and CARGO env vars like CC 1 year ago
cbindgen.toml rust: exclude DETECT_BYTEMATH_ENDIAN_DEFAULT from bindings 5 months ago
rustfmt.toml rustfmt: replace deprecated fn_args_layout with fn_params_layout 3 years ago