NodeBB

Exploiting NodeBB Forum Web Application

Admin Account Takeover

  1. Create a new NodeBB user

  1. Go to Edit Profile. Then navigate to the Change Password page

  1. Intercept with proxy tool ie. Burp Suite (community edition will work). Do not start intercepting until you are ready to click Change Password, or else there will be timeout issues

  1. Start intercepting using the proxy tool, Change the UID to '1' (admin), press forward, then turn intercept off. You will need to be fast to avoid timeout, so don't fuck around.

  1. Use the new password to log into the NodeBB admin account and enjoy 😄

Aribitrary File Upload

Upload file with NodeBB admin account

Copy exploit to a local folder and open in your favorite text editor

Change the following parameters in the python file to match your target/host machines and NodeBB admin credentials

example of modified python file

If you do not have a public SSH key on your host machine, you can generate one using ssh-keygen

generating SSH keys

Run the exploit

SSH into the target machine and have a beer 🍺

Last updated