Description
This module exploits an authenticated file disclosure vulnerability in CompletePBX <= 5.2.35. The issue resides in the backup download function, where user input is not properly validated, allowing an attacker to access arbitrary files on the system as root.
The vulnerability is triggered by setting the `backup` parameter to a Base64-encoded absolute file path, prefixed by a comma `,`. This results in the server exposing the file contents directly.
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 auxiliary/scanner/http/xorcom/completepbx_file_disclosuremsf undefined(completepbx_file_disclosure) > show actions ...actions...msf undefined(completepbx_file_disclosure) > set ACTION < action-name >msf undefined(completepbx_file_disclosure) > show options ...show and set options...msf undefined(completepbx_file_disclosure) > 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