2 ms·
This is really making me feel better about badgering our contractors to use format strings for effective logging to Sentry.
by acdha 5y ago
This is really making me feel better about badgering our contractors to use format strings for effective logging to Sentry.
- layer8 5y agoUsing format strings makes no difference for the log4j vulnerabilities. The stage at which the vulnerable substitutions are applied is after the application-level format string has already been formatted. The vulnerabilities occur at the level of applying the Appender log pattern, which is a mechanism separate from the application-level format strings.
- acdha 5y agoAh, the person I was replying to had conflated the two? I retract my feeling of relief, as is the course for this week.
- layer8 5y agoTo be fair, most descriptions of the vulnerabilities and of the fixes do a bad job of explaining when and where the substitutions are performed and how they (don’t) relate to application-level format strings.