aboutcode-org / aboutcode-org/scancode-analyzer

Write safer SQL Queries

オープン
#62 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
4
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

Write better (safer) functions to prevent SQLi

It is generally considered bad practice to write SQL statements as such without _preparing_ them first (See: [this](https://bobby-tables.com/python))
https://github.com/nexB/scancode-analyzer/blob/813732ace5f0cb9647fe1c8ff504a4d30a1c67ac/etc/load_scan_into_dataframe/postgres.py#L59

Maybe, the Queries can be written using placeholders so that the database can fill in the data values properly and safely.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。