In agent/Core/SpawningKit/Spawner.h in Phusion Passenger 5.1.10 (fixed in Passenger Open Source 5.1.11 and Passenger Enterprise 5.1.10), if Passenger is running as root, it is possible to list the contents of arbitrary files on a system by symlinking a file named REVISION from the application root folder to a file of choice and querying passenger-status --show=xml.
{ "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "libapache2-mod-passenger" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "libapache2-mod-passenger-dbgsym" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "passenger" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "passenger-dbgsym" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "passenger-doc" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "ruby-passenger" }, { "binary_version": "5.0.27-2ubuntu0.1~esm1", "binary_name": "ruby-passenger-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "libapache2-mod-passenger" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "libapache2-mod-passenger-dbgsym" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "passenger" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "passenger-dbgsym" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "passenger-doc" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "ruby-passenger" }, { "binary_version": "5.0.30-1+deb9u1build0.18.04.1", "binary_name": "ruby-passenger-doc" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "binary_version": "5.0.30-1.1", "binary_name": "libapache2-mod-passenger" }, { "binary_version": "5.0.30-1.1", "binary_name": "libapache2-mod-passenger-dbgsym" }, { "binary_version": "5.0.30-1.1", "binary_name": "passenger" }, { "binary_version": "5.0.30-1.1", "binary_name": "passenger-dbgsym" }, { "binary_version": "5.0.30-1.1", "binary_name": "passenger-doc" }, { "binary_version": "5.0.30-1.1", "binary_name": "ruby-passenger" }, { "binary_version": "5.0.30-1.1", "binary_name": "ruby-passenger-doc" } ] }