jbonofre opened a new pull request, #2673: URL: https://github.com/apache/karaf/pull/2673
Backport of #2654 to `karaf-4.4.x`. There is a minor security issue in the JDBC datasource - the datasource name parameter is concatenated directly into OSGi LDAP-syntax filter strings without escaping. For example: ``` feature:install pax-jdbc-derby jdbc jdbc:ds-create -dn derby -url "jdbc:derby:test;create=true" test jdbc:ds-create -dn derby -url "jdbc:derby:test2;create=true" test2 jdbc:ds-list Name │ Service Id │ Product │ Version │ URL │ Status ──────┼────────────┼──────────────┼───────────────────────┼──────────────────┼─────── test │ 107 │ Apache Derby │ 10.14.2.0 - (1828579) │ jdbc:derby:test │ OK test2 │ 108 │ Apache Derby │ 10.14.2.0 - (1828579) │ jdbc:derby:test2 │ OK ``` Now `jdbc:ds-info *` returns information on "test". And `jdbc:ds-delete *` deletes all tables. Cherry-picked from 6a86e6febbe6d5be4f279bed26e4657b840dce32 (authored by @coheigea). Note: PR #2654 is still open against `main`; this backport is being raised in parallel at the maintainer's request. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
