Finally managed to move forward from the restricted environment, and got the user flag
EDIT: Got root. The hint from @mfidel about dogs is a good one. Lots of steps from user to root, but the path is fairly clear.
Thanks @CyberVaca and @3v4Si0N for an excellent box!