Details
-
Bug
-
Status: Open (View Workflow)
-
P3
-
Resolution: Done
-
19.2.0, 19.3.1
-
None
-
-
CP: Roadmap backlog
-
Core: Platform
Description
A few functions already use ? as SQL placeholder for data binding:
https://github.com/folio-org/raml-module-builder/blob/f422f84/domain-models-runtime/src/main/java/org/folio/rest/persist/PostgresClient.java#L586
https://github.com/folio-org/raml-module-builder/blob/f422f84/domain-models-runtime/src/main/java/org/folio/rest/persist/PostgresClient.java#L643
https://github.com/folio-org/raml-module-builder/blob/f422f84/domain-models-runtime/src/main/java/org/folio/rest/persist/PostgresClient.java#L902
This avoids SQL Injection: https://en.wikipedia.org/wiki/SQL_injection
Rewrite all other PostgresClient functions so that they make use of ? placeholder.
TestRail: Results
Attachments
Issue Links
- blocks
-
RMB-565 review if all CQL to SQL generation code is using masking
-
- Closed
-
- is blocked by
-
RMB-563 SQL injection in PostgresClient.update by id
-
- Closed
-
- relates to
-
DIMPT-20 Fix JSON formatting bug
-
- Closed
-
-
RMB-199 Single quote SQL Injection in PostgresClient.delete(table, pojo, handler)
-
- Closed
-
-
RMB-200 Single quote SQL Injection in PostgresClient.update(table, updateSection, ...)
-
- Closed
-
-
RMB-201 Single quote SQL Injection in PostgresClient.saveBatch(table, list, handler)
-
- Closed
-
-
RMB-261 Unit tests takes forever on Windows
-
- Closed
-