Forgotten
Last updated
Last updated
Using gobuster: There is a limesurvey installer on /survey
Now trying to install limesurey with our host as the database.
Editing /etc/mysql/mariadb.conf.d/50-server.cnf
so that it is available in all interfaces
To start mysql service:
Or use:
Then connect to mysql: Now we have created the database and completed the setup:
Now using this exploit: https://github.com/Y1LD1R1M-1337/Limesurvey-RCE/tree/main and changing config.xml so that the version matches we get a reverse shell:
Now checking env variables: We can use the password to switch to root and to login through ssh to limesvc user. Now we can use: https://github.com/cdk-team/CDK Now this is unusual af
Being root, and heading to the web path ==/var/www/html/survey== if we create a test file: hello.txt and then verify with the user limesvc that we are via SSH, in ==/opt/limesurvey==, is assembled the same website. And we see that the file created hello.txt is with ROOT permits: So dropping a bash file with SUID: cp /bin/bash .
chmod u+s ./bash
Now executing it with ./bash -p