728x90

Log4j

  • Java ๊ธฐ๋ฐ˜ Logging Utility
  • ํ™•์žฅ์„ฑ, ๊ฐ€๋…์„ฑ, ์„ฑ๋Šฅ ๋“ฑ ์ธก๋ฉด์—์„œ ํ–ฅ์ƒ๋œ Log4j 2
  • Log4j 2๊ฐ€ Log4j 1๊ณผ ํ˜ธํ™˜๋˜์ง€ ์•Š์ง€๋งŒ Adapter๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

 

Log4j 2์˜ ZeroDay ACE ์ทจ์•ฝ์ 

  • ์ทจ์•ฝ์ (CVE-2021-44228) ํ•ด๊ฒฐ์„ ์œ„ํ•ด Log4j 2.15.0์œผ๋กœ ์—…๋ฐ์ดํŠธ
  • JNDI Name์ด ์ œํ•œ๋˜์ง€ ์•Š์•„ ์›๊ฒฉ ์ฝ”๋“œ ์‹คํ–‰์„ ํ—ˆ์šฉํ•  ์ˆ˜ ์žˆ์–ด ๋ณด์•ˆ์— ์ทจ์•ฝํ•ด์กŒ๋‹ค. 
    • JNDI: ๋””๋ ‰ํ„ฐ๋ฆฌ ์„œ๋น„์Šค์˜ ๋ฐ์ดํ„ฐ์™€ ๊ฐ์ฒด๋ฅผ Discover & Lookupํ•˜๊ธฐ ์œ„ํ•œ Java API 
    • ์ทจ์•ฝ์  ๋ฐฉ์ง€๋ฅผ ์œ„ํ•ด: Default ํ”„๋กœํ† ์ฝœ์„ Java, Idap, Idaps๋กœ ์ œํ•œํ•˜๋ฉฐ, Idap๋Š” Localhost์—์„œ ์ œ๊ณต๋œ ์ž๋ฐ” ๊ธฐ๋ณธ ๊ฐœ์ฒด์—๋งŒ ์ ‘๊ทผํ•˜๋„๋ก ํ—ˆ์šฉํ•œ๋‹ค.
  • 2.15.0 ์—…๋ฐ์ดํŠธ๊ฐ€ ๋ถˆ๊ฐ€๋Šฅํ•œ ๊ฒฝ์šฐ ์กฐ์น˜ ๋ฐฉ๋ฒ•
    • 2.10 ์ด์ƒ ์‹œ์Šคํ…œ property log4j2.formatMsgNoLookups ๋˜๋Š” ํ™˜๊ฒฝ ๋ณ€์ˆ˜ LOG4J_FORMAT_MSG_NO_LOOKUPS์˜ ๊ฐ’์„ true๋กœ ๋ณ€๊ฒฝ
    • 2.7~2.14.1 PatternLayout์„ %m์—์„œ %m{nolookups}๋กœ ์ง€์ •
    • 2.0-beta9~2.10.0 ClassPath์—์„œ JndiLookup ํด๋ž˜์Šค๋ฅผ ์ œ๊ฑฐ (zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class)

 


REF

 

 

Log4j - ์œ„ํ‚ค๋ฐฑ๊ณผ, ์šฐ๋ฆฌ ๋ชจ๋‘์˜ ๋ฐฑ๊ณผ์‚ฌ์ „

Log4j๋Š” Ceki Gülcü๊ฐ€ ์ฒ˜์Œ ๊ฐœ๋ฐœํ•œ ์ž๋ฐ” ๊ธฐ๋ฐ˜ ๋กœ๊น… ์œ ํ‹ธ๋ฆฌํ‹ฐ์ด๋‹ค. ์•„ํŒŒ์น˜ ์†Œํ”„ํŠธ์›จ์–ด ์žฌ๋‹จ์˜ ํ”„๋กœ์ ํŠธ ์•„ํŒŒ์น˜ ๋กœ๊น… ์„œ๋น„์Šค(Apache Logging Services)์˜ ์ผ๋ถ€์ด๋‹ค. ๋˜, Log4j๋Š” ์—ฌ๋Ÿฌ ์ž๋ฐ” ๋กœ๊น… ํ”„๋ ˆ์ž„์›Œํฌ๋“ค

ko.wikipedia.org

 

Log4j – Apache Log4j 2

<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apa

logging.apache.org

 

[๊ธด๊ธ‰] ๊ฑฐ์˜ ๋ชจ๋“  ์„œ๋ฒ„๊ฐ€ ์œ„ํ—˜ํ•˜๋‹ค! ๋งค์šฐ ์น˜๋ช…์ ์ธ ‘๋กœ๊ทธ4j’ ๋ณด์•ˆ ์ทจ์•ฝ์  ๋ฐœ๊ฒฌ

๊ฑฐ์˜ ๋ชจ๋“  ์„œ๋ฒ„์— ์˜ํ–ฅ์„ ๋ฏธ์น  ์ˆ˜ ์žˆ๋Š” ๋งค์šฐ ์‹ฌ๊ฐํ•œ ์ œ๋กœ๋ฐ์ด ์ทจ์•ฝ์ ์ด ๋ฐœ๊ฒฌ๋ผ ์ด๋ฒˆ ์ฃผ๋ง ๊ณต๊ณต๊ธฐ๊ด€๊ณผ ๊ธฐ์—…์— ๋น„์ƒ์ด ๊ฑธ๋ ธ๋‹ค. ์ทจ์•ฝ์ ์ด ๋ฐœ๊ฒฌ๋œ ๋กœ๊ทธ4j(Log4j) 2๋Š” ํ”„๋กœ๊ทธ๋žจ ์ž‘์„ฑ ์ค‘ ๋กœ๊ทธ๋ฅผ ๋‚จ๊ธฐ๊ธฐ

www.boannews.com

728x90

+ Recent posts