gray-mueller / gray-mueller/full-stack-document-solution
Security Vulnerabilities in Multivendor Admin - Username Gap and Negative Values in Restaurant Parameters
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp hoặc test nào được nêu tên. Hãy bắt đầu bằng cách tái hiện vấn đề trong biểu mẫu Create New Restaurant của trang quản trị multivendor, sau đó theo dõi quá trình xác thực đối với tên người dùng, thời gian giao hàng, đơn hàng tối thiểu và thuế bán hàng. Hoàn thành khi các khoảng trắng trong tên người dùng và các giá trị tham số âm bị từ chối kèm thông báo lỗi rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- full-stack, security
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100