Plurrrr

Fri 04 Mar 2022

Can Containers Escape?

On Feb. 4, Linux announced CVE-2022-0492, a new privilege escalation vulnerability in the kernel. CVE-2022-0492 marks a logical bug in control groups (cgroups), a Linux feature that is a fundamental building block of containers. The issue stands out as one of the simplest Linux privilege escalations discovered in recent times: The Linux kernel mistakenly exposed a privileged operation to unprivileged users.

Fortunately, the default security hardenings in most container environments are enough to prevent container escape. Containers running with AppArmor or SELinux are protected. That being said, if you run containers without best practice hardenings, or with additional privileges, you may be at risk. The "Am I Affected?" section lists vulnerable container configurations and provides instructions on how to test whether a container environment is vulnerable.

Source: New Linux Vulnerability CVE-2022-0492 Affecting Cgroups: Can Containers Escape?, an article by Yuval Avrahami.

How to design better APIs

APIs are awesome, but they're also extremely hard to design. When creating an API from scratch, you need to get many details right. From basic security considerations to using the right HTTP methods, implementing authentication, deciding which requests and responses you should accept and return, ... the list goes on.

In this post, I'm trying my best to compress everything I know about what makes a good API. An API, that your consumers will enjoy using. All tips are language-agnostic, so they apply to any framework or technology.

Source: How to design better APIs, an article by Ronald Blüthl.

Demystifying NaN for the working programmer

Easily the strangest thing about floating-point numbers is the floating-point value “NaN”. Short for “Not a Number”, even its name is a paradox. Only floating-point values can be NaN, meaning that from a type-system point of view, only numbers can be “not a number”. NaN’s actual behavior is even stranger, though. The most spectacular bit of weirdness is that NaN is not equal to itself.

Source: If it’s not a number, what is it? Demystifying NaN for the working programmer, an article by James Hart.

Paul (2011)

Two English comic book geeks traveling across the U.S. encounter an alien outside Area 51.

In the evening Esme, Alice, and I watched Paul. Esme and I had seen the movie before, but still, I liked the movie and give it a 7 out of 10.