You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Headers: Several HTTP headers are set for the /webui/logoutconfirm.html location.
Variables: Three local variables authorized, content, and method are initialized.
Authorization Check
Request Method and Params: Checks if the HTTP request method is POST and whether URI parameters exist.
Authorization Header: Looks for an "Authorization" header in the request.
If found, it trims and validates the header's value.
Executes an external command (redacted) and reads its output.
Compares this output to a specific string (also redacted) to set the authorized flag.
Request Handling
Body Reading: If authorized, it reads the request body into a variable called body.
Menu Check: Checks for a menu parameter in the URI.
If it exists and is not empty, sets the content variable to "/2010202301/".
Logon Hash Checks: Two conditions based on the value of logon_hash parameter.
If it equals "1", sets content to a redacted string.
If it equals another redacted string, then:
Subsystem: Executes an external command using the body of the request and reads its output.
IOx: Changes the "Priv-Level" header and makes an HTTP POST request to another location, capturing its response.
Final Output
Authorized: If the user was authorized, returns a 200 status code and the content variable as the body.
Not Authorized: If not authorized, makes an HTTP GET request to /internalWebui/login.html and returns its result (Note this is designed to trick you into believing it is safe.).