Description
This module exploits an unauthenticated SQL injection in the Cisco Secure Email Gateway (SEG) Email Cloud Scanner (ECS) URL-retrospective message database. A sender-controlled Message-ID is placed inside a fixed PostgreSQL dollar-quoted string without escaping. The module sends one email whose quoted Message-ID terminates that string, stacks COPY TO PROGRAM, and executes a Unix command payload as root through AsyncOS runas.
The check identifies the product through Cisco SEG's hidden SMTP queue-status command. AsyncOS does not expose a version through a benign SMTP command, so the check can only identify the product but not if it is explicitly vulnerable.
URL Filtering and URL Retrospective Service must both be enabled.
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/unix/smtp/cisco/secure_email_gateway_ecs_sqli_rcemsf undefined(secure_email_gateway_ecs_sqli_rce) > show actions ...actions...msf undefined(secure_email_gateway_ecs_sqli_rce) > set ACTION < action-name >msf undefined(secure_email_gateway_ecs_sqli_rce) > show options ...show and set options...msf undefined(secure_email_gateway_ecs_sqli_rce) > runPrioritize 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