Skip to content

Harden PE delayed import and dotnet blob stream parsing#2201

Open
TristanInSec wants to merge 1 commit into
VirusTotal:masterfrom
TristanInSec:fix/pe-dotnet-parsing-hardening
Open

Harden PE delayed import and dotnet blob stream parsing#2201
TristanInSec wants to merge 1 commit into
VirusTotal:masterfrom
TristanInSec:fix/pe-dotnet-parsing-hardening

Conversation

@TristanInSec
Copy link
Copy Markdown

Adds bounds checks to the PE delayed import parser and dotnet blob stream index handling for consistency with existing limits elsewhere in the codebase.

PE module (pe.c):

  • Cap delayed import descriptor and function iteration to MAX_PE_IMPORTS, matching the existing limit in pe_parse_imports / pe_parse_import_descriptor.

Dotnet module (dotnet.c):

  • Validate Signature column values against blob_size before computing pointers into the blob heap, consistent with how other stream offsets are validated.

Cap delayed import iteration to MAX_PE_IMPORTS, consistent with
pe_parse_imports. Validate blob stream indices in the dotnet module
before computing pointers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant