Skip to content

v0.55.1: a dot segment is refused, a mounted face keeps its guards (security patch)

Choose a tag to compare

@john-broadway john-broadway released this 22 Nov 03:48

What changed for an operator

A security patch. Nothing to migrate, no stored format changes, and nothing that worked before is refused unless it was one of the two spellings below.

  • A path with a lone . segment is refused. It was checked as one address and sent as another. No real Proxmox id is a lone .; a dot inside a value (.vmbr0) still passes.
  • If you mount a Proximo face under a prefix in your own Starlette app, its guards now hold there. Before, the bearer, the cross-origin guard and the badge check stood aside under a prefix. proximo serve and the shipped doors do not mount under a prefix and were not affected.

Reported privately by Kamipiula (GHSA-pm7c-9g59-j62g). Thank you.

The release

A dot segment is refused. Reported by Kamipiula (GHSA-pm7c-9g59-j62g). A path with a lone . segment, raw or %2e, passed the spelling check. The core governed PUT /nodes/localhost/network/. on pbs as the row PUT /nodes/{node}/network/{iface}, while the HTTP client removes the dot segment and sends PUT /nodes/localhost/network, a different address. A . segment is now refused beside .., before the address is matched. A dot inside a value (.vmbr0) is a name and still passes.

A face mounted under a prefix keeps its guards (same report). The bearer check, the cross-origin guard and the badge camera asked about the request's full path. An application that mounts a face under a Starlette Mount prefix sent /prefix/tools/... to a check that selects /tools/..., and all three stood aside. They now ask about the path the mounted face routes on as well as the full one, so a mount can add protection and never remove it. proximo serve and the shipped doors do not mount under a prefix and were not affected.

A brace that is not a whole segment is refused. Found by the review of the fix above. A path like /nodes/{/qemu/100} was planned as GET /nodes/{node}, a row with a different number of segments. Execution already refused it before anything was sent, so only a plan could be issued on it. A placeholder must now be a whole segment ({node}).

The door-contract script cleans up after itself. scripts/gen_door_contract.py left one temporary folder behind on every run.

Where to read more