Sebastian Olsson (@seolsson) profile picture

Mostly application security @Truesec

Malmö, Sweden
Joined April 2015
Photo by Sebastian Olsson (@seolsson)
Details on CVE-2022-34169 , RCE in Apache Xalan for Java. Currently no patch for the standalone lib, as the project is inactive. Unclear how exploitable. Great work finding it. (1/3)
If you perform SAML auth in Java you should make sure you patched bugs.chromium.org/p/project-…. RCE during signature verification. Blogpost coming soon™.
1
2
1
1
Hope sensitive projects have disabled XSLT (do set the secureValidation property!). XML parsing is always tricky and all things that can be disabled should be disabled when parsing. Doesn't help that XML parsers in most langs are insecure by default.
1
Tomorrow (Thursday) I'll be speaking at JForum Stockholm on the topic "Log4Shell: A secure development perspective". Some lessons and thoughts based on the vuln(s) and how things unfolded during a few hectic days. meetup.com/jforum-stockholm/…
3
4
Time to patch Java 15-18 to fix this potential signature bypass. Look for patches for your JDK dist. Oracle lists their Java 7-11 as also affected by CVE-2022-21449. So far unlikely to be exactly the same issue if applicable at all to those versions. Redhat marks < 15 unaffected
Welp. It’s the crypto bug of the year. Mark it down for April. Java 15-18 ECDSA doesn’t sanity check that the random x coordinate and signature proof are nonzero; a (0,0) signature validates any message. Breaks JWT, SAML, &c. neilmadden.blog/2022/04/19/p…
1
3
8
If you are using Oracle JDK (don't if you can avoid it), follow their recommendations and also patch jdk 7-11. Well, if you can you should generally test and apply the Java CPUs soon after release.
1
Amazing indeed! This made my day
Today is a very special day because I finally get to share something amazing that @seakoz and I have been working on: Universal certificate rotation. It's an in-browser capability to rotate *any* certificate. I know that sounds impossible or even insecure but stick with me.
1
I wrote a bit on the Truesec blog earlier regarding Log4Shell/CVE-2022-22965. The tldr; right now is "patch your spring installations". And denylisting is terrible. truesec.com/hub/blog/spring4…
1
4
10
Spring4Shell of course. Not Log4Shell. I hope to not write about the latter for a while
1
1
Re log4j 2.17.1: So far CVE-2021-44832 looks like a non-issue in most cases. At least not the most urgent thing to patch unless you match dangerous prereqs If attacker has write access to config you're prob looking at code exec in a million other ways.
1
2
6
The vuln is maybe useful for redteaming or privesc. But take your pick at exec method in most systems if you have write access to config.
I belive CVE-2021-45105 fixed in log4j 2.17 affects few systems (or at least few that are already on 2.15+). Otherwise we have a new way to scan for log4shell. Exploit a DOS to see what crashes. Potentially shutting things down before being able to patch the prev RCEs 😀
1
7
Seeing this quite a bit here, but I don't think its a real issue to care much about (so far at least). There could be more there, but this report is not a DOS. You get exception logs when log4j correctly identifies a cycle. The program continues. Looks like nothing to me.
You’re unable to view this post because this account owner limits who can view their posts. Learn more
2
2
There is actually a 2.17 referencing this now. I'm still confused as to the effects: teapawt.org/seolsson/status/147209…
It's referenced as DOS by log4j now ( CVE-2021-45105 ). Fixed in 2.17. Can't see how it's actually reproduced under what circumstances, but I guess there is something considering the CVE. I didn't see it w that string during different tests. Must be under special circumstances
1
1
Great w scripts from CERT! Note that the jar files can be embedded in .war or .ear files in server/ee software as well (similar zip file structure). Don't think scripts look for that. So looking on fs for existence of war/ear is probably good in some cases (ping @wdormann)
You all know by now about the #log4j CVE-2021-44228 that affects lots of Java applications, right? No? Well that extra sleep must be nice! We've published a vulnerability note with details: kb.cert.org/vuls/id/930724 We link to PowerShell and Python3 scanners to find jar files too.
1
1
6
Also note that apps embedding jvm can have other structures and in extreme cases software uses obfuscation/class renaming. Renaming is typically on package level, so looking on class name as the scripts does should typically be enough.
3
Updated #Log4Shell blog post: truesec.com/hub/blog/apache-… * 2.16 now recommended version * Flags or 2.15 do not mitigate certain apps fully if user controlled data is in the log pattern (vanilla log4shell involves log *msg*). * 2.15 has outbound filter. Likely makes attack difficult
2
19
1
35
Patching to 2.16 is now default recommendation. Removing classes from jar might be slightly safer than setting flags for older versions. I belive most apps are not vulnerable to this variant (which could deserve separate cve).
1
4
Saying no to most Java deser vulns like some nasty #Log4Shell variants in most active Java versions: Set "jdk.serialFilter=!*;" in the java[.]security file Or some appropriate allow list. Potentially breaks functionality. Especially in EE apps.
1
File typically found in "conf/security" or "jre/lib/security".
Here are some reasons we should take deserialization of untrusted Java objects very seriously: snyk.io/vuln/maven:com.faste…
1
3
Again reiterating that you need to patch regardless of Java versions. The deser vector will apply to many systems, as the history of Jackson and XStream has shown again and again.
The latest on the #Log4Shell #Vulnerability❗ #Truesec experts @fabio_viggiani, @seolsson and @Alshakarti provides the latest info on what happened, #cyberattacks we have seen, and what you can do to protect your organization. Watch now: youtube.com/watch?v=uN81mFC_… Sorry for delay
5
7
Potential mitigation for use of some third party Java apps that bundle log4j: Add -Dlog4j2.formatMsgNoLookups=true to beginning of jvm args if configurable. While waiting for patches to the app. In many cases you can set such args (to tweak memory settings etc).
1
3
8
Setting jvm args can be possible through different methods even if the JVM is bundled with the app. Look for how to tweak heap sizes and you could find something
1
1
I wrote a bit about the publicized log4j vuln. Most importantly: Plan to patch or disable the functionality even if known exploit code does not fire in your env. There are more variations to consider.
❗New #Log4Shell vulnerability allows attackers to take over a potentially massive number of systems. Find our analysis💡by #cybersecurity expert @seolsson and recommendations here: truesec.com/hub/blog/apache-… #Truesec #StaySafe
6
21
Looking at deps.dev for 'rc' and 'coa' attacks, timelines looks similar. Several owners deleted and others added.
Replying to @npmjs
following ongoing investigations, we identified in real time multiple versions of the “rc” package containing identical malware to the “coa” package. malicious versions of “rc” were immediately removed from the registry and we have published an advisory: github.com/advisories/GHSA-g…
1
1
1
Curiously, listing owners at npm shows 9 owners, including the TA. That feels excessive, but probably not uncommon. According to deps.dev there are 19 attached owners at npm (historical?).
1
Wrote a bit about ua-parser-js on the Truesec blog: truesec.com/hub/blog/uaparse… Quicker writeup than I usually do on a developing story, but we really must not sleep on this one.
3
5
16
Here's hoping most teams took Friday off or chose not to mess with packages right before the weekend.
1
2
Finding a good patch policy for npm gets harder every day. Due to malware, quarantining new releases is reasonable. But we must patch known vulns. And vuln feeds miss stuff, so we might not patch important updates then. Leaving server-side js (node) in a really awkward position.
1
6
8
On the frontend there's less js pkgs run in critical dev flows and servers, and we can often disable install scripts and similar. So a bit better. Still difficult to manage known vulns affecting browser clients, but a dream compared to depending on npm on the backend
1
2