hpi-swt2 / bookkeeper-portal-blue

Bookkeeper Portal — 🟦 Edition
MIT License
15 stars 0 forks source link

Fix: sql injection search page #328

Closed antonykamp closed 1 year ago

antonykamp commented 1 year ago

Fixes #169

Fixes SQL injection on search page by replacing where clauses with active records.

PR checklist

LucasDerReisende commented 1 year ago

@antonykamp @SaturnHafen Can you provide me with an example case, where I can see, that it now works or some context. Thank you :)

antonykamp commented 1 year ago

Of course :) These are the results of the sql injection examined by richard:

Screenshot 2023-01-20 at 11 23 45

(not good :()

With the proposed changes, we have the following results:

Screenshot 2023-01-20 at 11 24 37
LucasDerReisende commented 1 year ago

Of course :) These are the results of the sql injection examined by richard:

Screenshot 2023-01-20 at 11 23 45

(not good :()

With the proposed changes, we have the following results:

Screenshot 2023-01-20 at 11 24 37

Thank you very much :)

CR1337 commented 1 year ago

Shouldn't @rgwohlbold review this as he found this bug #169 ?

antonykamp commented 1 year ago

Good point @CR1337, I'll ask him 😇