{"id":5924,"date":"2025-09-23T16:18:10","date_gmt":"2025-09-23T07:18:10","guid":{"rendered":"https:\/\/sky-peace.net\/?p=5924"},"modified":"2025-09-23T16:18:10","modified_gmt":"2025-09-23T07:18:10","slug":"sc-sp-2","status":"publish","type":"post","link":"https:\/\/sky-peace.net\/certified\/sc-sp-2\/","title":{"rendered":"Web\u30a2\u30d7\u30ea\u306e\u8106\u5f31\u6027\u306f\u3082\u3046\u6016\u304f\u306a\u3044\uff01\u60c5\u5831\u51e6\u7406\u5b89\u5168\u78ba\u4fdd\u652f\u63f4\u58eb \u5348\u5f8c\u5bfe\u7b56 - SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3068XSS\u306e\u9055\u3044\u3092\u30de\u30b9\u30bf\u30fc"},"content":{"rendered":"<p>\u60c5\u5831\u51e6\u7406\u5b89\u5168\u78ba\u4fdd\u652f\u63f4\u58eb\u8a66\u9a13\u306e\u5348\u5f8c\u554f\u984c\u306b\u304a\u3044\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8106\u5f31\u6027\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u4e26\u3076\u6700\u91cd\u8981\u30c6\u30fc\u30de\u306e\u4e00\u3064\u3067\u3059\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3001XSS\u3001CSRF\u3068\u3044\u3063\u305f\u653b\u6483\u624b\u6cd5\u306f\u983b\u51fa\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u3092\u660e\u78ba\u306b\u8aac\u660e\u3067\u304d\u307e\u3059\u304b\uff1f\u300c\u306a\u3093\u3068\u306a\u304f\u306f\u5206\u304b\u308b\u3051\u3069\u3001\u3044\u3056\u554f\u984c\u6587\u3067\u554f\u308f\u308c\u308b\u3068\u6df7\u4e71\u3057\u3066\u3057\u307e\u3046\u2026\u300d\u3068\u3044\u3046\u65b9\u3082\u5c11\u306a\u304f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u7279\u306b\u5348\u5f8c\u8a66\u9a13\u3067\u306f\u3001\u5358\u306b\u7528\u8a9e\u3092\u6697\u8a18\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u306f\u4e0d\u5341\u5206\u3067\u3059\u3002\u63d0\u793a\u3055\u308c\u305f\u30b7\u30ca\u30ea\u30aa\u304b\u3089\u300c\u4eca\u3001\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u304b\u300d\u300c\u8106\u5f31\u6027\u306f\u30b5\u30fc\u30d0\u5074\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u3069\u3061\u3089\u306b\u3042\u308b\u306e\u304b\u300d\u3092\u6b63\u78ba\u306b\u898b\u629c\u304f\u6d1e\u5bdf\u529b\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e3b\u8981\u306a\u8106\u5f31\u6027\u306b\u3064\u3044\u3066\u3001\u653b\u6483\u304c\u6210\u7acb\u3059\u308b\u300c\u5834\u6240\u300d\u3068\u300c\u624b\u53e3\u300d\u306b\u7740\u76ee\u3057\u3066\u3001\u305d\u306e\u9055\u3044\u3092\u660e\u78ba\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u5b89\u5168\u306a\u901a\u4fe1\u306e\u571f\u53f0\u3068\u306a\u308bTLS\u306e\u4ed5\u7d44\u307f\u304b\u3089\u59cb\u3081\u3001\u30b5\u30fc\u30d0\u3092\u9a19\u3059SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3001\u30e6\u30fc\u30b6\u3092\u7f60\u306b\u304b\u3051\u308bXSS\u3068CSRF\u3001\u305d\u3057\u3066\u305d\u308c\u3089\u306b\u5bfe\u3059\u308b\u9632\u5fa1\u306e\u8981\u3067\u3042\u308bWAF\u307e\u3067\u3001\u4f53\u7cfb\u7684\u306b\u77e5\u8b58\u3092\u6574\u7406\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u307f\u7d42\u3048\u308b\u9803\u306b\u306f\u3001\u5404\u653b\u6483\u624b\u6cd5\u306e\u672c\u8cea\u7684\u306a\u9055\u3044\u304c\u7406\u89e3\u3067\u304d\u3001\u30b7\u30ca\u30ea\u30aa\u554f\u984c\u3067\u9069\u5207\u306a\u8106\u5f31\u6027\u3068\u5bfe\u7b56\u3092\u81ea\u4fe1\u3092\u6301\u3063\u3066\u6307\u6458\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h2>Web\u30a2\u30d7\u30ea\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u524d\u63d0\u77e5\u8b58\u2502\u901a\u4fe1\u3092\u4fdd\u8b77\u3059\u308bHTTPS\/TLS\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u500b\u3005\u306e\u8106\u5f31\u6027\u3092\u8b70\u8ad6\u3059\u308b\u524d\u306b\u3001\u305d\u306e\u571f\u53f0\u3068\u306a\u308b<strong>\u901a\u4fe1\u306e\u5b89\u5168\u6027<\/strong>\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3057\u901a\u4fe1\u7d4c\u8def\u304c\u6697\u53f7\u5316\u3055\u308c\u3066\u306a\u3051\u308c\u3070\u3001\u3069\u3093\u306a\u306b\u5805\u7262\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u3082\u3001\u9014\u4e2d\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u500b\u4eba\u60c5\u5831\u304c\u76d7\u8074\u3055\u308c\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002\u305d\u306e\u901a\u4fe1\u306e\u5b89\u5168\u6027\u3092\u62c5\u4fdd\u3059\u308b\u306e\u304c<strong>HTTPS (HTTP over TLS)<\/strong>\u3067\u3059\u3002<\/p>\n<h4>TLS\u306e3\u3064\u306e\u5f79\u5272<\/h4>\n<ul>\n<li><strong>\u76d7\u8074\u306e\u9632\u6b62 (\u6697\u53f7\u5316)<\/strong>: \u7b2c\u4e09\u8005\u304c\u901a\u4fe1\u5185\u5bb9\u3092\u8aad\u3081\u306a\u3044\u3088\u3046\u306b\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u6539\u3056\u3093\u306e\u9632\u6b62 (\u5b8c\u5168\u6027)<\/strong>: \u30c7\u30fc\u30bf\u304c\u9014\u4e2d\u3067\u66f8\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u306a\u308a\u3059\u307e\u3057\u306e\u9632\u6b62 (\u8a8d\u8a3c)<\/strong>: \u901a\u4fe1\u76f8\u624b\u304c\u672c\u7269\u306e\u30b5\u30fc\u30d0\u3067\u3042\u308b\u3053\u3068\u3092<strong>\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8<\/strong>\u3092\u4f7f\u3063\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>\u8eab\u8fd1\u306a\u4f8b\u3048\uff1a\u4fe1\u983c\u3067\u304d\u308b\u30aa\u30f3\u30e9\u30a4\u30f3\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0 &#x1f6cd;&#xfe0f;<\/h4>\n<p>TLS\u306e\u4ed5\u7d44\u307f\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u53b3\u91cd\u306a\u30c7\u30d1\u30fc\u30c8\u3067\u8cb7\u3044\u7269\u3092\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u306a\u308a\u3059\u307e\u3057\u9632\u6b62<\/strong>: \u3042\u306a\u305f\u306f\u307e\u305a\u3001\u305d\u306e\u30c7\u30d1\u30fc\u30c8\u304c\u672c\u7269\u3067\u3042\u308b\u3053\u3068\u306e\u8a3c\u660e\uff08<strong>\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8<\/strong>\uff09\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u507d\u306e\u5e97\u8217\u3067\u306a\u3044\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><strong>\u6697\u53f7\u5316<\/strong>: \u6b21\u306b\u3001\u3042\u306a\u305f\u3068\u5e97\u54e1\u306f\u3001\u4e8c\u4eba\u3060\u3051\u304c\u7406\u89e3\u3067\u304d\u308b\u7279\u6b8a\u306a\u8a00\u8a9e\uff08<strong>\u5171\u901a\u9375<\/strong>\uff09\u3067\u8a71\u3059\u3053\u3068\u3092\u6c7a\u3081\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u5468\u308a\u306e\u5ba2\u306b\u4f1a\u8a71\u306e\u5185\u5bb9\u3092\u805e\u304b\u308c\u308b\u5fc3\u914d\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<li><strong>\u6539\u3056\u3093\u9632\u6b62<\/strong>: \u4f1a\u8a08\u6642\u3001\u5546\u54c1\u306f\u6539\u3056\u3093\u9632\u6b62\u30b7\u30fc\u30eb\u304c\u8cbc\u3089\u308c\u305f\u7bb1\uff08<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\u8a8d\u8a3c\u30b3\u30fc\u30c9<\/strong>\uff09\u306b\u5165\u308c\u3089\u308c\u307e\u3059\u3002\u3082\u3057\u8ab0\u304b\u304c\u7bb1\u3092\u4e0d\u6b63\u306b\u958b\u3051\u308c\u3070\u3001\u30b7\u30fc\u30eb\u304c\u7834\u308c\u3066\u3059\u3050\u306b\u5206\u304b\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n<h4>\u5348\u5f8c\u8a66\u9a13\u306e\u30dd\u30a4\u30f3\u30c8\uff1aTLS\u30cf\u30f3\u30c9\u30b7\u30a7\u30a4\u30af<\/h4>\n<p>\u652f\u63f4\u58eb\u8a66\u9a13\u3067\u306f\u3001\u3053\u306e\u5b89\u5168\u306a\u901a\u4fe1\u8def\u3092\u78ba\u7acb\u3059\u308b\u307e\u3067\u306e\u4e00\u9023\u306e\u624b\u9806\u3001<strong>TLS\u30cf\u30f3\u30c9\u30b7\u30a7\u30a4\u30af<\/strong>\u306e\u6d41\u308c\u304c\u554f\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30b5\u30fc\u30d0\u304c\u3001\u3069\u306e\u6697\u53f7\u65b9\u5f0f\u3092\u4f7f\u3046\u304b\u3092\u53d6\u308a\u6c7a\u3081\u3001\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8\u3092\u691c\u8a3c\u3057\u3001\u6697\u53f7\u5316\u306b\u4f7f\u3046\u5171\u901a\u9375\u3092\u5b89\u5168\u306b\u4ea4\u63db\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3067\u3059\u3002\u7279\u306b\u3001\u30b5\u30fc\u30d0\u304c\u672c\u7269\u3067\u3042\u308b\u3053\u3068\u3092\u8a3c\u660e\u3057\u3001\u516c\u958b\u9375\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u6e21\u3059<strong>\u30c7\u30b8\u30bf\u30eb\u8a3c\u660e\u66f8<\/strong>\u306e\u5f79\u5272\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n<h2>\u3010\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u653b\u6483\u3011SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u539f\u7406\u3068\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406\u306b\u3088\u308b\u5bfe\u7b56<\/h2>\n<p>Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u653b\u6483\u306e\u4e2d\u3067\u6700\u3082\u4ee3\u8868\u7684\u306a\u3082\u306e\u304c\u3001\u30b5\u30fc\u30d0\u5074\u3092\u76f4\u63a5\u72d9\u3046<strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\uff08SQLi\uff09<\/strong>\u3067\u3059\u3002\u3053\u308c\u306f\u3001Web\u30b5\u30a4\u30c8\u306e\u5165\u529b\u30d5\u30a9\u30fc\u30e0\uff08\u691c\u7d22\u7a93\u3084\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306a\u3069\uff09\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4e0d\u6b63\u306b\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306eSQL\u6587\u306e\u65ad\u7247\u3092\u300c\u6ce8\u5165\uff08injection\uff09\u300d\u3059\u308b\u653b\u6483\u3067\u3059\u3002<\/p>\n<h4>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u4ed5\u7d44\u307f<\/h4>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3001\u5229\u7528\u8005\u304b\u3089\u306e\u5165\u529b\u3092\u305d\u306e\u307e\u307e\u4fe1\u7528\u3057\u3066SQL\u6587\u3092\u7d44\u307f\u7acb\u3066\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u3053\u306e\u8106\u5f31\u6027\u304c\u751f\u307e\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\uff08\u5177\u4f53\u4f8b\uff09<\/strong><br \/>\n\u3042\u308b\u30b5\u30a4\u30c8\u306e\u30e6\u30fc\u30b6\u691c\u7d22\u6a5f\u80fd\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aSQL\u6587\u3067\u52d5\u3044\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002<br \/>\n<code>SELECT * FROM users WHERE name = '\uff08\u3053\u3053\u306b\u5165\u529b\u3055\u308c\u305f\u540d\u524d\uff09';<\/code><\/p>\n<p>\u3082\u3057\u653b\u6483\u8005\u304c\u3001\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306b <code>Taro' OR 'A'='A<\/code> \u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u5165\u308c\u308b\u3068\u3001\u30b5\u30fc\u30d0\u5185\u90e8\u3067\u306f\u610f\u56f3\u305b\u305a\u4ee5\u4e0b\u306eSQL\u6587\u304c\u5b8c\u6210\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n<code>SELECT * FROM users WHERE name = 'Taro' OR 'A'='A';<\/code><\/p>\n<p><code>'A'='A'<\/code> \u306e\u90e8\u5206\u306f\u5e38\u306b\u771f\uff08true\uff09\u306b\u306a\u308b\u305f\u3081\u3001WHERE\u53e5\u306e\u6761\u4ef6\u304c\u5168\u30e6\u30fc\u30b6\u306b\u5bfe\u3057\u3066\u6210\u7acb\u3057\u3066\u3057\u307e\u3044\u3001\u7d50\u679c\u3068\u3057\u3066<strong>\u30c6\u30fc\u30d6\u30eb\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u5168\u30e6\u30fc\u30b6\u306e\u60c5\u5831\u304c\u76d7\u307e\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/strong><\/p>\n<h4>\u8eab\u8fd1\u306a\u4f8b\u3048\uff1a\u547d\u4ee4\u3092\u66f8\u304d\u8db3\u305b\u308b\u81ea\u52d5\u8ca9\u58f2\u6a5f &#x1f964;<\/h4>\n<p>\u3053\u308c\u306f\u3001\u547d\u4ee4\u3092\u66f8\u304d\u8db3\u305b\u308b\u6b20\u9665\u306e\u3042\u308b\u81ea\u52d5\u8ca9\u58f2\u6a5f\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u6b63\u3057\u3044\u64cd\u4f5c<\/strong>: \u300c\u304a\u8336\u300d\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001<code>\u300c\u304a\u8336\u3092\u51fa\u3059\u300d<\/code>\u3068\u3044\u3046\u547d\u4ee4\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<\/li>\n<li><strong>\u4e0d\u6b63\u306a\u64cd\u4f5c<\/strong>: \u30dc\u30bf\u30f3\u306b\u300c\u304a\u8336\u300f\u307e\u305f\u306f\u300e\u5168\u5546\u54c1\u3092\u51fa\u3059\u300d\u3068\u66f8\u3044\u305f\u30b7\u30fc\u30eb\u3092\u8cbc\u3063\u3066\u62bc\u3059\u3002<\/li>\n<li><strong>\u7d50\u679c<\/strong>: \u81ea\u8ca9\u6a5f\u306f\u547d\u4ee4\u3092\u8aa4\u8a8d\u3057\u3001<code>\u300c\u304a\u8336\u3092\u51fa\u3059\u300d\u307e\u305f\u306f\u300c\u5168\u5546\u54c1\u3092\u51fa\u3059\u300d<\/code>\u3068\u89e3\u91c8\u3057\u3066\u3001\u5eab\u5185\u306e\u5168\u5546\u54c1\u3092\u6392\u51fa\u3057\u3066\u3057\u307e\u3046\u3002<\/li>\n<\/ul>\n<h4>\u5bfe\u7b56\u306e\u57fa\u672c\uff1a\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3068\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406<\/h4>\n<p>\u5bfe\u7b56\u306e\u57fa\u672c\u306f\u300c<strong>\u5229\u7528\u8005\u304b\u3089\u306e\u5165\u529b\u3092\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\uff08SQL\u6587\uff09\u306e\u4e00\u90e8\u3068\u3057\u3066\u89e3\u91c8\u3055\u305b\u306a\u3044<\/strong>\u300d\u3053\u3068\u3067\u3059\u3002<\/p>\n<table border=\"1\" style=\"width:100%; border-collapse: collapse;\">\n<tr>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u5bfe\u7b56\u65b9\u6cd5<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u5185\u5bb9<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\uff08\u30d7\u30ea\u30da\u30a2\u30fc\u30c9\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09<\/strong><\/td>\n<td style=\"padding: 8px;\">SQL\u6587\u306e\u300c\u578b\u300d\u3092\u3042\u3089\u304b\u3058\u3081\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u9001\u3063\u3066\u304a\u304d\u3001\u5f8c\u304b\u3089\u5165\u529b\u5024\u3092\u300c\u30c7\u30fc\u30bf\u300d\u3068\u3057\u3066\u6d41\u3057\u8fbc\u3080\u65b9\u5f0f\u3002<strong>\u6700\u3082\u5b89\u5168\u3067\u63a8\u5968\u3055\u308c\u308b\u5bfe\u7b56<\/strong>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406<\/strong><\/td>\n<td style=\"padding: 8px;\"><code>'<\/code> \u3084 <code>;<\/code> \u3068\u3044\u3063\u305f\u3001SQL\u6587\u3067\u7279\u5225\u306a\u610f\u5473\u3092\u6301\u3064\u6587\u5b57\u3092\u3001\u5358\u306a\u308b\u6587\u5b57\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3088\u3046\u306b\u7121\u5bb3\u5316\uff08\u4f8b\uff1a<code>'<\/code> \u2192 <code>\\'<\/code>\uff09\u3059\u308b\u3002<\/td>\n<\/tr>\n<\/table>\n<p>\u652f\u63f4\u58eb\u8a66\u9a13\u3067\u306f\u3001\u300cWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u8106\u5f31\u6027\u304c\u3042\u308b\u304b\u300d\u3092\u554f\u3046\u554f\u984c\u3082\u51fa\u984c\u3055\u308c\u307e\u3059\u3002\u30e6\u30fc\u30b6\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u76f4\u63a5SQL\u6587\u306b\u9023\u7d50\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u898b\u3064\u3051\u305f\u3089\u3001\u307e\u305aSQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u7591\u3046\u306e\u304c\u5b9a\u77f3\u3067\u3059\u3002<\/p>\n<h2>\u3010\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u653b\u6483\u2460\u3011XSS\uff08\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0\uff09\u306e\u7a2e\u985e\u3068\u5bfe\u7b56<\/h2>\n<p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u304c\u30b5\u30fc\u30d0\u3092\u9a19\u3059\u653b\u6483\u3060\u3063\u305f\u306e\u306b\u5bfe\u3057\u3001<strong>XSS\uff08\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0\uff09<\/strong>\u306f<strong>\u5229\u7528\u8005\u306e\u30d6\u30e9\u30a6\u30b6\u3092\u9a19\u3059<\/strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u653b\u6483\u306e\u4ee3\u8868\u683c\u3067\u3059\u3002\u653b\u6483\u8005\u306f\u3001\u8106\u5f31\u6027\u306e\u3042\u308b\u30b5\u30a4\u30c8\u306e\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306a\u3069\u3092\u901a\u3058\u3066\u3001\u7f60\u3068\u306a\u308b\u30b9\u30af\u30ea\u30d7\u30c8\uff08\u4e3b\u306bJavaScript\uff09\u3092\u57cb\u3081\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h4>XSS\u306e\u4ed5\u7d44\u307f<\/h4>\n<p>\u653b\u6483\u306e\u76ee\u7684\u306f\u3001\u6a19\u7684\u30b5\u30a4\u30c8\u3092\u95b2\u89a7\u3057\u305f\u4ed6\u306e\u30e6\u30fc\u30b6\u306e\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u3001\u4e0d\u6b63\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3055\u305b\u3001\u305d\u306e\u30e6\u30fc\u30b6\u306eCookie\u60c5\u5831\uff08\u7279\u306b\u30bb\u30c3\u30b7\u30e7\u30f3ID\uff09\u3092\u76d7\u3093\u3060\u308a\u3001\u507d\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3092\u8868\u793a\u3055\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h4>\u8eab\u8fd1\u306a\u4f8b\u3048\uff1a\u5371\u967a\u306a\u66f8\u304d\u8fbc\u307f\u304c\u3042\u308b\u63b2\u793a\u677f &#x1f5d2;&#xfe0f;<\/h4>\n<p>XSS\u306f\u3001\u5371\u967a\u306a\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u3066\u3057\u307e\u3046\u96fb\u5b50\u63b2\u793a\u677f\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u7f60\u306e\u8a2d\u7f6e<\/strong>: \u653b\u6483\u8005\u304c\u3001\u63b2\u793a\u677f\u306b\u300c&lt;script&gt;\uff08\u60aa\u610f\u306e\u3042\u308b\u547d\u4ee4\uff09&lt;\/script&gt;\u300d\u3068\u3044\u3046\u666e\u901a\u306e\u30b3\u30e1\u30f3\u30c8\u306b\u898b\u3048\u306a\u3044\u3001\u7279\u6b8a\u306a\u30a4\u30f3\u30af\u3067\u66f8\u304b\u308c\u305f\u66f8\u304d\u8fbc\u307f\u3092\u6295\u7a3f\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u7f60\u306e\u767a\u52d5<\/strong>: \u4ed6\u306e\u30e6\u30fc\u30b6\u304c\u305d\u306e\u63b2\u793a\u677f\u306e\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u7279\u6b8a\u306a\u30a4\u30f3\u30af\u3067\u66f8\u304b\u308c\u305f\u90e8\u5206\u3092\u300c\u547d\u4ee4\u300d\u3060\u3068\u52d8\u9055\u3044\u3057\u3066\u5b9f\u884c\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/li>\n<li><strong>\u88ab\u5bb3<\/strong>: \u7d50\u679c\u3068\u3057\u3066\u3001\u30da\u30fc\u30b8\u3092\u95b2\u89a7\u3057\u305f\u30e6\u30fc\u30b6\u306e\u500b\u4eba\u60c5\u5831\uff08Cookie\uff09\u304c\u3001\u653b\u6483\u8005\u306b\u9001\u4fe1\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<h4>XSS\u306e\u7a2e\u985e\u3068\u5bfe\u7b56<\/h4>\n<p>XSS\u306b\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3069\u3053\u306b\u4fdd\u5b58\u3055\u308c\u308b\u304b\u306b\u3088\u3063\u3066\u3001\u4e3b\u306b2\u3064\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table border=\"1\" style=\"width:100%; border-collapse: collapse;\">\n<tr>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u7a2e\u985e<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u7279\u5fb4<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u683c\u7d0d\u578b\uff08Stored\uff09XSS<\/strong><\/td>\n<td style=\"padding: 8px;\">\u653b\u6483\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3001\u30b5\u30a4\u30c8\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7b49\u306b<strong>\u6052\u4e45\u7684\u306b\u4fdd\u5b58<\/strong>\u3055\u308c\u308b\u3002\u7f60\u304c\u4ed5\u639b\u3051\u3089\u308c\u305f\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f<strong>\u4e0d\u7279\u5b9a\u591a\u6570\u306e\u30e6\u30fc\u30b6<\/strong>\u304c\u88ab\u5bb3\u306b\u906d\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u5371\u967a\u6027\u304c\u9ad8\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u53cd\u5c04\u578b\uff08Reflected\uff09XSS<\/strong><\/td>\n<td style=\"padding: 8px;\">\u653b\u6483\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3001URL\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306a\u3069\u306b\u542b\u307e\u308c\u308b\u3002\u653b\u6483\u8005\u306f\u3001\u7f60\u3092\u4ed5\u8fbc\u3093\u3060URL\u3092\u30e1\u30fc\u30eb\u7b49\u3067\u30e6\u30fc\u30b6\u306b\u30af\u30ea\u30c3\u30af\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/td>\n<\/tr>\n<\/table>\n<p><strong>\u5bfe\u7b56\u306e\u57fa\u672c\u306f\u3001\u5165\u529b\u6642\u3067\u306f\u306a\u304f\u300c\u51fa\u529b\u6642\u300d<\/strong>\u3067\u3059\u3002\u30e6\u30fc\u30b6\u304b\u3089\u306e\u5165\u529b\u5024\u3092\u753b\u9762\u306b\u8868\u793a\u3059\u308b\u969b\u306b\u3001<code> &lt; &gt; \" ' & <\/code> \u3068\u3044\u3063\u305fHTML\u3067\u7279\u5225\u306a\u610f\u5473\u3092\u6301\u3064\u6587\u5b57\u3092\u3001<code>&amp;lt; &amp;gt; &amp;quot; &amp;#39; &amp;amp;<\/code> \u306e\u3088\u3046\u306a\u7121\u5bb3\u306a\u8868\u793a\uff08HTML\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff09\u306b\u5909\u63db\u3059\u308b<strong>\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406<\/strong>\u304c\u6700\u3082\u91cd\u8981\u306a\u5bfe\u7b56\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u3010\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u653b\u6483\u2461\u3011CSRF\uff08\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea\uff09\u306e\u7f60\u3068\u30c8\u30fc\u30af\u30f3\u306b\u3088\u308b\u9632\u5fa1<\/h2>\n<p>XSS\u3068\u540c\u3058\u304f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3092\u72d9\u3046\u653b\u6483\u3067\u3059\u304c\u3001<strong>CSRF\uff08\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea\uff09<\/strong>\u306f\u5c11\u3057\u624b\u53e3\u304c\u7570\u306a\u308a\u307e\u3059\u3002XSS\u304c\u300c\u30e6\u30fc\u30b6\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3055\u305b\u308b\u300d\u653b\u6483\u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3001CSRF\u306f\u300c<strong>\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u306e\u30e6\u30fc\u30b6\u306b\u3001\u610f\u56f3\u3057\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3055\u305b\u308b<\/strong>\u300d\u653b\u6483\u3067\u3059\u3002<\/p>\n<h4>CSRF\u306e\u4ed5\u7d44\u307f<\/h4>\n<p>\u653b\u6483\u8005\u306f\u3001\u30e6\u30fc\u30b6\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u72b6\u614b\u306eWeb\u30b5\u30fc\u30d3\u30b9\uff08\u30aa\u30f3\u30e9\u30a4\u30f3\u30b7\u30e7\u30c3\u30d7\u3001SNS\u306a\u3069\uff09\u306b\u5bfe\u3057\u3001\u5546\u54c1\u306e\u8cfc\u5165\u3084\u9000\u4f1a\u51e6\u7406\u3068\u3044\u3063\u305f\u91cd\u8981\u306a\u64cd\u4f5c\u3092\u52dd\u624b\u306b\u884c\u3046\u3088\u3046\u4ed5\u5411\u3051\u307e\u3059\u3002<\/p>\n<h4>\u8eab\u8fd1\u306a\u4f8b\u3048\uff1a\u507d\u9020\u3055\u308c\u305f\u7f72\u540d\u6e08\u307f\u66f8\u985e &#x1f4dd;<\/h4>\n<p>CSRF\u306f\u3001\u3042\u306a\u305f\u304c\u30b5\u30a4\u30f3\u3057\u305f\uff08\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\uff09\u72b6\u614b\u306e\u767d\u7d19\u306e\u5951\u7d04\u66f8\u3092\u3001\u60aa\u610f\u306e\u3042\u308b\u7b2c\u4e09\u8005\u304c\u52dd\u624b\u306b\u4f7f\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u6e96\u5099<\/strong>: \u3042\u306a\u305f\u306f\u9280\u884c\u306e\u30b5\u30a4\u30c8\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u307e\u3059\u3002\u3042\u306a\u305f\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u9280\u884c\u304b\u3089\u300c\u30b5\u30a4\u30f3\u6e08\u307f\u306e\u8a3c\u660e\u66f8\uff08\u30bb\u30c3\u30b7\u30e7\u30f3Cookie\uff09\u300d\u3092\u3082\u3089\u3063\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<\/li>\n<li><strong>\u7f60<\/strong>: \u3042\u306a\u305f\u306f\u3001\u653b\u6483\u8005\u304c\u4f5c\u3063\u305f\u4e00\u898b\u7121\u5bb3\u306aWeb\u30b5\u30a4\u30c8\uff08\u4f8b\uff1a\u52d5\u7269\u306e\u304b\u308f\u3044\u3044\u753b\u50cf\u307e\u3068\u3081\u30b5\u30a4\u30c8\uff09\u3092\u95b2\u89a7\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u7f60\u306e\u767a\u52d5<\/strong>: \u305d\u306e\u30b5\u30a4\u30c8\u306b\u306f\u3001\u3042\u306a\u305f\u306e\u9280\u884c\u306b\u5bfe\u3057\u3066\u300c\u653b\u6483\u8005\u306e\u53e3\u5ea7\u307810\u4e07\u5186\u9001\u91d1\u3059\u308b\u300d\u3068\u3044\u3046\u5185\u5bb9\u306e\u9001\u91d1\u4f9d\u983c\u66f8\uff08\u30ea\u30af\u30a8\u30b9\u30c8\uff09\u304c\u96a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30da\u30fc\u30b8\u3092\u958b\u3044\u305f\u77ac\u9593\u3001\u305d\u306e\u4f9d\u983c\u66f8\u304c\u3042\u306a\u305f\u306e\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u9280\u884c\u3078\u81ea\u52d5\u7684\u306b\u9001\u3089\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/li>\n<li><strong>\u88ab\u5bb3<\/strong>: \u9001\u4fe1\u6642\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u5f8b\u5100\u306b\u300c\u30b5\u30a4\u30f3\u6e08\u307f\u306e\u8a3c\u660e\u66f8\uff08\u30bb\u30c3\u30b7\u30e7\u30f3Cookie\uff09\u300d\u3092\u6dfb\u4ed8\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u9280\u884c\u306f\u6b63\u898f\u306e\u8a3c\u660e\u66f8\u304c\u4ed8\u3044\u305f\u4f9d\u983c\u3060\u3068\u4fe1\u3058\u8fbc\u307f\u3001\u4e0d\u6b63\u306a\u9001\u91d1\u3092\u51e6\u7406\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/li>\n<\/ol>\n<h4>XSS\u3068CSRF\u306e\u9055\u3044<\/h4>\n<p>\u3053\u306e2\u3064\u306e\u653b\u6483\u306f\u3088\u304f\u6df7\u540c\u3055\u308c\u307e\u3059\u304c\u3001\u76ee\u7684\u3068\u624b\u53e3\u304c\u6839\u672c\u7684\u306b\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<table border=\"1\" style=\"width:100%; border-collapse: collapse;\">\n<tr>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u6bd4\u8f03\u9805\u76ee<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">XSS (\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0)<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">CSRF (\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea)<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u76ee\u7684<\/strong><\/td>\n<td style=\"padding: 8px;\">\u30e6\u30fc\u30b6\u60c5\u5831\u306e\u7a83\u53d6\uff08Cookie\u3092\u76d7\u3080\u306a\u3069\uff09<\/td>\n<td style=\"padding: 8px;\">\u610f\u56f3\u3057\u306a\u3044\u51e6\u7406\u306e\u5b9f\u884c\uff08\u52dd\u624b\u306b\u8cfc\u5165\u30fb\u9000\u4f1a\u306a\u3069\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u624b\u53e3<\/strong><\/td>\n<td style=\"padding: 8px;\">\u8106\u5f31\u306a\u30b5\u30a4\u30c8\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092<strong>\u6ce8\u5165<\/strong>\u3059\u308b<\/td>\n<td style=\"padding: 8px;\">\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u30e6\u30fc\u30b6\u306b\u4e0d\u6b63\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092<strong>\u9001\u4fe1\u3055\u305b\u308b<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>\u4f8b\u3048\u308b\u306a\u3089<\/strong><\/td>\n<td style=\"padding: 8px;\">\u63b2\u793a\u677f\u3078\u306e\u5371\u967a\u306a\u66f8\u304d\u8fbc\u307f<\/td>\n<td style=\"padding: 8px;\">\u507d\u9020\u3055\u308c\u305f\u7f72\u540d\u6e08\u307f\u66f8\u985e<\/td>\n<\/tr>\n<\/table>\n<h4>\u5bfe\u7b56\u306e\u57fa\u672c\uff1a\u30c8\u30fc\u30af\u30f3\u306b\u3088\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u691c\u8a3c<\/h4>\n<p>CSRF\u306e\u6700\u3082\u6709\u52b9\u306a\u5bfe\u7b56\u306f\u3001<strong>\u30c8\u30fc\u30af\u30f3<\/strong>\u3068\u547c\u3070\u308c\u308b\u79d8\u5bc6\u306e\u6587\u5b57\u5217\u3092\u30b5\u30fc\u30d0\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u9593\u3067\u691c\u8a3c\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30b5\u30fc\u30d0\u306f\u3001\u91cd\u8981\u306a\u64cd\u4f5c\u3092\u884c\u3046\u30d5\u30a9\u30fc\u30e0\u3092\u8868\u793a\u3059\u308b\u969b\u3001\u63a8\u6e2c\u56f0\u96e3\u306a\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\uff08\u30c8\u30fc\u30af\u30f3\uff09\u3092\u751f\u6210\u3057\u3001\u30d5\u30a9\u30fc\u30e0\u306b\u57cb\u3081\u8fbc\u307f\u307e\u3059\u3002<\/li>\n<li>\u30e6\u30fc\u30b6\u304c\u30d5\u30a9\u30fc\u30e0\u3092\u9001\u4fe1\u3059\u308b\u3068\u3001\u3053\u306e\u30c8\u30fc\u30af\u30f3\u3082\u4e00\u7dd2\u306b\u9001\u3089\u308c\u307e\u3059\u3002<\/li>\n<li>\u30b5\u30fc\u30d0\u306f\u3001\u9001\u3089\u308c\u3066\u304d\u305f\u30c8\u30fc\u30af\u30f3\u304c\u3001\u81ea\u8eab\u304c\u767a\u884c\u3057\u305f\u6b63\u898f\u306e\u3082\u306e\u3067\u3042\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6b63\u898f\u3067\u306a\u3051\u308c\u3070\u3001\u305d\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u62d2\u5426\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u653b\u6483\u8005\u306f\u3053\u306e\u30c8\u30fc\u30af\u30f3\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u507d\u306e\u4f9d\u983c\u66f8\u3092\u9001\u4fe1\u3057\u3066\u3082\u3001\u30b5\u30fc\u30d0\u5074\u3067\u4e0d\u6b63\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u3057\u3066\u5f3e\u304b\u308c\u307e\u3059\u3002<\/p>\n<h2>\u591a\u5c64\u9632\u5fa1\u306e\u8981\u2502WAF\u306b\u3088\u308b\u653b\u6483\u691c\u77e5\u3068Cookie\u306e\u91cd\u8981\u306a\u5c5e\u6027\uff08Secure, HttpOnly\uff09<\/h2>\n<p>\u500b\u3005\u306e\u8106\u5f31\u6027\u306b\u5bfe\u3059\u308b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30ec\u30d9\u30eb\u306e\u5bfe\u7b56\u306b\u52a0\u3048\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u3092\u5305\u62ec\u7684\u306b\u4fdd\u8b77\u3059\u308b\u4ed5\u7d44\u307f\u3082\u91cd\u8981\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u9632\u5fa1\u306e\u8981\u3068\u306a\u308b<strong>WAF<\/strong>\u3068\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u3092\u5b89\u5168\u306b\u3059\u308b<strong>Cookie\u306e\u5c5e\u6027<\/strong>\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h4>WAF\uff1aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7528\u5fc3\u68d2<\/h4>\n<p><strong>WAF (Web Application Firewall)<\/strong> \u306f\u3001\u305d\u306e\u540d\u306e\u901a\u308aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5c02\u9580\u306b\u5b88\u308b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u3059\u3002\u901a\u4fe1\u306e\u4e2d\u8eab\uff08HTTP\u30ea\u30af\u30a8\u30b9\u30c8\uff09\u3092\u8a73\u7d30\u306b\u89e3\u6790\u3057\u3001SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3084XSS\u3068\u3044\u3063\u305f\u653b\u6483\u30d1\u30bf\u30fc\u30f3\uff08<strong>\u30b7\u30b0\u30cd\u30c1\u30e3<\/strong>\uff09\u306b\u5408\u81f4\u3059\u308b\u901a\u4fe1\u3092\u691c\u77e5\u30fb\u906e\u65ad\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u8eab\u8fd1\u306a\u4f8b\u3048<\/strong> &#x1f575;&#xfe0f;<br \/>\n\u901a\u5e38\u306e\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u300c\u5c01\u7b52\u306e\u5b9b\u5148\u3068\u5dee\u51fa\u4eba\u300d\u3057\u304b\u898b\u306a\u3044\u90f5\u4fbf\u5c40\u54e1\u3060\u3068\u3059\u308c\u3070\u3001WAF\u306f\u300c<strong>\u624b\u7d19\u306e\u4e2d\u8eab\u3092\u8aad\u3093\u3067\u3001\u5371\u967a\u306a\u6587\u8a00\u304c\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/strong>\u300d\u8adc\u5831\u54e1\u306e\u3088\u3046\u306a\u5b58\u5728\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5230\u9054\u3059\u308b\u524d\u306b\u3001\u60aa\u610f\u306e\u3042\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<h4>Cookie\u3092\u5b88\u308b\u91cd\u8981\u306a\u5c5e\u6027<\/h4>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306b\u4f7f\u308f\u308c\u308bCookie\u3001\u7279\u306b\u30bb\u30c3\u30b7\u30e7\u30f3ID\u304c\u6f0f\u6d29\u3059\u308b\u3068\u3001\u306a\u308a\u3059\u307e\u3057\uff08\u30bb\u30c3\u30b7\u30e7\u30f3\u30cf\u30a4\u30b8\u30e3\u30c3\u30af\uff09\u306e\u88ab\u5bb3\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002\u305d\u3053\u3067\u3001Cookie\u3092\u767a\u884c\u3059\u308b\u969b\u306b\u7279\u5b9a\u306e\u300c\u5c5e\u6027\u300d\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u5b89\u5168\u306a\u53d6\u308a\u6271\u3044\u3092\u6307\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<table border=\"1\" style=\"width:100%; border-collapse: collapse;\">\n<tr>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u5c5e\u6027<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u5f79\u5272<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u9632\u5fa1\u3067\u304d\u308b\u4e3b\u306a\u653b\u6483<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>HttpOnly<\/strong><\/td>\n<td style=\"padding: 8px;\">JavaScript\u304b\u3089\u306eCookie\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u7981\u6b62\u3059\u308b\u3002<\/td>\n<td style=\"padding: 8px;\">XSS\u306b\u3088\u308b\u30bb\u30c3\u30b7\u30e7\u30f3ID\u306e\u7a83\u53d6<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>Secure<\/strong><\/td>\n<td style=\"padding: 8px;\">HTTPS\u901a\u4fe1\u306e\u5834\u5408\u306e\u307f\u3001\u30d6\u30e9\u30a6\u30b6\u304cCookie\u3092\u30b5\u30fc\u30d0\u306b\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u5236\u9650\u3059\u308b\u3002<\/td>\n<td style=\"padding: 8px;\">\u901a\u4fe1\u306e\u76d7\u8074\u306b\u3088\u308b\u30bb\u30c3\u30b7\u30e7\u30f3ID\u306e\u7a83\u53d6<\/td>\n<\/tr>\n<\/table>\n<p><strong>\u4ed5\u4e8b\u3067\u306e\u5229\u7528\u4f8b<\/strong> &#x1f3e2;<br \/>\n<strong>HttpOnly\u5c5e\u6027<\/strong>\u306f\u3001XSS\u306e\u8106\u5f31\u6027\u304c\u4e07\u304c\u4e00\u5b58\u5728\u3057\u305f\u5834\u5408\u3067\u3082\u3001<code>document.cookie<\/code> \u3067\u30bb\u30c3\u30b7\u30e7\u30f3ID\u3092\u76d7\u307e\u308c\u308b\u3068\u3044\u3046\u6700\u60aa\u306e\u4e8b\u614b\u3092\u9632\u3050\u305f\u3081\u306e\u300c\u4fdd\u967a\u300d\u3068\u3057\u3066\u6975\u3081\u3066\u91cd\u8981\u3067\u3059\u3002\u307e\u305f\u3001<strong>Secure\u5c5e\u6027<\/strong>\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306fHTTPS\u3067\u3082\u3001\u30b5\u30a4\u30c8\u5185\u306e\u4e00\u90e8\u306bHTTP\u306e\u30da\u30fc\u30b8\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u901a\u4fe1\u3067\u30bb\u30c3\u30b7\u30e7\u30f3ID\u304c\u9001\u4fe1\u3055\u308c\u308b\u306e\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u652f\u63f4\u58eb\u8a66\u9a13\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u9632\u5fa1\u7b56\u304c\u300c\u591a\u5c64\u9632\u5fa1\u300d\u306e\u89b3\u70b9\u304b\u3089\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3059\u308b\u304b\u304c\u554f\u308f\u308c\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4fee\u6b63\u304c\u3059\u3050\u306b\u884c\u3048\u306a\u3044\u5834\u5408\u306e\u66ab\u5b9a\u5bfe\u7b56\u3068\u3057\u3066WAF\u3092\u5c0e\u5165\u3057\u305f\u308a\u3001XSS\u5bfe\u7b56\u306e\u6f0f\u308c\u3092\u88dc\u5b8c\u3059\u308b\u305f\u3081\u306bHttpOnly\u5c5e\u6027\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3001\u3068\u3044\u3063\u305f\u5224\u65ad\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\uff1a\u8106\u5f31\u6027\u304c\u751f\u307e\u308c\u308b\u7b87\u6240\u3092\u610f\u8b58\u3057\u3001\u9069\u5207\u306a\u5bfe\u7b56\u3092\u9078\u629e\u3059\u308b<\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b89\u5168\u6027\u3092\u8105\u304b\u3059\u4e3b\u8981\u306a\u8106\u5f31\u6027\u3068\u3001\u305d\u306e\u5bfe\u7b56\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u5b89\u5168\u306a\u901a\u4fe1\u306e\u57fa\u76e4\u3067\u3042\u308b<strong>TLS<\/strong>\u3001\u30b5\u30fc\u30d0\u3092\u72d9\u3046<strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/strong>\u3001\u305d\u3057\u3066\u5229\u7528\u8005\u306e\u30d6\u30e9\u30a6\u30b6\u3092\u60aa\u7528\u3059\u308b<strong>XSS<\/strong>\u3068<strong>CSRF<\/strong>\u3002\u305d\u308c\u305e\u308c\u306e\u9055\u3044\u306f\u660e\u78ba\u306b\u306a\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u5348\u5f8c\u554f\u984c\u3092\u89e3\u304f\u4e0a\u3067\u306e\u6700\u5927\u306e\u9375\u306f\u3001\u30b7\u30ca\u30ea\u30aa\u3092\u8aad\u3093\u3067\u300c<strong>\u8106\u5f31\u6027\u306e\u539f\u56e0\u306f\u3069\u3053\u306b\u3042\u308b\u306e\u304b<\/strong>\u300d\u3092\u898b\u629c\u304f\u3053\u3068\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30e6\u30fc\u30b6\u306e\u5165\u529b\u5024\u304b\u3089<strong>SQL\u6587\u3092\u7d44\u307f\u7acb\u3066\u3066\u3044\u308b<\/strong> \u2192 SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u306e\u5371\u967a\u6027<\/li>\n<li>\u30e6\u30fc\u30b6\u306e\u5165\u529b\u5024\u3092<strong>\u305d\u306e\u307e\u307e\u753b\u9762\u306b\u8868\u793a\u3057\u3066\u3044\u308b<\/strong> \u2192 XSS\u306e\u5371\u967a\u6027<\/li>\n<li>\u91cd\u8981\u306a\u51e6\u7406\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c<strong>Cookie\u306e\u307f\u3067\u8a8d\u8a3c<\/strong>\u3055\u308c\u3066\u3044\u308b \u2192 CSRF\u306e\u5371\u967a\u6027<\/li>\n<\/ul>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u8106\u5f31\u6027\u304c\u751f\u307e\u308c\u308b\u300c\u7b87\u6240\u300d\u3092\u610f\u8b58\u3059\u308c\u3070\u3001\u53d6\u308b\u3079\u304d\u5bfe\u7b56\u3082\u304a\u306e\u305a\u3068\u660e\u3089\u304b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u8106\u5f31\u6027\u5bfe\u7b56\u306e\u65e9\u898b\u8868<\/h4>\n<p>\u6700\u5f8c\u306b\u3001\u5404\u8106\u5f31\u6027\u3068\u5bfe\u7b56\u306e\u8981\u70b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002\u982d\u306e\u4e2d\u3092\u6574\u7406\u3059\u308b\u305f\u3081\u306b\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n<table border=\"1\" style=\"width:100%; border-collapse: collapse;\">\n<tr>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u8106\u5f31\u6027<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u653b\u6483\u5bfe\u8c61<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u6839\u672c\u7684\u306a\u554f\u984c<\/th>\n<th style=\"padding: 8px; background-color: #f2f2f2;\">\u6700\u3082\u91cd\u8981\u306a\u5bfe\u7b56<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3<\/strong><\/td>\n<td style=\"padding: 8px;\">\u30b5\u30fc\u30d0\uff08DB\uff09<\/td>\n<td style=\"padding: 8px;\">\u30b3\u30fc\u30c9\u3068\u30c7\u30fc\u30bf\u306e\u6df7\u540c<\/td>\n<td style=\"padding: 8px;\">\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\uff08\u30d7\u30ea\u30da\u30a2\u30fc\u30c9\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\uff09<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>XSS<\/strong><\/td>\n<td style=\"padding: 8px;\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08\u30d6\u30e9\u30a6\u30b6\uff09<\/td>\n<td style=\"padding: 8px;\">\u7121\u9632\u5099\u306a\u51fa\u529b<\/td>\n<td style=\"padding: 8px;\">\u51fa\u529b\u6642\u306eHTML\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;\"><strong>CSRF<\/strong><\/td>\n<td style=\"padding: 8px;\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\uff08\u30d6\u30e9\u30a6\u30b6\uff09<\/td>\n<td style=\"padding: 8px;\">\u6b63\u898f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8aa4\u8a8d<\/td>\n<td style=\"padding: 8px;\">\u30c8\u30fc\u30af\u30f3\u306b\u3088\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u691c\u8a3c<\/td>\n<\/tr>\n<\/table>\n<p>\u3053\u308c\u3089\u306e\u57fa\u672c\u539f\u5247\u3092\u3057\u3063\u304b\u308a\u3068\u62bc\u3055\u3048\u3001WAF\u3084Cookie\u306e\u9069\u5207\u306a\u5c5e\u6027\u8a2d\u5b9a\u3068\u3044\u3063\u305f\u591a\u5c64\u9632\u5fa1\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b89\u5168\u6027\u306f\u98db\u8e8d\u7684\u306b\u9ad8\u307e\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u5f97\u305f\u77e5\u8b58\u3092\u6b66\u5668\u306b\u3001\u5348\u5f8c\u8a66\u9a13\u306e\u7a81\u7834\u3092\u76ee\u6307\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60c5\u5831\u51e6\u7406\u5b89\u5168\u78ba\u4fdd\u652f\u63f4\u58eb\u8a66\u9a13\u306e\u5348\u5f8c\u554f\u984c\u306b\u304a\u3044\u3066\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8106\u5f31\u6027\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u4e26\u3076\u6700\u91cd\u8981\u30c6\u30fc\u30de\u306e\u4e00\u3064\u3067\u3059\u3002SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3001XSS\u3001CSRF\u3068\u3044\u3063\u305f\u653b\u6483\u624b\u6cd5\u306f\u983b\u51fa\u3067\u3059\u304c &#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","columnck":"","stmeta_robots":"index, follow","st_titlewords":"","st_title_extra":"","st_keywords":"","st_description":"","st_display_ad_mark":"","st_display_ad_mark_hide":"","textcopyck":"","st_copyright":"","st_copyurl":"","eyecatch_set":"","st_youtube_url":"","st_youtube_eyecatch":"","headerwidget_set":"","updatewidget_set":"","kanrenwidget_set":"","ikkatuwidget_set":"","koukoku_set":"","auto_adsense_koukoku_set":"","st_redirect":"","st_redirect_url_as_canonical":"","st_redirect_pvm_do_not_track":"","post_data_updatewidget_set":"","st_post_header_under_bg":"","st_twitter_tag":"","affinger_note":"","rankdisplayck":"","st_head_code":"","st_footer_code":"","st_post_header_under_code":"","_st_toc_override":false,"_st_toc_settings":[]},"categories":[3],"tags":[8],"class_list":["post-5924","post","type-post","status-publish","format-standard","hentry","category-ipa","tag-8"],"_links":{"self":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/posts\/5924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/comments?post=5924"}],"version-history":[{"count":0,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/posts\/5924\/revisions"}],"wp:attachment":[{"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/media?parent=5924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/categories?post=5924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sky-peace.net\/certified\/wp-json\/wp\/v2\/tags?post=5924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}