This penetration test report documents the assessment of a target with IP address 10.10.11.143. The target had three open ports: 22 (SSH), 80 (HTTP), and 443 (SSL/HTTP). The report details the techniques and commands used during the assessment.
The initial port scan was performed using Nmap to identify open ports on the target:
nmap -sV 10.10.11.143 -p-- Port 22/tcp: Open SSH (OpenSSH 8.0, protocol 2.0)
- Port 80/tcp: Open HTTP (Apache httpd 2.4.37, CentOS)
- Port 443/tcp: Open SSL/HTTP (Apache httpd 2.4.37, CentOS)
Dirb was used to enumerate directories and files on the webserver:
dirb http://10.10.11.143/Using Sn1per:
The suggestion to use "wfuff" for subdomain scanning was followed, and the domain "office.paper" was added to the hosts file for further investigation.
echo "10.10.11.143 office.paper" >> /etc/hostsA WordPress installation was discovered on the "office.paper" domain:
WPScan was used to enumerate WordPress users:
wpscan --url http://office.paper --disable-tls-checks --enumerate uThis identified several users, including "prisonmike," "nick," and "creedthoughts"
The enumeration of vulnerable plugins was performed using WPScan:
wpscan --url http://office.paper --disable-tls-checks --enumerate vpno result
An insecure draft was found on the WordPress site. A Google search led to the discovery of a WordPress draft exploit:
https://www.exploit-db.com/exploits/47690
By appending "?static=1" to a WordPress URL, the secret content of the draft was exposed:
The URL found in the insecure draft was accessed, requiring an addition to the hosts file
The hosts file was updated:
sudo sed -i 's/10.10.11.143/10.10.11.143 chat.office.paper/g' /etc/hostsUpon registering an account on the new "chat.office.paper" URL, a bot named "recyclops" was discovered in the chat. A conversation with the bot revealed that it could fetch files.
Commands such as 'recyclops get me the file test.txt' or 'recyclops file test.txt' were used to fetch files. The bot responded by sending back file content.
clear password in file ../hubot/.env (the bots send back file content)
The bot revealed sensitive information, including credentials:
To escalate privileges, the following steps were taken:
- Connecting via SSH as user "dwight" using the obtained password.
- Launching LinEnum (lse) to enumerate system information.
LinEnum results highlighted:
- Uncommon setuid binaries.
- GIT/SVN repositories.
- The presence of SELinux.
- Services listening only on localhost.
- Apache modules.
- Write access to a gpg-agent socket.
- Processes running with root permissions.
Polkit pwnkit was identified as a vulnerability. CVE-2021-3560 was exploited using the provided PoC script:
https://raw.githubusercontent.com/secnigma/CVE-2021-3560-Polkit-Privilege-Esclation/main/poc.sh
The user "secnigma" was escalated to root privileges:
su - secnigma
sudo suWe are root.
In conclusion, this penetration test successfully identified vulnerabilities in the target system, allowing for WordPress enumeration, Rocket.Chat exploitation, and ultimately, privilege escalation through CVE-2021-3560. The report provides a detailed account of the techniques and commands used during the assessment.









