{"id":505,"date":"2022-08-06T22:53:54","date_gmt":"2022-08-06T22:53:54","guid":{"rendered":"https:\/\/securitybriefing.net\/?p=505"},"modified":"2022-08-06T22:53:54","modified_gmt":"2022-08-06T22:53:54","slug":"sql%e3%82%a4%e3%83%b3%e3%82%b8%e3%82%a7%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3101-sqli%e3%81%a8%e3%81%af-%e6%94%bb%e6%92%83%e3%82%92%e9%98%b2%e3%81%90%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/securitybriefing.net\/ja\/%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3\/sql%e3%82%a4%e3%83%b3%e3%82%b8%e3%82%a7%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3101-sqli%e3%81%a8%e3%81%af-%e6%94%bb%e6%92%83%e3%82%92%e9%98%b2%e3%81%90%e6%96%b9%e6%b3%95\/","title":{"rendered":"SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u5165\u9580\uff1aSQLi\u3068\u306f\u4f55\u304b\u3001\u653b\u6483\u3092\u9632\u3050\u306b\u306f\uff1f"},"content":{"rendered":"<h2 class=\"wp-block-heading\" id=\"what-is-sql-injection\"><strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f<\/strong><\/h2>\n\n\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\uff08SQLi\uff09\u306f\u3001\u72af\u7f6a\u8005\u304c\u8106\u5f31\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u60aa\u610f\u306e\u3042\u308bSQL\u6587\u3092\u5b9f\u884c\u3067\u304d\u308b\u653b\u6483\u306e\u4e00\u7a2e\u3067\u3059\u3002\u653b\u6483\u8005\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u3067\u3001\u9867\u5ba2\u60c5\u5831\u3001\u500b\u4eba\u30c7\u30fc\u30bf\u3001\u4f01\u696d\u79d8\u5bc6\u306a\u3069\u306e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3001\u305d\u306e\u4ed5\u7d44\u307f\u3001\u304a\u3088\u3073\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002.<\/p>\n\n\n\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u306f\u3001SQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u4efb\u610f\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3067\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u653b\u6483\u306b\u3088\u308a\u3001\u653b\u6483\u8005\u306f\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u5f7c\u3089\u306f\u6d88\u8cbb\u8005\u60c5\u5831\u3001\u500b\u4eba\u30c7\u30fc\u30bf\u3001\u4f01\u696d\u79d8\u5bc6\u3001\u77e5\u7684\u8ca1\u7523\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001OWASP\u306b\u3088\u308b\u3068\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3059\u308b\u6700\u3082\u6df1\u523b\u306a\u653b\u6483\u306e\u4e00\u3064\u3067\u3059\u3002.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"types-of-sql-injection\"><strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u7a2e\u985e<\/strong><\/h2>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" class=\"wp-image-515\" src=\"http:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/types-of-SQL-Injectin-2.png\" alt=\"SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\" srcset=\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/types-of-SQL-Injectin-2.png 1024w, https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/types-of-SQL-Injectin-2-300x159.png 300w, https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/types-of-SQL-Injectin-2-768x407.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"inband-sqli\"><strong>\u30a4\u30f3\u30d0\u30f3\u30c9SQLi<\/strong><\/h3>\n\n\n<p>\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30af\u30a8\u30ea\u3092\u9001\u4fe1\u3057\u3001\u53d7\u4fe1\u3059\u308b\u305f\u3081\u306b\u540c\u3058\u30c1\u30e3\u30cd\u30eb\u3092\u4f7f\u7528\u3059\u308b\u653b\u6483\u3067\u3059\u3002\u30a4\u30f3\u30d0\u30f3\u30c9\u3068\u306f\u3001\u5fdc\u7b54\u304c\u540c\u3058\u901a\u4fe1\u5a92\u4f53\u3092\u4f7f\u7528\u3057\u3066\u53d6\u5f97\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u653b\u6483\u8005\u306e\u76ee\u7684\u306f\u3001\u53ef\u80fd\u3067\u3042\u308c\u3070\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u7528\u3057\u3066\u624b\u52d5\u3067\u653b\u6483\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067\u3059\u3050\u306b\u5fdc\u7b54\u3092\u5f97\u308b\u3053\u3068\u3067\u3059\u3002.<\/p>\n\n\n\n<p><strong>\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u4f8b<\/strong><\/p>\n\n\n\n<p>\u653b\u6483\u8005\u304c\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u884c\u3046\u6700\u3082\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5909\u66f4\u3057\u3066\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u500b\u4eba\u60c5\u5831\u3092\u898b\u3089\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4e00\u90e8\u3068\u3057\u3066\u9001\u4fe1\u3055\u308c\u308b\u5024\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u884c\u3048\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u305f\u5834\u5408\u3001\u653b\u6483\u8005\u306f\u305d\u308c\u3092\u5909\u66f4\u3057\u3066\u81ea\u5206\u306e\u540d\u524d\u3092\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-black-background-color has-text-color has-background\">SELECT * FROM \u30e6\u30fc\u30b6\u30fc WHERE \u30e6\u30fc\u30b6\u30fc_id LIKE 'current_user'<\/pre>\n\n\n\n<p>\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQLi\u3068\u30e6\u30cb\u30aa\u30f3\u30d9\u30fc\u30b9SQLi\u306f\u3001\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u6700\u3082\u983b\u7e41\u306a\u5f62\u614b\u306e2\u3064\u3067\u3059\u3002.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"errorbased-sqli\"><strong>\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQLi<\/strong><\/h4>\n\n\n<p>\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQLi\u6280\u6cd5\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u3092\u767a\u898b\u3059\u308b\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3059\u3002\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u6700\u3082\u4e00\u822c\u7684\u306a\u30bf\u30a4\u30d7\u3067\u3059\u3002.<\/p>\n\n\n\n<p><strong>\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQLi\u306e\u4f8b\uff1a<\/strong><\/p>\n\n\n\n<p>\u653b\u6483\u8005\u304c\u6b21\u306e\u8cc7\u683c\u60c5\u5831\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3057\u305f\u5834\u5408\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-black-background-color has-text-color has-background\">\u30e6\u30fc\u30b6\u30fc\u540d: ' OR 'a'='a\u30d1\u30b9\u30ef\u30fc\u30c9: \u4f55\u3067\u3082<\/pre>\n\n\n\n<p>\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u304c\u6587\u6cd5\u7684\u306b\u6b63\u3057\u304f\u306a\u3044\u305f\u3081\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u660e\u3089\u304b\u306b\u3057\u3001\u653b\u6483\u8005\u306f\u305d\u308c\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"unionbased-sqli\"><strong>\u30e6\u30cb\u30aa\u30f3\u30d9\u30fc\u30b9SQLi\uff1a<\/strong><\/h4>\n\n\n<p>\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001UNION\u6f14\u7b97\u5b50\u3092\u4f7f\u7528\u3057\u30662\u3064\u4ee5\u4e0a\u306eSELECT\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u51fa\u529b\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u3067\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"blind-sql-injection\"><strong>\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/strong><\/h3>\n\n\n<p>\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u306e\u5fdc\u7b54\u3092\u5f97\u308b\u305f\u3081\u306b\u3001\u771f\u307e\u305f\u306f\u507d\u306e\u5fdc\u7b54\u3092\u3082\u305f\u3089\u3059\u8cea\u554f\u3092\u3059\u308b\u653b\u6483\u3067\u3059\u3002\u653b\u6483\u8005\u306f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u7279\u5b9a\u306e\u30b3\u30fc\u30c9\u304c\u4f7f\u7528\u3055\u308c\u305f\u3068\u304d\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u7570\u306a\u308b\u5fdc\u7b54\u3092\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u30cf\u30c3\u30ab\u30fc\u304cSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fSQL\u30af\u30a8\u30ea\u306e\u69cb\u6587\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3059\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8b66\u544a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u9664\u3044\u3066\u3001\u5f93\u6765\u306eSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u540c\u3058\u3088\u3046\u306b\u6a5f\u80fd\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u653b\u6483\u8005\u304c\u5229\u7528\u3067\u304d\u308b\u5341\u5206\u306a\u60c5\u5831\u304c\u306a\u3044\u5834\u5408\u3001\u653b\u6483\u8005\u306f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u4e00\u9023\u306e\u8cea\u554f\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u30d6\u30e9\u30a4\u30f3\u30c9\u30d6\u30fc\u30eb\u30d9\u30fc\u30b9SQLi\u3068\u30d6\u30e9\u30a4\u30f3\u30c9\u30bf\u30a4\u30e0\u30d9\u30fc\u30b9SQLi\u306b\u5206\u3051\u3089\u308c\u307e\u3059\u3002.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"booleanbased-blind-sqli\"><strong>\u30d6\u30fc\u30eb\u30d9\u30fc\u30b9\u30d6\u30e9\u30a4\u30f3\u30c9SQLi<\/strong><\/h4>\n\n\n<p>\u30d6\u30fc\u30eb\u30d9\u30fc\u30b9\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u306e\u5fdc\u7b54\u3092\u5f97\u308b\u305f\u3081\u306b\u3001\u771f\u307e\u305f\u306f\u507d\u306e\u5fdc\u7b54\u3092\u3082\u305f\u3089\u3059\u8cea\u554f\u3092\u3059\u308b\u653b\u6483\u3067\u3059\u3002\u653b\u6483\u8005\u306f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u7279\u5b9a\u306e\u30b3\u30fc\u30c9\u304c\u4f7f\u7528\u3055\u308c\u305f\u3068\u304d\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u7570\u306a\u308b\u5fdc\u7b54\u3092\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u30d6\u30fc\u30eb\u30d9\u30fc\u30b9\u30d6\u30e9\u30a4\u30f3\u30c9SQLi\u306e\u4f8b\uff1a<\/p>\n\n\n\n<p>\u653b\u6483\u8005\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7a2e\u985e\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u3001\u6b21\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-black-background-color has-text-color has-background\">SELECT * FROM \u30e6\u30fc\u30b6\u30fc WHERE \u30e6\u30fc\u30b6\u30fc_id LIKE 'current_user' and \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9() like '%type%'<\/pre>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304cMySQL\u306e\u5834\u5408\u3001\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<\/p>\n\n\n\n<p>SQL\u69cb\u6587\u306b\u30a8\u30e9\u30fc\u304c\u3042\u308a\u307e\u3059\u3002\u6b63\u3057\u3044\u69cb\u6587\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001MySQL\u30b5\u30fc\u30d0\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u5bfe\u5fdc\u3059\u308b\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u2018and database() like \u2018%type%\u201d \u306e\u8fd1\u304f\u3067<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"timebased-blind-sql-injection\"><strong>\u30bf\u30a4\u30e0\u30d9\u30fc\u30b9\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/strong><\/h4>\n\n\n<p>\u30bf\u30a4\u30e0\u30d9\u30fc\u30b9\u30d6\u30e9\u30a4\u30f3\u30c9\u653b\u6483\u306f\u3001\u30af\u30a8\u30ea\u3092\u3088\u308a\u9045\u304f\u5b9f\u884c\u3055\u305b\u308b\u30b3\u30fc\u30c9\u3092\u542b\u3080SQL\u30b3\u30de\u30f3\u30c9\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u5834\u5408\u3067\u3059\u3002.<\/p>\n\n\n\n<p>\u30bf\u30a4\u30e0\u30d9\u30fc\u30b9\u30d6\u30e9\u30a4\u30f3\u30c9\u653b\u6483\u306f\u3001\u30a2\u30af\u30bb\u30b9\u6642\u9593\u306b\u57fa\u3065\u3044\u3066\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u653b\u6483\u306f\u3001\u30d6\u30e9\u30a4\u30f3\u30c9\u307e\u305f\u306f\u63a8\u8ad6\u6ce8\u5165\u653b\u6483\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u653b\u6483\u8005\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9593\u3067\u30c7\u30fc\u30bf\u304c\u6d41\u308c\u306a\u3044\u30bf\u30a4\u30d7\u306e\u653b\u6483\u3067\u3059\u304c\u3001\u5fdc\u7b54\u304c\u306a\u3044\u305f\u3081\u3001\u30d6\u30e9\u30a4\u30f3\u30c9\u6ce8\u5165\u653b\u6483\u3068\u3082\u547c\u3070\u308c\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u5fdc\u7b54\u6642\u9593\u306f\u3001\u7b54\u3048\u304c\u6b63\u3057\u3044\u304b\u9593\u9055\u3063\u3066\u3044\u308b\u304b\u3092\u793a\u3057\u307e\u3059\u3002\u5fdc\u7b54\u304c\u5426\u5b9a\u7684\u3067\u3042\u308b\u5834\u5408\u3001\u4fb5\u5165\u8005\u306f\u5225\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u306e\u653b\u6483\u624b\u6cd5\u306f\u3001\u7279\u306b\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u653b\u6483\u3059\u308b\u969b\u306b\u3001\u30cf\u30c3\u30ab\u30fc\u304c\u5404\u6587\u5b57\u3092\u500b\u5225\u306b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u9045\u3044\u3067\u3059\u3002.<\/p>\n\n\n\n<p><strong>\u30d6\u30e9\u30a4\u30f3\u30c9SQLi\u306e\u4f8b<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u653b\u6483\u8005\u306fid=999\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u6b21\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-black-background-color has-text-color has-background\">IF(SUBSTRING((SELECT \u30d1\u30b9\u30ef\u30fc\u30c9 FROM \u30e6\u30fc\u30b6\u30fc WHERE \u30e6\u30fc\u30b6\u30fc_id=999),0, LEN('secret'))='secret', SLEEP(30), 'false')<\/pre>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306bid 999\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3057\u3001\u305d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304csecret\u3067\u3042\u308b\u5834\u5408\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f30\u79d2\u9593\u30b9\u30ea\u30fc\u30d7\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306ffalse\u3092\u8fd4\u3057\u307e\u3059\u3002.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"outofband-sqli\"><strong>\u30a2\u30a6\u30c8\u30aa\u30d6\u30d0\u30f3\u30c9SQLi<\/strong><\/h3>\n\n\n<p>\u30c7\u30fc\u30bf\u3092\u76d7\u3080\u3053\u3068\u3092\u671b\u3080\u4eba\u306f\u3001\u901a\u5e38\u306e\u30b5\u30fc\u30d0\u30fc\u3068\u4ed6\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u9593\u306e\u901a\u4fe1\u306e\u4e00\u90e8\u3067\u306f\u306a\u3044\u65b9\u6cd5\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306bSQL\u30b3\u30fc\u30c9\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001DNS\u307e\u305f\u306fHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4ecb\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u306b\u60c5\u5831\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u30a2\u30d7\u30ea\u306e\u5fdc\u7b54\u306f\u3001\u30c7\u30fc\u30bf\u304c\u8fd4\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u554f\u984c\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3001\u307e\u305f\u306f\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u306b\u3069\u308c\u304f\u3089\u3044\u6642\u9593\u304c\u304b\u304b\u308b\u304b\u306b\u5f71\u97ff\u3055\u308c\u307e\u305b\u3093\u3002\u30a2\u30a6\u30c8\u30aa\u30d6\u30d0\u30f3\u30c9\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u81ea\u7531\u306b\u767a\u751f\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u6ce8\u5165\u3055\u308c\u305f\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u3001\u3053\u308c\u3089\u306f\u6761\u4ef6\u4ed8\u304d\u3067\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3055\u308c\u30011\u30d3\u30c3\u30c8\u305a\u3064\u77e5\u8b58\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u306f\u307e\u305f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u304b\u3089\u306e\u3044\u304f\u3064\u304b\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4ecb\u3057\u3066\u6f0f\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u8996\u899a\u7684\u306b\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30a2\u30d7\u30ea\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u9001\u4fe1\u3055\u308c\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002.<\/p>\n\n\n\n<p><strong>\u30a2\u30a6\u30c8\u30aa\u30d6\u30d0\u30f3\u30c9SQLi\u306e\u4f8b<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u653b\u6483\u8005\u306f\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3088\u3046\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u6b21\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-black-background-color has-text-color has-background\">SELECT user_id FROM users WHERE username='$username' AND password='$password' LIMIT 0,0 UNION SELECT NULL,'' INTO OUTFILE '\/var\/opt\/databases\/$filename.php'; --<\/pre>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u305d\u306e\u30e6\u30fc\u30b6\u30fcID\u3092\u8fd4\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308bPHP\u30b3\u30fc\u30c9\u3092\u542b\u3080\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u653b\u6483\u8005\u306f\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-prevent-an-sql-injection\"><strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u9632\u3050\u65b9\u6cd5<\/strong><\/h2>\n\n\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u304b\u3089\u4fdd\u8b77\u3059\u308b\u6700\u826f\u306e\u65b9\u6cd5\u306f\u3001\u5165\u529b\u691c\u8a3c\u3001\u6e96\u5099\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3001\u304a\u3088\u3073\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3055\u308c\u305f\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u3092\u76f4\u63a5\u4f7f\u7528\u3057\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u958b\u767a\u8005\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u306a\u3069\u306e\u30a6\u30a7\u30d6\u30d5\u30a9\u30fc\u30e0\u5165\u529b\u3060\u3051\u3067\u306a\u304f\u3001\u3059\u3079\u3066\u306e\u5165\u529b\u3092\u30b5\u30cb\u30bf\u30a4\u30ba\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u7591\u308f\u3057\u3044\u30b3\u30fc\u30c9\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u306f\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\u3092\u6392\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30e9\u30a4\u30d6\u30b5\u30a4\u30c8\u3067\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u554f\u984c\u3092\u96a0\u3057\u3066\u3001\u8aa4\u3063\u3066\u305d\u308c\u3089\u3092\u660e\u3089\u304b\u306b\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u826f\u3044\u8003\u3048\u3067\u3059\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u5229\u7528\u3067\u304d\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b7\u30b9\u30c6\u30e0\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u554f\u984c\u304c\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u306f\u3001\u3059\u3050\u306b\u30aa\u30d5\u30e9\u30a4\u30f3\u306b\u3057\u3066\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u9023\u7d61\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5f7c\u3089\u306f\u3001\u30b5\u30a4\u30c8\u304c\u4fb5\u5bb3\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3001\u554f\u984c\u3092\u4fee\u6b63\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u624b\u9806\u3092\u6559\u3048\u3066\u304f\u308c\u307e\u3059\u3002\u305d\u306e\u9593\u306b\u3001\u3059\u3079\u3066\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u554f\u984c\u3092\u77e5\u3089\u305b\u3001\u3067\u304d\u308b\u3060\u3051\u65e9\u304f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"prevention-tips-for-avoiding-sql-injections\"><strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306e\u4e88\u9632\u7b56<\/strong><\/h2>\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u3067SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u8106\u5f31\u6027\u3092\u56de\u907f\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6280\u8853\u306f\u3001XML\u306a\u3069\u306e\u307b\u3068\u3093\u3069\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6280\u8853\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u3088\u308a\u5b89\u5168\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"1-use-of-properly-constructed-stored-procedures\">1) \u9069\u5207\u306b\u69cb\u7bc9\u3055\u308c\u305f\u30b9\u30c8\u30a2\u30c9\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u4f7f\u7528<\/h3>\n\n\n<p>\u521d\u5fc3\u8005\u306f\u3001\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u304b\u3089\u59cb\u3081\u308b\u3079\u304d\u3067\u3059\u3002\u3053\u308c\u306f\u52d5\u7684\u30af\u30a8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3088\u308a\u3082\u7c21\u5358\u3067\u3001\u7406\u89e3\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3055\u308c\u305f\u30af\u30a8\u30ea\u306f\u3001\u958b\u767a\u8005\u304c\u3059\u3079\u3066\u306eSQL\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3001\u5f8c\u3067\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3068\u60c5\u5831\u3092\u533a\u5225\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u6e96\u5099\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306f\u3001\u8ab0\u304b\u304cSQL\u547d\u4ee4\u3092\u4e0e\u3048\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u30af\u30a8\u30ea\u306e\u76ee\u7684\u304c\u5909\u66f4\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"2-allowlist-input-validation\">2) \u8a31\u53ef\u30ea\u30b9\u30c8\u5165\u529b\u691c\u8a3c<\/h3>\n\n\n<p>SQL\u30af\u30a8\u30ea\u306f\u3001\u30c7\u30fc\u30bf\u306e\u7279\u5b9a\u306e\u5834\u6240\u3067\u30d0\u30a4\u30f3\u30c9\u5909\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001Python\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001%s\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u3066\u3001\u5404\u30d0\u30a4\u30f3\u30c9\u5909\u6570\u306b\u8a31\u53ef\u3055\u308c\u308b\u6587\u5b57\u306b\u5bfe\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u8a31\u53ef\u30ea\u30b9\u30c8\u3068\u7167\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 <strong>JavaScript\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\\w\u3092\u4f7f\u7528\u3057\u3066\u82f1\u6570\u5b57\u3068\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\u6587\u5b57\u3092\u4e00\u81f4\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong> \u8a31\u53ef\u30ea\u30b9\u30c8\u306f\u3001\u8aa4\u691c\u77e5\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3067\u304d\u308b\u3060\u3051\u5177\u4f53\u7684\u3067\u3042\u308b\u3079\u304d\u3067\u3059\u3002.<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u7c73\u56fd\u306e\u96fb\u8a71\u756a\u53f7\u3092\u63a2\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u6b21\u306e\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u7528\u3057\u307e\u3059\uff1a <strong>\/^\\d{11}$\/<\/strong> \u3053\u308c\u306f\u3001\u96fb\u8a71\u756a\u53f7\u3067\u3042\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b11\u6841\u306e\u6570\u5b57\u306e\u6587\u5b57\u5217\u306b\u4e00\u81f4\u3057\u307e\u3059\u3002\u8ab0\u304b\u304c\u300cabcdef\u300d\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u9001\u4fe1\u3057\u3088\u3046\u3068\u3057\u305f\u5834\u5408\u3001\u305d\u308c\u306f\u4e00\u81f4\u305b\u305a\u3001\u5165\u529b\u306f\u7121\u52b9\u306b\u306a\u308a\u307e\u3059\u3002.<\/p>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u304c\u5b89\u5168\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u306f\u306a\u304f\u30b3\u30fc\u30c9\u304b\u3089\u306e\u5024\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3067\u3082\u3001\u305d\u308c\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\uff01.<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30d1\u30e9\u30e1\u30fc\u30bf\u5024\u304c\u7279\u5b9a\u306e\u30c6\u30fc\u30d6\u30eb\u304a\u3088\u3073\u5217\u540d\u3092\u5bfe\u8c61\u3068\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u5024\u306f\u5bfe\u5fdc\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u304a\u3088\u3073\u5217\u540d\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3001\u672a\u691c\u8a3c\u306e\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u304c\u30af\u30a8\u30ea\u306b\u5165\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-vivid-green-cyan-color has-black-background-color has-text-color has-background\">3) \u30db\u30ef\u30a4\u30c8\u30ea\u30b9\u30c8\u306e\u4f7f\u7528<\/pre>\n\n\n\n<p>\u60aa\u3044\u6587\u5b57\u306e\u30d6\u30e9\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u57fa\u3065\u3044\u3066\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u7279\u5b9a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u4e88\u60f3\u3055\u308c\u308b\u826f\u3044\u6587\u5b57\u306e\u8a31\u53ef\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u65b9\u304c\u306f\u308b\u304b\u306b\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u304c\u59cb\u307e\u308b\u524d\u306b\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u2018<strong>\u4f8b\u3048\u3070\u3001\u96fb\u8a71\u756a\u53f7\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306f\u6570\u5b57\u3068\u30c0\u30c3\u30b7\u30e5\u306e\u307f\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u6709\u52b9\u306a\u6587\u5b57\u306e\u307f\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/strong>\u20184) \u6700\u65b0\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f7f\u7528\u3059\u308b.<\/p>\n\n\n\n<p>PHP\u306f\u53e4\u3044\u30a6\u30a7\u30d6\u958b\u767a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306fSQLi\u4fdd\u8b77\u3092\u6301\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u5229\u7528\u53ef\u80fd\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u74b0\u5883\u3001\u8a00\u8a9e\u3001\u304a\u3088\u3073\u95a2\u9023\u6280\u8853\u306e\u6700\u65b0\u306e\u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001PHP\u306e\u4ee3\u308f\u308a\u306bPDO\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>5) \u5b9a\u671f\u7684\u306b\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"3-use-whitelists\">SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u975e\u5e38\u306b\u898b\u3064\u3051\u306b\u304f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5b9a\u671f\u7684\u306b\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8106\u5f31\u6027\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/h3>\n\n\n<p>6) \u6700\u5c0f\u7279\u6a29\u306e\u5f37\u5236.<\/p>\n\n\n\n<p>\u6700\u5c0f\u7279\u6a29\u306e\u539f\u5247\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4ed5\u4e8b\u3092\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u6700\u5c0f\u9650\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5236\u9650\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6982\u5ff5\u3067\u3059\u3002\u3053\u308c\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u6301\u3064\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6570\u3068\u305d\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u6301\u3064\u7279\u6a29\u3092\u5236\u9650\u3059\u308b\u3053\u3068\u304c\u542b\u307e\u308c\u307e\u3059\u3002.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"4-use-the-most-uptodate-platforms\">\u6a5f\u80fd\u6027\u306e\u6700\u5c0f\u5236\u9650\uff08LRF\uff09\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u5229\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3001\u304a\u3088\u3073\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u30d7\u30ed\u30bb\u30b9\u3092\u57fa\u672c\u7684\u3067\u8a31\u5bb9\u53ef\u80fd\u306a\u30bf\u30b9\u30af\u306b\u5fc5\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306b\u306e\u307f\u5236\u9650\u3059\u308b\u5b9f\u8df5\u3068\u6982\u5ff5\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u5229\u3084\u30af\u30ea\u30a2\u30e9\u30f3\u30b9\u30ec\u30d9\u30eb\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u4eba\u3005\u304c\u52b9\u679c\u7684\u306b\u4ed5\u4e8b\u3092\u3059\u308b\u305f\u3081\u306b\u91cd\u8981\u3067\u3059\u3002<\/h3>\n\n\n<p>\u6700\u5c0f\u7279\u6a29\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30b7\u30b9\u30c6\u30e0\u3001\u304a\u3088\u3073\u30c7\u30d0\u30a4\u30b9\u304c\u7279\u5b9a\u306e\u30bf\u30b9\u30af\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u6a29\u9650\u306e\u307f\u3092\u6301\u3064\u3053\u3068\u3092\u8981\u6c42\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u539f\u5247\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u8ab0\u304b\u304c\u8106\u5f31\u6027\u3092\u5229\u7528\u3057\u3066\u640d\u5bb3\u3092\u4e0e\u3048\u305f\u5834\u5408\u306e\u5f71\u97ff\u304c\u5236\u9650\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u5fc5\u8981\u4ee5\u4e0a\u306e\u6a29\u9650\u3092\u4e0e\u3048\u308b\u3053\u3068\u3068\u306f\u5bfe\u7167\u7684\u3067\u3042\u308a\u3001SQL\u653b\u6483\u3067\u91cd\u5927\u306a\u640d\u5bb3\u3092\u5f15\u304d\u8d77\u3053\u3059\u30ea\u30b9\u30af\u3092\u5897\u52a0\u3055\u305b\u307e\u3059\u3002.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"5-scan-your-web-application-regularly\">SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3 \u2013 \u3088\u304f\u3042\u308b\u8cea\u554f<\/h3>\n\n\n<p>\u6700\u3082\u4e00\u822c\u7684\u306aSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u4f55\u3067\u3059\u304b\uff1f.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"6-enforcing-least-privilege\">\u30a4\u30f3\u30d0\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u6700\u3082\u4e00\u822c\u7684\u306aSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u306e\u30bf\u30a4\u30d7\u3067\u3059\u3002\u653b\u6483\u8005\u304c\u30da\u30a4\u30ed\u30fc\u30c9\u3092\u914d\u4fe1\u3057\u3001\u7d50\u679c\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306b\u540c\u3058\u901a\u4fe1\u30c1\u30e3\u30cd\u30eb\u3092\u4f7f\u7528\u3067\u304d\u308b\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3059\u3002<\/h3>\n\n\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u6700\u826f\u306e\u9632\u5fa1\u306f\u4f55\u3067\u3059\u304b\uff1f.<\/p>\n\n\n\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306b\u5bfe\u3059\u308b\u6700\u826f\u306e\u9632\u5fa1\u306f\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u5316\u3055\u308c\u305f\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u30af\u30a8\u30ea\u306f\u3001\u5f8c\u3067\u63d0\u4f9b\u3055\u308c\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3068\u60c5\u5831\u3092\u533a\u5225\u3067\u304d\u307e\u3059\u3002.<\/p>\n\n\n\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3069\u306e\u3088\u3046\u306b\u691c\u51fa\u3055\u308c\u307e\u3059\u304b\uff1f.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"sql-injection-frequently-asked-questions\"><strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3067\u691c\u51fa\u3067\u304d\u307e\u3059\u3002\u4e00\u3064\u306e\u65b9\u6cd5\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\uff08WAF\uff09\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002WAF\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u9593\u306b\u4f4d\u7f6e\u3059\u308b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u307e\u305f\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002\u60aa\u610f\u306e\u3042\u308b\u6d3b\u52d5\u3092\u691c\u67fb\u3057\u3001SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u3092\u30d6\u30ed\u30c3\u30af\u3067\u304d\u307e\u3059\u3002<\/strong><\/h2>\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\u00a0<\/div><\/div>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\">\n<div id=\"faq-question-1659826159348\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">\u30bb\u30ab\u30f3\u30c9\u30aa\u30fc\u30c0\u30fcSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/strong>\n<p class=\"schema-faq-answer\">\u30bb\u30ab\u30f3\u30c9\u30aa\u30fc\u30c0\u30fcSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u4fdd\u5b58\u3055\u308c\u3001\u5f8c\u3067\u5b9f\u884c\u3055\u308c\u308b\u30da\u30a4\u30ed\u30fc\u30c9\u3092\u6ce8\u5165\u3067\u304d\u308b\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u653b\u6483\u306f\u3001\u653b\u6483\u8005\u304c\u4fdd\u5b58\u3055\u308c\u305f\u30da\u30a4\u30ed\u30fc\u30c9\u306e\u5b9f\u884c\u3092\u30c8\u30ea\u30ac\u30fc\u3059\u308b\u65b9\u6cd5\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u9054\u6210\u304c\u3088\u308a\u56f0\u96e3\u3067\u3059\u3002.<\/p>\n<\/div>\n<div id=\"faq-question-1659826187832\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/strong>\n<p class=\"schema-faq-answer\">\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30da\u30a4\u30ed\u30fc\u30c9\u306e\u7d50\u679c\u3092\u76f4\u63a5\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u653b\u6483\u3067\u3059\u3002\u4ee3\u308f\u308a\u306b\u3001\u771f\u307e\u305f\u306f\u507d\u306e\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u60c5\u5831\u3092\u63a8\u6e2c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u653b\u6483\u306f\u5b9f\u884c\u304c\u3088\u308a\u56f0\u96e3\u3067\u3059\u304c\u3001\u4ed6\u306e\u30bf\u30a4\u30d7\u306eSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u306b\u5371\u967a\u3067\u3059\u3002.<\/p>\n<\/div>\n<div id=\"faq-question-1659826216670\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">\u30b9\u30bf\u30c3\u30af\u30af\u30a8\u30ea\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/strong>\n<p class=\"schema-faq-answer\">\u30b9\u30bf\u30c3\u30af\u30af\u30a8\u30ea\u306f\u3001\u653b\u6483\u8005\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u305f\u3081\u306b\u8907\u6570\u306e\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3059\u308bSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u4e00\u7a2e\u3067\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u653b\u6483\u306f\u5b9f\u884c\u304c\u3088\u308a\u56f0\u96e3\u3067\u3059\u304c\u3001\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u975e\u5e38\u306b\u5371\u967a\u3067\u3059\u3002.<\/p>\n<\/div>\n<div id=\"faq-question-1659826245103\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/strong>\n<p class=\"schema-faq-answer\">\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a8\u30e9\u30fc\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u60c5\u5831\u3092\u63a8\u6e2c\u3059\u308b\u653b\u6483\u3067\u3059\u3002\u3053\u306e\u653b\u6483\u306f\u5b9f\u884c\u304c\u3088\u308a\u56f0\u96e3\u3067\u3059\u304c\u3001\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u975e\u5e38\u306b\u5371\u967a\u3067\u3059\u3002.<\/p>\n<\/div>\n<div id=\"faq-question-1659826275267\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u3092\u5b66\u3076\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u304b\u3001\u305d\u308c\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u304b\u3001\u653b\u6483\u304b\u3089\u30b5\u30a4\u30c8\u3092\u4fdd\u8b77\u3059\u308b\u65b9\u6cd5\u3002<\/strong>\n<p class=\"schema-faq-answer\">SQLi\u3068\u306f\u4f55\u304b\u3068\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5 | \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d6\u30ea\u30fc\u30d5\u30a3\u30f3\u30b0.<\/p>\n<\/div>\n<div id=\"faq-question-1659826301781\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">\u30b9\u30bf\u30c3\u30af\u30af\u30a8\u30ea\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/strong>\n<p class=\"schema-faq-answer\">\u30b9\u30bf\u30c3\u30af\u30af\u30a8\u30ea\u306f\u3001\u653b\u6483\u8005\u304c\u8907\u6570\u306e\u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u30bf\u30a4\u30d7\u306eSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3067\u3059\u3002\u3053\u306e\u30bf\u30a4\u30d7\u306e\u653b\u6483\u306f\u5b9f\u884c\u304c\u3088\u308a\u56f0\u96e3\u3067\u3059\u304c\u3001\u6210\u529f\u3059\u308b\u3068\u975e\u5e38\u306b\u5371\u967a\u3067\u3059\u3002.<\/p>\n<\/div>\n<div id=\"faq-question-1659826330814\" class=\"schema-faq-section\"><strong class=\"schema-faq-question\">\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9\u306eSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/strong>\n<p class=\"schema-faq-answer\">\u30a8\u30e9\u30fc\u306b\u57fa\u3065\u304fSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306f\u3001\u653b\u6483\u8005\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a8\u30e9\u30fc\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u60c5\u5831\u3092\u63a8\u6e2c\u3059\u308b\u653b\u6483\u3067\u3059\u3002\u3053\u306e\u653b\u6483\u306f\u5b9f\u884c\u304c\u3088\u308a\u56f0\u96e3\u3067\u3059\u304c\u3001\u6210\u529f\u3059\u308b\u3068\u975e\u5e38\u306b\u5371\u967a\u3067\u3059\u3002.<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\uff08SQLi\uff09\u3068\u306f\u3001\u72af\u7f6a\u8005\u304c\u8106\u5f31\u306a\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u60aa\u610f\u306e\u3042\u308bSQL\u6587\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3059\u308b\u653b\u6483\u306e\u4e00\u7a2e\u3067\u3059\u3002\u653b\u6483\u8005\u306f\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3001\u4f8b\u3048\u3070\u3001... <a class=\"more-link\" href=\"https:\/\/securitybriefing.net\/ja\/%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3\/sql%e3%82%a4%e3%83%b3%e3%82%b8%e3%82%a7%e3%82%af%e3%82%b7%e3%83%a7%e3%83%b3101-sqli%e3%81%a8%e3%81%af-%e6%94%bb%e6%92%83%e3%82%92%e9%98%b2%e3%81%90%e6%96%b9%e6%b3%95\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u5165\u9580\uff1aSQLi\u3068\u306f\u4f55\u304b\u3001\u653b\u6483\u3092\u9632\u3050\u306b\u306f\uff1f<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":644,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is SQLi and How to Prevent Attacks | securitybriefing<\/title>\n<meta name=\"description\" content=\"Learn the basics of SQL injection. what is SQL injection, how does it work, and what ways to protect your site from attacks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/securitybriefing.net\/ja\/\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\/sql\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3101-sqli\u3068\u306f-\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is SQLi and How to Prevent Attacks | securitybriefing\" \/>\n<meta property=\"og:description\" content=\"Learn the basics of SQL injection. what is SQL injection, how does it work, and what ways to protect your site from attacks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/securitybriefing.net\/ja\/\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\/sql\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3101-sqli\u3068\u306f-\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Security Briefing\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-06T22:53:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png\" \/>\n\t<meta property=\"og:image:width\" content=\"558\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"security\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"security\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"11\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/\"},\"author\":{\"name\":\"security\",\"@id\":\"https:\/\/securitybriefing.net\/#\/schema\/person\/e99d7bfcfc8ecee5ed34ef3f0416ee81\"},\"headline\":\"SQL Injection 101: What is SQLi and How to Prevent Attacks\",\"datePublished\":\"2022-08-06T22:53:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/\"},\"wordCount\":2130,\"publisher\":{\"@id\":\"https:\/\/securitybriefing.net\/#organization\"},\"image\":{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png\",\"articleSection\":[\"Security\"],\"inLanguage\":\"ja\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/\",\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/\",\"name\":\"What is SQLi and How to Prevent Attacks | securitybriefing\",\"isPartOf\":{\"@id\":\"https:\/\/securitybriefing.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png\",\"datePublished\":\"2022-08-06T22:53:54+00:00\",\"description\":\"Learn the basics of SQL injection. what is SQL injection, how does it work, and what ways to protect your site from attacks.\",\"breadcrumb\":{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826159348\"},{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826187832\"},{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826216670\"},{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826245103\"},{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826275267\"},{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826301781\"},{\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826330814\"}],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage\",\"url\":\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png\",\"contentUrl\":\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png\",\"width\":558,\"height\":500,\"caption\":\"sql injection\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/securitybriefing.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Injection 101: What is SQLi and How to Prevent Attacks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/securitybriefing.net\/#website\",\"url\":\"https:\/\/securitybriefing.net\/\",\"name\":\"Security Briefing\",\"description\":\"Read cybersecurity news, online safety guides, cyber threat updates, and use free security tools from Security Briefing.\",\"publisher\":{\"@id\":\"https:\/\/securitybriefing.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/securitybriefing.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/securitybriefing.net\/#organization\",\"name\":\"Security Briefing\",\"url\":\"https:\/\/securitybriefing.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/securitybriefing.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2023\/06\/security-briefing-logo-5.png\",\"contentUrl\":\"https:\/\/securitybriefing.net\/wp-content\/uploads\/2023\/06\/security-briefing-logo-5.png\",\"width\":256,\"height\":70,\"caption\":\"Security Briefing\"},\"image\":{\"@id\":\"https:\/\/securitybriefing.net\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/securitybriefing.net\/#\/schema\/person\/e99d7bfcfc8ecee5ed34ef3f0416ee81\",\"name\":\"security\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/securitybriefing.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f882f35c703c897d1ec76c380b39ceed3f7309182d44a3177612bc192f6c9ddb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f882f35c703c897d1ec76c380b39ceed3f7309182d44a3177612bc192f6c9ddb?s=96&d=mm&r=g\",\"caption\":\"security\"},\"description\":\"admin is a senior staff writer for Government Technology. She previously wrote for PYMNTS and The Bay State Banner, and holds a B.A. in creative writing from Carnegie Mellon. She\u2019s based outside Boston.\",\"sameAs\":[\"http:\/\/securitybriefing.net\"],\"url\":\"https:\/\/securitybriefing.net\/ja\/author\/security\/\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826159348\",\"position\":1,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826159348\",\"name\":\"What is the most common SQL injection?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"In-band SQL injection is the most common type of SQL injection attack. It occurs when an attacker can use the same communication channel to deliver the payload and gather results.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826187832\",\"position\":2,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826187832\",\"name\":\"What is the best defense of SQL injection?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The best defense against SQL injection is to use parameterized queries. This type of query uses placeholder values for parameters, which are supplied at a later date. This method allows the database to identify between source code and information.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826216670\",\"position\":3,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826216670\",\"name\":\"How is SQL injection detected?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"SQL injection can be detected in several ways. One method is to use a web application firewall (WAF). A WAF is a piece of hardware or software that sits between a web application and the internet. It inspects traffic for malicious activity and can block SQL injection attacks.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826245103\",\"position\":4,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826245103\",\"name\":\"What is second-order SQL injection?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Second-order SQL injection occurs when an attacker can inject a payload that is stored by the web application and then later executed. This type of attack is more difficult to achieve because the attacker must have a way to trigger the execution of the stored payload.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826275267\",\"position\":5,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826275267\",\"name\":\"What is blind SQL injection?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Blind SQL injection is an attack where the attacker does not directly see the results of their payload. Instead, they must use true or false statements to infer information from the database. This type of attack is more challenging to execute but can be just as dangerous as other types of SQL injection.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826301781\",\"position\":6,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826301781\",\"name\":\"What is a stacked query?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A stacked query is a type of SQL injection where the attacker uses multiple queries to extract information from the database. This type of attack is more challenging to execute but can be very dangerous if successful.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826330814\",\"position\":7,\"url\":\"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826330814\",\"name\":\"What is an error-based SQL injection?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Error-based SQL injection is an attack where the attacker uses database errors to infer information from the database. This attack is more challenging to execute but can be very dangerous if successful.\",\"inLanguage\":\"ja\"},\"inLanguage\":\"ja\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQLi\u3068\u306f\u4f55\u304b\u3001\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5 | securitybriefing","description":"SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u304b\u3001\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u306e\u304b\u3001\u305d\u3057\u3066\u653b\u6483\u304b\u3089\u30b5\u30a4\u30c8\u3092\u5b88\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3002.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/securitybriefing.net\/ja\/\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\/sql\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3101-sqli\u3068\u306f-\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"What is SQLi and How to Prevent Attacks | securitybriefing","og_description":"Learn the basics of SQL injection. what is SQL injection, how does it work, and what ways to protect your site from attacks.","og_url":"https:\/\/securitybriefing.net\/ja\/\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\/sql\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3101-sqli\u3068\u306f-\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5\/","og_site_name":"Security Briefing","article_published_time":"2022-08-06T22:53:54+00:00","og_image":[{"width":558,"height":500,"url":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png","type":"image\/png"}],"author":"security","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"security","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"11\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#article","isPartOf":{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/"},"author":{"name":"security","@id":"https:\/\/securitybriefing.net\/#\/schema\/person\/e99d7bfcfc8ecee5ed34ef3f0416ee81"},"headline":"SQL Injection 101: What is SQLi and How to Prevent Attacks","datePublished":"2022-08-06T22:53:54+00:00","mainEntityOfPage":{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/"},"wordCount":2130,"publisher":{"@id":"https:\/\/securitybriefing.net\/#organization"},"image":{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage"},"thumbnailUrl":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png","articleSection":["Security"],"inLanguage":"ja"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/","url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/","name":"SQLi\u3068\u306f\u4f55\u304b\u3001\u653b\u6483\u3092\u9632\u3050\u65b9\u6cd5 | securitybriefing","isPartOf":{"@id":"https:\/\/securitybriefing.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage"},"image":{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage"},"thumbnailUrl":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png","datePublished":"2022-08-06T22:53:54+00:00","description":"SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u304b\u3001\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u306e\u304b\u3001\u305d\u3057\u3066\u653b\u6483\u304b\u3089\u30b5\u30a4\u30c8\u3092\u5b88\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3002.","breadcrumb":{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826159348"},{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826187832"},{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826216670"},{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826245103"},{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826275267"},{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826301781"},{"@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826330814"}],"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#primaryimage","url":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png","contentUrl":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2022\/08\/sql-injection.png","width":558,"height":500,"caption":"sql injection"},{"@type":"BreadcrumbList","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/securitybriefing.net\/"},{"@type":"ListItem","position":2,"name":"SQL Injection 101: What is SQLi and How to Prevent Attacks"}]},{"@type":"WebSite","@id":"https:\/\/securitybriefing.net\/#website","url":"https:\/\/securitybriefing.net\/","name":"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d6\u30ea\u30fc\u30d5\u30a3\u30f3\u30b0","description":"Read cybersecurity news, online safety guides, cyber threat updates, and use free security tools from Security Briefing.","publisher":{"@id":"https:\/\/securitybriefing.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/securitybriefing.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/securitybriefing.net\/#organization","name":"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d6\u30ea\u30fc\u30d5\u30a3\u30f3\u30b0","url":"https:\/\/securitybriefing.net\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/securitybriefing.net\/#\/schema\/logo\/image\/","url":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2023\/06\/security-briefing-logo-5.png","contentUrl":"https:\/\/securitybriefing.net\/wp-content\/uploads\/2023\/06\/security-briefing-logo-5.png","width":256,"height":70,"caption":"Security Briefing"},"image":{"@id":"https:\/\/securitybriefing.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/securitybriefing.net\/#\/schema\/person\/e99d7bfcfc8ecee5ed34ef3f0416ee81","name":"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/securitybriefing.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f882f35c703c897d1ec76c380b39ceed3f7309182d44a3177612bc192f6c9ddb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f882f35c703c897d1ec76c380b39ceed3f7309182d44a3177612bc192f6c9ddb?s=96&d=mm&r=g","caption":"security"},"description":"\u30ac\u30d0\u30e1\u30f3\u30c8\u30fb\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u8a8c\u306e\u30b7\u30cb\u30a2\u30fb\u30b9\u30bf\u30c3\u30d5\u30fb\u30e9\u30a4\u30bf\u30fc\u3002\u4ee5\u524d\u306fPYMNTS\u3068The Bay State Banner\u306b\u5bc4\u7a3f\u3057\u3001\u30ab\u30fc\u30cd\u30ae\u30fc\u30e1\u30ed\u30f3\u5927\u5b66\u3067\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb\u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u306e\u5b66\u58eb\u53f7\u3092\u53d6\u5f97\u3002\u30dc\u30b9\u30c8\u30f3\u90ca\u5916\u306b\u62e0\u70b9\u3092\u7f6e\u304f\u3002","sameAs":["http:\/\/securitybriefing.net"],"url":"https:\/\/securitybriefing.net\/ja\/author\/security\/"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826159348","position":1,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826159348","name":"\u30bb\u30ab\u30f3\u30c9\u30aa\u30fc\u30c0\u30fcSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"In-band SQL injection is the most common type of SQL injection attack. It occurs when an attacker can use the same communication channel to deliver the payload and gather results.","inLanguage":"ja"},"inLanguage":"ja"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826187832","position":2,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826187832","name":"\u30d6\u30e9\u30a4\u30f3\u30c9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The best defense against SQL injection is to use parameterized queries. This type of query uses placeholder values for parameters, which are supplied at a later date. This method allows the database to identify between source code and information.","inLanguage":"ja"},"inLanguage":"ja"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826216670","position":3,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826216670","name":"\u30b9\u30bf\u30c3\u30af\u30af\u30a8\u30ea\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"SQL injection can be detected in several ways. One method is to use a web application firewall (WAF). A WAF is a piece of hardware or software that sits between a web application and the internet. It inspects traffic for malicious activity and can block SQL injection attacks.","inLanguage":"ja"},"inLanguage":"ja"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826245103","position":4,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826245103","name":"\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Second-order SQL injection occurs when an attacker can inject a payload that is stored by the web application and then later executed. This type of attack is more difficult to achieve because the attacker must have a way to trigger the execution of the stored payload.","inLanguage":"ja"},"inLanguage":"ja"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826275267","position":5,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826275267","name":"SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u3092\u5b66\u3076\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u304b\u3001\u305d\u308c\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u304b\u3001\u653b\u6483\u304b\u3089\u30b5\u30a4\u30c8\u3092\u4fdd\u8b77\u3059\u308b\u65b9\u6cd5\u3002","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Blind SQL injection is an attack where the attacker does not directly see the results of their payload. Instead, they must use true or false statements to infer information from the database. This type of attack is more challenging to execute but can be just as dangerous as other types of SQL injection.","inLanguage":"ja"},"inLanguage":"ja"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826301781","position":6,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826301781","name":"\u30b9\u30bf\u30c3\u30af\u30af\u30a8\u30ea\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"A stacked query is a type of SQL injection where the attacker uses multiple queries to extract information from the database. This type of attack is more challenging to execute but can be very dangerous if successful.","inLanguage":"ja"},"inLanguage":"ja"},{"@type":"Question","@id":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826330814","position":7,"url":"https:\/\/securitybriefing.net\/security\/sql-injection-101-what-is-sqli-and-how-to-prevent-attacks\/#faq-question-1659826330814","name":"\u30a8\u30e9\u30fc\u30d9\u30fc\u30b9\u306eSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Error-based SQL injection is an attack where the attacker uses database errors to infer information from the database. This attack is more challenging to execute but can be very dangerous if successful.","inLanguage":"ja"},"inLanguage":"ja"}]}},"_links":{"self":[{"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/posts\/505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":0,"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/media\/644"}],"wp:attachment":[{"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/securitybriefing.net\/ja\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}