Skip to content

fix(oracle): validate input with TO_TIMESTAMP_TZ and TO_DATE - #17516

Merged
WikiRik merged 5 commits into
v6from
WikiRik/oracle-workaround
Oct 2, 2024
Merged

fix(oracle): validate input with TO_TIMESTAMP_TZ and TO_DATE#17516
WikiRik merged 5 commits into
v6from
WikiRik/oracle-workaround

Conversation

@WikiRik

Copy link
Copy Markdown
Member

Description of Changes

This adds input validation as a workaround to prevent SQL injection using TO_TIMESTAMP or TO_DATE. It's not pretty, but it should do the trick while we fix it properly in v7 where the internals should be more suitable. This fix is the least intrusive.

Comment threadsrc/sql-string.js
Comment threadsrc/sql-string.js Outdated
Comment threadsrc/sql-string.js Outdated
Comment threadsrc/sql-string.js Outdated
@WikiRik
WikiRik requested a review from sdepoldOctober 1, 2024 06:59
@WikiRik
WikiRik merged commit 5deadd2 into v6Oct 2, 2024
@WikiRik
WikiRik deleted the WikiRik/oracle-workaround branch October 2, 2024 12:01
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.37.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@WikiRik@sdepold