Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
24.0.0
-
-
CP: sprint 64
-
2
-
Core: Platform
Description
org.folio.rest.persist.Criteria does not properly masks the value from setValue. The result must be a proper SQL String. The wrong masking results in SQL injection.
Correct masking (and wrapping into single quotes):
a -> 'a' empty string -> ''
Wrong masking (examples, this list is not complete):
'a' -> expected '''a''', actual 'a' O'Kapi -> expected 'O''Kapi', actual 'O'Kapi' '' -> expected '''''', actual '''' ' -> expected '''', actual '''