Description
This module generates an Open API Specification 2.0 (Swagger) compliant json document that includes payload insertion points in parameters.
In order for the payload to be executed, an attacker must convince someone to generate code from a specially modified swagger.json file within a vulnerable swagger-codgen appliance/container/api/service, and then to execute that generated code (or include it into software which will later be executed by another victim). By doing so, an attacker can execute arbitrary code as the victim user. The same vulnerability exists in the YAML format.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/fileformat/swagger/param_injectmsf undefined(param_inject) > show actions ...actions...msf undefined(param_inject) > set ACTION < action-name >msf undefined(param_inject) > show options ...show and set options...msf undefined(param_inject) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub