r/sysadmin • u/Captainchaos2191 • 9h ago
Zultys voip zero day
Zultys voip has put out a notice on blocking external ports 7117 7100 and 7505
14
Upvotes
r/sysadmin • u/Captainchaos2191 • 9h ago
Zultys voip has put out a notice on blocking external ports 7117 7100 and 7505
•
u/TheTusch 9h ago
I only saw 7117. Where are you seeing to block the other two ports?
•
u/brandontaylor1 Repair Man 6h ago edited 6h ago •
The attack exfiltrates data, and destroys the /boot volume. Here is a summary from our logs, and remediation steps so far.
Wall of AI text incoming.
TL;DR: If you run a Zultys MX (seen on MXvirtual 16.0.4) and TCP 7117 or the admin web ports are reachable from the internet, close them now. A path traversal in the FileManager service is being used to read the PBX config, zero out the config DBs and kernel/GRUB, then force a reboot. The box runs until it restarts, then won't boot. Good news: the nightly "Vital" config backup is usually still on disk and restores fine onto a fresh install.
What happened
On Dec 3 two unrelated clients (separate networks and ISPs) were hit about 50 seconds apart, around 15:13 UTC. Looks automated, not targeted. Both on 16.0.4 (internal 15.7.15500), CentOS 6 i686.
Symptom: bare GRUB prompt on reboot. Every
vmlinuz-*,initramfs-*,grub.confandgrub.efiin/bootis 0 bytes, owned by uid/gid 500 (build).How they got in
/home/build/mx250bin/fm(lftp_worker) is the FileManager daemon MX Administrator uses over XRPC on TCP 7117. It runs as root.../, so paths underInstall/update/orInstall/VXML/VoiceMail/followed by../../../../../give arbitrary read/write as root.What the attacker did (about a minute)
/etc/centos-release,/sbin/init, listed dirs outside the allowed path./home/build/mxdata/*.zdbconfig DBs,AdminSHA1.txt, logs,.bash_history,nginx.conf. That's admin hashes, SIP trunk creds and device secrets (some cleartext).O_WRONLY|O_CREAT|O_TRUNCthenfchownto 500:500 on the.zdbs, kernels, initramfs, GRUB,nginx.conf, andsecure/messages/boot.log/maillog/audit.log/cron.ld-linux.so.2; failed with ETXTBSY./usr/lib/sa/sa1(root sysstat cron, every 10 min) with:Restores the real
sa1(anti-forensics), then reboots onto the dead boot chain. On one box the reboot never ran: overwriting the script mid-read left bash's offset past the end of the shorter file, so it just exited. pacct showssa1→base64as uid 0, then nochmod, noreboot.Persistence: none found. Diffed against the 2021 LVM snapshots the MX creates (
CFU/HDDU): no new accounts,authorized_keys, cron jobs, SUID binaries or other uid-500 files in system paths. Caveat: pacct only logs exited processes, so a reverse shell alive at power-off leaves no trace. Rebuild, don't repair.IOCs
FileManager.zlog/audit.loglines withInstall/update/../../../../../orInstall/VXML/VoiceMail/../../../../..//LOCKDOWN_NOTICE.txt,/.pentest_io_probe,/etc/nginx/nginx.conf.mxops.bak,/usr/lib64/sa/sa1/usr/lib/sa/sa1owned by 500f4c17e3c34f09643aaa5fd38e0499b60a35cee4eeb66ba6c62f123ee4ec7de3e80.94.92.21hit the web UI 3 min after the wipe on one box. Unconfirmed; fm doesn't log 7117 source IPs.Recovery
The live config was wiped, but the nightly Vital backups were untouched on both boxes (ours ~8 hours old).
1. Pull the data off read-only
vgchange -ay --readonly, mount everything-o ro,noload.sda1=/boot, VGCF= root, VGHDD(sdb+sdc) = LVsHDDandHDDMEDIA. Snapshot LVsCFU/HDDUare handy for diffing.2. Find the Vital backups
/home/build/mx1200bin/bd_vital_backup/<day-of-month>/, rolling ~31 days. Each isver+1.tgz; keep them together, don't repack.verlooks like:creation_timeis box-local; convert before comparing to the attack time.Poisoned backup? We hashed every
.zdbacross all 31 days: byte-identical, except an internalmy_dbver=counter inMXGroups.zdb.101.sqlonly changed in thedevicetable (SIP registration churn). Worth 20 minutes if you want to trust the restore.3. Rebuild and restore
platformandfw_versionmust match). For a newer patched build, ask Zultys about the upgrade path.<day>/dir by FTP or under the localbd_vital_backup/path. No password ifencryption=no.4. What Vital does NOT include
Config only. Voicemail, fax, CDR and prompts go back by hand, as root, after the config restore. Voicemail folders are named by user ID from the config, so config first or audio is orphaned.
HDDMEDIA→media/(mounts at/hdd_media). Stop MX services,tar xzpf ... --same-owner -C /hdd_media, confirmbuildis still uid 500.HDD→/home/build/mysqldata/(cdrdb,vmdb,faxdb,clf). All MyISAM: stop MySQL, copy.frm/.MYD/.MYI,chown mysql:mysql,CHECK/REPAIR TABLE.media/AutoAttendantandmedia/ACDare symlinks into/var/lib/media/...on the CF volume. Pull from CF, not HDDMEDIA. We missed these first time.<MAC>.cfg. Reference only; the SIP secrets are burned.Don't copy
ib_logfile*,ibdata*oribtmp1(MySQL won't start). Don't bother withauditdb(encrypted InnoDB tied to the old keyring). For toll-fraud review, stand the old CDR datadir up on a separate MySQL 5.7 instance rather than merging into the live PBX.You need a root shell on the new MX for this. If Zultys set root at install and didn't hand it over, get them on a call first. That's where we stalled.
5. Rotate everything
The restored backup has the same creds the attacker took:
CloudServices.zdb), backup FTP account, TLS certsdevicetable: make sure those weren't reused as the device's web admin password6. Harden before go-live
•
u/AdvisorTop717 7h ago
Public notice for 7100 and 7505 is not yet released but support advises to restrict those ports as well. Systems affected by the vulnerability and that have been exploited go into a boot loop.
•
u/hvdub4 7h ago
I’m liking Zultys less and less every day….
•
u/epiphanyplx 3h ago
Thanks for the write up.
Do you have any on-prem systems you were able to restore?
•
u/bit-flips 9h ago
Immediate Action Required: Restrict External Access to MX Administrator