Exploit databaseDownload repository ZIP
GH-df41f16d48225987bc522a01e911c6ee
dinosn/axis-cve-2026-90436-lab-poc
Sources for CVE-2026-90436
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files9
dinosn/axis-cve-2026-90436-lab-pocRevision b7df4df5f4f8
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
build-and-run.sh
Shell · 1,736 bytes#!/bin/sh
# CVE-2026-90436 lab: stock Apache Axis 1.4 webapp on Tomcat 9.0.85 / JDK 8,
# with the poc.Gadget positive-control jar dropped into WEB-INF/lib.
#
# Downloads the official archives (idempotent), builds the Docker image and
# starts it on 127.0.0.1:18080. Requires: docker, javac (JDK 9+), jar, curl.
set -e
ROOT="$(cd "$(dirname "$0")" && pwd)"
WORK="${WORK:-$ROOT/.work}"
mkdir -p "$WORK" && cd "$WORK"
# 1) official artifacts (idempotent)
[ -f axis-bin-1_4.zip ] || curl -fsSLO https://archive.apache.org/dist/ws/axis/1_4/axis-bin-1_4.zip
[ -f apache-tomcat-9.0.85.tar.gz ] || curl -fsSLO https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.85/bin/apache-tomcat-9.0.85.tar.gz
[ -d axis-webapp ] || { unzip -q -o axis-bin-1_4.zip -d axis-bin && cp -R axis-bin/axis-1_4/webapps/axis axis-webapp; }
[ -d tomcat ] || { mkdir -p tomcat && tar xzf apache-tomcat-9.0.85.tar.gz -C tomcat --strip-components=1; }
# 2) positive-control gadget (poc.Gadget + poc.Gadget2)
mkdir -p gadget-classes
javac --release 8 -d gadget-classes "$ROOT/gadget/Gadget.java" "$ROOT/gadget/Gadget2.java"
jar cf "$WORK/gadget.jar" -C gadget-classes poc
# 3) build + run
docker build -t axis-cve-2026-90436 -f "$ROOT/docker/Dockerfile" "$WORK" >/dev/null
docker rm -f axis-lab >/dev/null 2>&1 || true
docker run -d --name axis-lab -p 18080:8080 axis-cve-2026-90436 >/dev/null
# 4) sanity: wait for the axis webapp to answer
i=0
while [ $i -lt 30 ]; do
code=$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:18080/axis/ || true)
if [ "$code" = "200" ]; then
echo "lab up: http://127.0.0.1:18080/axis/ (GET /axis/ -> 200)"
exit 0
fi
i=$((i+1)); sleep 2
done
echo "lab FAILED to come up"
docker logs axis-lab | tail -50
exit 1