The other injections: command, XXE, traversal and races
Web Vulnerabilities · Open board
The web bugs where text from outside is treated as something more than text. This lesson adds five more places where that happens, all of them quiet and all of them still found in real servers.
On 4 October 2021 the Apache project released version 2.4.50 of its web server. It fixed one bug, tracked as CVE-2021-41773, in a change made to how the server cleans up file paths. The bug let a stranger ask for a file outside the folders the owner had chosen to publish. Three days later, on 7 October, Apache released 2.4.51, because the fix in 2.4.50 had not covered every way of writing the same attack. Only versions 2.4.49 and 2.4.50 were affected, and Apache said the issue was being used against real servers.
One small piece of path-cleaning code, changed once, put files at risk on servers all over the world. By the end of this lesson you will be able to spot five more bugs of this family in code, and fix each one with a short, specific change.