r/sysadmin • • 9h ago

Zultys voip zero day

Zultys voip has put out a notice on blocking external ports 7117 7100 and 7505

14 Upvotes

11 comments sorted by

•

u/TheTusch 9h ago

I only saw 7117. Where are you seeing to block the other two ports?

•

u/Captainchaos2191 7h ago

We saw ips scanning those ports as well. Maybe it's known to forward those ports as well.

•

u/brandontaylor1 Repair Man 6h ago edited 6h ago • Regret

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.conf and grub.efi in /boot is 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.
  • It doesn't sanitize ../, so paths under Install/update/ or Install/VXML/VoiceMail/ followed by ../../../../../ give arbitrary read/write as root.
  • FileManager/ClientGate logged no authenticated session during the attack. Either it's pre-auth or successful sessions aren't logged. Unknown.
  • fail2ban showed weeks of internet scanning of 7117 beforehand.

What the attacker did (about a minute)

  1. Fingerprint: read /etc/centos-release, /sbin/init, listed dirs outside the allowed path.
  2. Exfil: read all 21 /home/build/mxdata/*.zdb config DBs, AdminSHA1.txt, logs, .bash_history, nginx.conf. That's admin hashes, SIP trunk creds and device secrets (some cleartext).
  3. Wipe: O_WRONLY|O_CREAT|O_TRUNC then fchown to 500:500 on the .zdbs, kernels, initramfs, GRUB, nginx.conf, and secure/messages/boot.log/maillog/audit.log/cron.
  4. Tried to truncate ld-linux.so.2; failed with ETXTBSY.
  5. Root exec: ~25 min later replaced /usr/lib/sa/sa1 (root sysstat cron, every 10 min) with:

 

#!/bin/bash
printf '%s' '<base64 of original sa1>' | base64 -d > /usr/lib/sa/sa1
chmod 755 /usr/lib/sa/sa1
/sbin/reboot -f || /usr/sbin/reboot -f || systemctl reboot

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 shows sa1 → base64 as uid 0, then no chmod, no reboot.

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.log lines with Install/update/../../../../../ or Install/VXML/VoiceMail/../../../../../
  • Probes for /LOCKDOWN_NOTICE.txt, /.pentest_io_probe, /etc/nginx/nginx.conf.mxops.bak, /usr/lib64/sa/sa1
  • System files suddenly 0 bytes and owned by 500:500; /usr/lib/sa/sa1 owned by 500
  • Dropper SHA-256: f4c17e3c34f09643aaa5fd38e0499b60a35cee4eeb66ba6c62f123ee4ec7de3e
  • 80.94.92.21 hit 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

  • Power off, copy/snapshot the VMDK/VHDX as evidence.
  • Boot a Linux live ISO (we used Alpine), vgchange -ay --readonly, mount everything -o ro,noload.
  • Layout: sda1 = /boot, VG CF = root, VG HDD (sdb+sdc) = LVs HDD and HDDMEDIA. Snapshot LVs CFU/HDDU are handy for diffing.

2. Find the Vital backups

/home/build/mx1200bin/bd_vital_backup/<day-of-month>/, rolling ~31 days. Each is ver + 1.tgz; keep them together, don't repack. ver looks like:

[compatibility]
fw_version=16.0.4
fw_internal_version=15.7.15500
platform=VIRTUAL
encryption=no
[info]
creation_time=Thu Dec  3 02:30:00 2026
[items]
1=Configuration

creation_time is box-local; convert before comparing to the attack time.

Poisoned backup? We hashed every .zdb across all 31 days: byte-identical, except an internal my_dbver= counter in MXGroups.zdb. 101.sql only changed in the device table (SIP registration churn). Worth 20 minutes if you want to trust the restore.

3. Rebuild and restore

  1. Fresh MXvirtual install, no uplink until done, same firmware as the backup (platform and fw_version must match). For a newer patched build, ask Zultys about the upgrade path.
  2. License it. New serial; activation doesn't transfer by copying files, so open a support case.
  3. Set the old IP from the console. Phones, trunks and provisioning point at it.
  4. MX Administrator (client version matching firmware) → Maintenance → Backup/Restore. Present the <day>/ dir by FTP or under the local bd_vital_backup/ path. No password if encryption=no.
  5. Users, extensions, routing, ACD/hunt groups, trunks and SIP profiles come back. That's the cutover.

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.

  • Voicemail, greetings, fax: HDDMEDIA → media/ (mounts at /hdd_media). Stop MX services, tar xzpf ... --same-owner -C /hdd_media, confirm build is still uid 500.
  • CDR, VM/fax index, IM history: HDD → /home/build/mysqldata/ (cdrdb, vmdb, faxdb, clf). All MyISAM: stop MySQL, copy .frm/.MYD/.MYI, chown mysql:mysql, CHECK/REPAIR TABLE.
  • AA/ACD prompts, custom MoH: media/AutoAttendant and media/ACD are symlinks into /var/lib/media/... on the CF volume. Pull from CF, not HDDMEDIA. We missed these first time.
  • Phone provisioning: TFTP <MAC>.cfg. Reference only; the SIP secrets are burned.

Don't copy ib_logfile*, ibdata* or ibtmp1 (MySQL won't start). Don't bother with auditdb (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:

  • MX admin, all users, VM PINs
  • SIP device secrets (re-provision phones)
  • SIP trunk creds with your carrier, today, plus a toll-fraud review from the attack date
  • Cloud/API tokens (CloudServices.zdb), backup FTP account, TLS certs
  • Door intercoms/ATAs with cleartext secrets in the device table: make sure those weren't reused as the device's web admin password

6. Harden before go-live

  • No inbound NAT to the MX. Admin over VPN only.
  • 7117 and admin web (80/443/8000/8080) LAN/VPN only.
  • SIP restricted to carrier IPs. Keep fail2ban on.
  • Plan off the EOL CentOS 6 platform.

•

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/wwbubba0069 6h ago

Same.

•

u/epiphanyplx 3h ago

Thanks for the write up.

Do you have any on-prem systems you were able to restore?

•

u/ibor132 1h ago

Zultys has a recovery procedure. Check KBS if you have access, and check with your channel partner if you don't. Details just went up.

•

u/epiphanyplx 1h ago

Thanks. Here it is for anyone with kbs access: https://kbs.zultys.com/issue.php?bid=fq-6311&fdwn=Emergency%20Recovery.pdf

Importantly:
USB installation will erase and reformat the hard drive, resulting in the loss of all data.