
Mostly application security @Truesec
Malmö, Sweden
Joined April 2015
- Tweets248
- Following97
- Followers154
- Likes198
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™.
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/…
Reckless if true. Maybe time to add "attacker steals credentials from researcher doing unethical supply-chain experiments" etc. to threat/risk catalogs.
Hacker of Python, PHP libraries: no "malicious activity" was intended - @Ax_Sharma
bleepingcomputer.com/news/se…
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…
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…
Spring4shell/springshell now has a CVE: tanzu.vmware.com/security/cv…
CVE-2022-22965
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.
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 😀
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…
Replying to @vxunderground @cstromblad
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.
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
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
Here are some reasons we should take deserialization of untrusted Java objects very seriously: snyk.io/vuln/maven:com.faste…
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
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).
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
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…
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.
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.










