-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Closed
Copy link
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedmodifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/bug
Milestone
Description
Description
While doing some fuzzing using https://github.com/Endava/cats I discovered an issue for the /v1/user/emails
endpoint. Doing a POST with an invalid email address results in a 500, rather that something more meaningful.
You can reproduce the issue using (just replace $token with your own token):
cats replay Test228.json
Or using the payload:
{
"emails": [
"yCUjse4J",
"yCUjse4J"
],
"catsFuzzyField": "catsFuzzyField"
}
Gitea Version
1.17.0+dev-423-g4396d0e7c
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Using https://try.gitea.io/.
Database
No response
Metadata
Metadata
Assignees
Labels
issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedIssue has been reviewed and confirmed to be present or accepted to be implementedmodifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/bug