Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Shop vouchers injection flaw #278

Closed
wildmaster84 opened this issue May 2, 2021 · 5 comments
Closed

[BUG] Shop vouchers injection flaw #278

wildmaster84 opened this issue May 2, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@wildmaster84
Copy link

Using a json format such as {\n gives 100% off on any shop item.

The voucher discount system allows code injection.

To Reproduce | Pour reproduire le bug
go to your /shop and for the voucher code use "{\n" and click purchase.

Steps to reproduce the behavior: | Étapes pour reproduire le bug :

  1. Go to '/shop'

  2. Click on 'Shop item'

  3. Scroll down to 'text box below price'

  4. Enter '{\n' and click purchase

Expected behavior | Ce qui aurait dû se passer

To return an error that says the code is invalid

Screenshots

image

MineWeb (please complete the following information):

  • OS: Ubuntu 20.04

  • Microsoft Edge Beta

  • Version : 1.13.0

  • Web server : Apache2

  • Path to logs (upload the content off /app/tmp/logs/error.log https://pastebin.com/AAkh44ZQ

@wildmaster84 wildmaster84 added the bug Something isn't working label May 2, 2021
@nivcoo
Copy link
Member

nivcoo commented May 2, 2021

I just looked at it is only visual there is the money that is taken

@wildmaster84
Copy link
Author

Yes exactly, it should take 15.00 but takes 0.

@nivcoo
Copy link
Member

nivcoo commented May 2, 2021

No, it takes 15.00 if the item is 15.00

@wildmaster84
Copy link
Author

No, it takes 15.00 if the item is 15.00

yes i know but the bug lets you get the item for free

@nivcoo
Copy link
Member

nivcoo commented May 2, 2021

I just tested with the bug, if I do the bug it displays 0 but it still takes the money from the item because the display is in javascript that's all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants