java.jdbc-sql-formatted-string

返回列表 · CWE 索引

javaWARNING规则详情

各语言消息对照

语言消息
de

Eine mögliche JDBC-Injection wurde erkannt. Verwenden Sie die in queryForObject verfügbare parametrisierte Abfrage, statt Strings zu verketten oder zu formatieren: 'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'.

en

Possible JDBC injection detected. Use the parameterized query feature available in queryForObject instead of concatenating or formatting strings: 'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'

fr

Une injection JDBC possible a été détectée. Utilisez la requête paramétrée offerte par queryForObject au lieu de concaténer ou formater des chaînes : 'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'

ja

JDBC インジェクションの可能性が検出されました。queryForObject のパラメーター化クエリの機能を使用し、文字列の連結やフォーマットは行わないでください:'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'

ko

잠재적인 JDBC 인젝션이 감지되었습니다. queryForObject의 파라미터화된 쿼리 기능을 사용하고 문자열을 연결하거나 포매팅하지 마십시오: 'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'

ru

Обнаружена возможная JDBC-инъекция. Используйте параметризованные запросы queryForObject вместо склейки или форматирования строк: 'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'.

zh

检测到可能的 JDBC 注入。请使用 queryForObject 的参数化查询能力,不要拼接或格式化字符串:'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'

zh-Hant

檢測到可能的 JDBC 注入。請使用 queryForObject 的參數化查詢能力,不要串接或格式化字串:'jdbc.queryForObject("select * from table where name = ?", Integer.class, parameterName);'

CWE 知识卡

语言名称修复建议
deSQL-InjectionVerwenden Sie durchgängig parametrisierte Abfragen/Prepared Statements, verketten Sie keine SQL-Strings und schließen Sie beim ORM die Schnittstellen für rohe Verkettung.
en——
frNeutralisation inappropriée des éléments spéciaux dans une commande SQL (injection SQL)Utilisez systématiquement des requêtes paramétrées ou des instructions préparées ; interdisez la concaténation de SQL et fermez les points d'entrée SQL brut de l'ORM.
jaSQL インジェクションすべてパラメーター化クエリ/プリペアドステートメントを使用し、SQL を文字列連結で組み立てないでください。ORM ではネイティブな連結の入り口を無効化してください。
koSQL 인젝션모든 곳에서 매개변수화된 쿼리나 사전 컴파일된 문장을 사용하고, SQL을 문자열로 이어 붙이지 말며, ORM이 SQL을 문자열로 이어 붙이는 네이티브 진입점은 비활성화하십시오.
ruSQL-инъекцияВезде применяйте параметризованные запросы и подготовленные выражения; склейка SQL-строк запрещена, а нативные пути ORM закрывайте.
zhSQL 注入全部使用参数化查询/预编译语句,禁止字符串拼接 SQL,ORM 关闭原生拼接入口。
zh-HantSQL 注入全部使用參數化查詢/預備陳述式,禁止字串串接 SQL,ORM 關閉原生串接入口。

OWASP

A01:2017 - InjectionA03:2021 - Injection

元数据

likelihoodLOW
impactHIGH
confidenceLOW

修复字段

fix无
fix-regex无

上游规则源

github.com/opengrep/opengrep-rules/tree/main/java/lang/security/audit/jdbc-sql-formatted-string.yaml