Skip to content

Python: Merge SQLAlchemy TextClause injection into py/sql-injection#6727

Merged
yoff merged 2 commits intogithub:mainfrom
RasmusWL:fix-sqlalchemy-query
Sep 22, 2021
Merged

Python: Merge SQLAlchemy TextClause injection into py/sql-injection#6727
yoff merged 2 commits intogithub:mainfrom
RasmusWL:fix-sqlalchemy-query

Conversation

@RasmusWL
Copy link
Copy Markdown
Member

As discussed in a meeting today, this will end up presenting an query suite that's easier to use for customers.

Since #6589 has JUST been merged, if we get this change in fast enough, no end-user will ever have run py/sqlalchemy-textclause-injection as part of LGTM.com or Code Scanning.

As discussed in a meeting today, this will end up presenting an query
suite that's easier to use for customers.

Since github#6589 has JUST been merged,
if we get this change in fast enough, no end-user will ever have run
`py/sqlalchemy-textclause-injection` as part of LGTM.com or Code
Scanning.

<p>
This also includes using the <code>TextClause</code> class in the
<a href="https://pypi.org/project/SQLAlchemy/"><code>SQLAlchemy</code></a> PyPI package,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does <code> work inside <a href>?
I thought I remembered a case were it didn't work.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I forgot to test it locally. You're right, but it does work if you flip the <a> and <code> tags 🤷

Copy link
Copy Markdown
Contributor

@yoff yoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - as discussed offline, TextArgAsSink can be generalised later.

@yoff yoff merged commit 65d3373 into github:main Sep 22, 2021
@RasmusWL RasmusWL deleted the fix-sqlalchemy-query branch September 22, 2021 12:24
@RasmusWL RasmusWL mentioned this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants