FokiDoki / WireRest

REST API for Wireguard
MIT License
18 stars 5 forks source link

Added validation for input data #51

Closed FokiDoki closed 1 year ago

FokiDoki commented 1 year ago

Now the input data is checked for correctness, and not immediately sent to wireguard. This will help increase performance by reducing requests to wireguard. However, this is not a 100% guarantee of data correctness. The keys are only checked for length and that the key is in base64 format, however it is not checked that it is the correct wireguard format. In addition, validation will help protect the code from possible command injection attacks.