gray-mueller / gray-mueller/foodpanda-clone-using-react-native

Security Vulnerabilities in Multivendor Admin - Username Gap and Negative Values in Restaurant Parameters

Open
#413 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
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

Open the contributing guide

Research direction

Start by reproducing the issue in the multivendor admin system's "Create New Restaurant" section, using a username with a gap and negative delivery time, minimum order, and sales tax values. Locate the form validation entry point and verify that each invalid submission is rejected with a clear error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.