Apache UNO API RCE
This code represents a small proof of concept of an unauthenticted remote code execution using the Apache OpenOffice UNO API (https://www.openoffice.org/udk/). This code has been tested against LibreOffice Version: 6.1.1.2 on a Ubuntu Mate 18.04 with kernel 4.15.0-34-generic. For this PoC to work the target machine needs to run the ServiceManager using an external interface. The following command was used to test this PoC: [Ubuntu] Open a terminal and execute the following command: soffice --accept='socket,host=0.0.0.0,port=2002;urp;StarOffice.Service'. The above command will start the LibreOffice ServiceManager but this can be executed with the --invisible flag to prevent the dialogbox from popping up on the target. I also made a scanner available that can be used to check for the presence of the StarOffice manager running on a machine: https://sud0woodo.sh/2019/03/06/building-a-go-scanner-to-search-externally-reachable-staroffice-managers/