Open OnDemand - php2shell

Hi, I’m 99% sure it’s not, but could you confirm if the core OOD app is affected by the recent php2shell vulnerability please.

My OOD servers do NOT have php installed; it’s easy to check on RHEL/Rocky/… with

rpm -qa | grep -i php

which should print nothing. However, PHP may be installed for reasons other than OOD needing it, so you should check…

Cheers,

Ric

Yes OnDemand doesn’t rely on or use php.

To add to Jeff’s answer: we now publish a CycloneDX SBOM for each OOD release, so you can check what ships with OnDemand yourself:

Files are at <major.minor>/<distro>/<arch>/ood-<version>-<distro>-<arch>.cdx.json. Grab the one that matches your install. When the next big vulnerability hits:

Search the SBOM for a package

jq -r '.components[] | select(.purl) | .purl' ood-4.2.5-el9-x86_64.cdx.json | grep -i php

No output means it’s not shipped. Swap in whatever is in the news. For example, grep -i nokogiri returns pkg:gem/nokogiri@1.19.4.

You can verify the SBOM files with sha256sum -c checksums.txt in the version directory.

Scan the SBOM against known CVEs

grype sbom:./ood-4.2.5-el9-x86_64.cdx.json
# or
trivy sbom ./ood-4.2.5-el9-x86_64.cdx.json

Check your OnDemand web server directly

Your host may have software installed that OOD doesn’t ship as Ric suggested above:

# OS packages
rpm -qa | grep -i php          # RHEL family
dpkg -l | grep -i php          # Debian/Ubuntu

# Ruby gems bundled with OOD
find /opt/ood -type d -name 'nokogiri-*' -path '*/gems/*'

Thanks all, really useful info.