[unikrn.com] Profile updated with error":true,"success":false"
The profile update endpoint returned an error response but still applied the submitted profile changes. An attacker could change profile fields even when the server reported the request had failed.
- Disclosed after 18 months
Greetings,
We noticed that even if the https://unikrn.com/apiv2/user/updateprofile gave an answer that the code is on error , the post is proceeded :
PoC :
curl 'https://unikrn.com/apiv2/user/updateprofile' -XPOST -H 'Referer: https://unikrn.com/profile' -H 'Content-Type: application/json' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7' -H 'Origin: https://unikrn.com' -H 'DNT: 1' -H 'Accept: application/json, text/plain, */*' -H 'Application-Version: v3.9.1-1743-g043d784' --data-binary '{"firstname":"RBCA","lastname":"RBCA","nickname":"Rbcafe","street":"","suburb":"","state":"","shipcountry":null,"postcode":"","telephone":null,"phone_cc":"fr","email":"[email protected]","city":"","avatar":"https://www.gravatar.com/avatar/0f2219216ab1e07d370b387d028a6535","session_id":"bb6ig4dqkest1cbp3t11g4mpppjka56m"}'
Result :
{"ver":"2.0","error":true,"success":false,"msg":"file_wrong","msg_trans":"file_wrong","data":[],"code":0,"flds":null,"flds_errors":null}
Video :
Impact :
Bypass the answer of the post and update a profile.
Fix :
If the answer is success false, the POST should not be proceeded.
Best regards.
Rbcafe
Impact
- Bypass the answer of the post and update a profile.
- Lack of control.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the endpoint applied the update before or regardless of the validation result, so the error response did not stop the write.
Impact
A user could update their profile even when the server reported the request as failed, showing the error response did not reflect the actual outcome.
What the attacker needed
A user account; ability to send requests to the API
How it was found
- Send a profile update request to the updateprofile endpoint with modified profile fields.
- Observe that the response reports an error with success false.
- Check the profile and see that the changes were saved anyway.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A website's profile update form sends your changes to a server. Normally the server checks the request and replies with success or an error. Here the server replied with an error but saved the changes anyway, so the error message did not reflect what actually happened.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.