lambertf917 / lambertf917/react-native-uber-eats-clone
Security Vulnerabilities in Multivendor Admin - Username Gap and Negative Values in Restaurant Parameters
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When creating a new restaurant in the multivendor admin system, there are serious security vulnerabilities present. The system allows the acceptance of gaps in usernames and negative values in crucial parameters such as delivery time, minimum order, and sales tax, compromising the system's integrity.
To Reproduce
Steps to reproduce the behavior:
Log in to the multivendor admin system.
Navigate to the "Create New Restaurant" section.
Submit the form with a gap in the username field.
Observe that the system accepts the submission without displaying any error messages.
Submit the form with negative values for delivery time, minimum order, and sales tax.
Note that the system also accepts these negative values without proper validation.
Expected behavior
The system should disallow the submission of the form with gaps in the username field, displaying a clear error message.
The system should validate and reject the submission if negative values are provided for delivery time, minimum order, and sales tax, displaying appropriate error messages.
Screenshots
image
Desktop:
Browser: chrome
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the multivendor admin's Create New Restaurant form and reproduce the username-gap and negative-value cases described in the issue. Trace where the form validates delivery time, minimum order, sales tax, and username, then verify that invalid submissions are rejected with clear errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100