Doas Privilege Escalation
doas executes arbitrary commands as another user. It's similar to sudo command. doas.conf is interesting to privilege escalation.
Investigation
First of all, search location of doas.conf.
Next check the configuration.
Execute doas as below.
Please also refer to GTFOBins to PrivEsc.