Skip to content

local_exploit_suggester: malformed module metadata should not crash local_exploit_suggester #20613

@bcoles

Description

@bcoles

Local Exploit Suggester should not crash when it encounters malformed modules. Instead, a suitable error should be displayed.

Sometimes we overlook things during module development. msftidy does not always catch problems.

Local Exploit Suggester has frequently been the victim of gaps in quality control and often lags behind when it comes to changes to module design practices.

For example, modules with a malformed module arch can crash Local Exploit Suggester. See #20609.

A nil check prior to calling is_module_arch? may help:

def is_module_arch?(mod)
mod_arch = mod.target.arch || mod.arch
mod_arch.include?(session_arch)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions