3000 - Web Services
Weak authentication
This seems to be an event system that allows us to message an administrator. We can easily create a new user via the Register
link. Once registered and logged in, we are able to add a new log event under the New Event Log
tab. However, when we try to submit the new event, the system prompts that "Only the admin can update the Event logs".
One interesting thing to notice is the presence of a userLevel
cookie with the value ZGVmYXVsdA%3D%3D
. Let's try to base64-decode the string:
This decodes as default
, which may refer to our access level. Let's try to update the userLevel
cookie with a new value:
With this modification in place, we can now send messages.
The next interesting find is the add technical details/code if required
Event Message. Considering that this is a NodeJS application, it might be possible to inject Javascript Code.
To test this, we'll send a simple 1+1
operation as an "Event Message".
Request Used:
Notice the userLevel cookie how we can exploit it by changing it in base64.
After reviewing the resulting stored message, we confirm that it actually saved 2
.
Last updated