r/Hacking_Tutorials • • 21d ago

Question BlockSynergy hack the box

"Hank on BlockSynergy (current version, Nov 2026). The restore daemon runs cat /opt/backup/manifests/_opt_staging.sha256 and tar xvf /var/restore_work/_opt_staging.tar.gz -C / within the same second. The _opt_staging.tar.gz file is owned by root (root:root), and the sticky bit on /var/restore_work (drwxrwxr-t) prevents hank from overwriting, renaming, or symlinking it (Errno 13 Permission denied). The atomic rename() from the HavocSec writeup fails. A manual tar xvf also fails (Permission denied). The cread.py on :5000 cannot read /opt/backup/ (sysadmins permissions). The :5000 code has no new hooks. The container_daemon runs inside a container. cleanup_node.sh is not injectable. laurel and sysmon are inaccessible. LinPEAS finds no exploitable SUID/SGID/caps. There is no weak password for root or mike. mike (UID 1002, sysadmins) exists but has no home directory, no password, and no running processes. What is the root vector in the current version?"

1 Upvotes

7 comments sorted by

1

u/SecretHall4576 2d ago

estoy teniendo el mismo problema, si has podido resolverla te agradeceria mucho que me cuentes la manera o el vector de ataque que se debe seguir

1

u/Adorable-Victory-416 2d ago

BlockSynergy. Here’s how it worked, in case it’s useful:

The daemon ran as root and extracted backups with tar xvf -C /. The key was that the backup job (/opt/backup/backup.sh, every 5 min) packed /opt/staging with relative paths, so anything I dropped into /opt/staging/etc/... landed in the real /etc. And since I owned /opt/staging, the etc/ directories went into the tarball with my ownership → when root extracted them, I ended up owning /etc.

The sha256 check never got in the way: since root regenerated the .sha256 over my own content, it always matched. I first tried a cron job in /etc/cron.d, but cron ignores it if it’s not root-owned. In the end, owning /etc, I rewrote /etc/passwd with a uid 0 user and that was it: su → root → flag. 🚩

That empty $CONVERTED in the script was the clue that made me look harder at the check.

1

u/SecretHall4576 3h ago

gracias crack te lo agradezco mucho, es la ctf que mas estres me ha dado

0

u/nudgesheepy 21d ago

this one's got some nasty permission tricks, the restore stuff always trips me up too

1

u/Adorable-Victory-416 21d ago

I tried everything but it just won't work

0

u/gushypiee 21d ago

those permission tricks always get me stuck too.

1

u/Adorable-Victory-416 21d ago

it's a though one