This module exploits a path traversal vulnerability in UPSMON PRO <= v2.61 to retrieve arbitrary files from the system. By default, the configuration file will be retrieved, which contains the credentials (CVE-2022-38121) for the web service, mail server, application, and SMS service. However, any arbitrary file can be specified.
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use auxiliary/gather/upsmon_traversal
msf auxiliary(upsmon_traversal) > show actions
...actions...
msf auxiliary(upsmon_traversal) > set ACTION < action-name >
msf auxiliary(upsmon_traversal) > show options
...show and set options...
msf auxiliary(upsmon_traversal) > run
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security