nuclearsilo583 / zephyrus-store-preview-new-syntax

My rewritten zephyrus store
61 stars 40 forks source link

Fixed SQL injection exploits, SQL syntax improvements #130

Closed azalty closed 1 year ago

azalty commented 1 year ago

This PR fixes some SQL injection exploits and changes some \"%s\" to '%s' as it is both the safest way to enter values and a convention.

Injection exploits were able to be done in:

Judging by the scope of these exploits, they don't seem too critical and could only do limited damage, like making logging queries fail or contain invalid data. Mods could try to modify the number of credits a player had, but since they already had access to the givecredits and resetplayer commands in the first place, this has very little use, except potentially trying to evade mod logs.

❌ Didn't try to compile yet ❌ Not tested in game

nuclearsilo583 commented 1 year ago

thanks