A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.
Java application-securityappsecbug-bountyburp-alternativeburp-suitedasthttp-proxyinfosecintercepting-proxyjavaowaspowasp-zappenetration-testingpentestingsecuritysecurity-toolsvulnerability-scannerweb-application-securityweb-security
Engine: add-ons that crawl APIs
scottsturrockaef100d6fff7
diff --git a/fetch-zap.sh b/fetch-zap.shindex 834a926..08b3002 100755--- a/fetch-zap.sh+++ b/fetch-zap.sh@@ -89,12 +89,18 @@ fetch_addon replacer "${ZAP_ADDON_REPLACER}" release "${ZAP_ADDON_fetch_addon scripts "${ZAP_ADDON_SCRIPTS}" release "${ZAP_ADDON_SCRIPTS_SHA256}"fetch_addon zest "${ZAP_ADDON_ZEST}" beta "${ZAP_ADDON_ZEST_SHA256}"fetch_addon authhelper "${ZAP_ADDON_AUTHHELPER}" beta "${ZAP_ADDON_AUTHHELPER_SHA256}"+# Crawling APIs: definitions, SOAP and GraphQL.+fetch_addon openapi "${ZAP_ADDON_OPENAPI}" beta "${ZAP_ADDON_OPENAPI_SHA256}"+fetch_addon soap "${ZAP_ADDON_SOAP}" beta "${ZAP_ADDON_SOAP_SHA256}"+fetch_addon graphql "${ZAP_ADDON_GRAPHQL}" alpha "${ZAP_ADDON_GRAPHQL_SHA256}"# Open Suite ships no AI features. The authentication add-on carries an optional# AI-assisted login; it is taken out of the file altogether, not just left off,# and the step fails if any of it is still there.JAVA_BIN="java"[ -x "$DIR/jdk/bin/java" ] && JAVA_BIN="$DIR/jdk/bin/java""$JAVA_BIN" "$DIR/tools/StripAddonAi.java" "$DEST"/plugin/authhelper-*.zap+# The API definitions add-on carries an optional AI import: taken out the same way.+"$JAVA_BIN" "$DIR/tools/StripAddonAi.java" "$DEST"/plugin/openapi-*.zapJAR="$(ls "$DEST"/zap-*.jar 2>/dev/null | head -1)"[ -n "$JAR" ] || { echo "No zap jar after unpack" >&2; exit 1; }diff --git a/tools/StripAddonAi.java b/tools/StripAddonAi.javaindex 367282a..21b5d54 100644--- a/tools/StripAddonAi.java+++ b/tools/StripAddonAi.java@@ -6,9 +6,10 @@ import java.util.regex.Pattern;import java.util.zip.*;/**- * Removes the AI-assisted login from the engine's authentication add-on.+ * Removes the AI-assisted part from an engine add-on: the AI-assisted login of+ * the authentication add-on, and the AI import of the API definitions add-on.*- * Open Suite ships no AI features. The add-on that logs a scan in carries an+ * Open Suite ships no AI features. Each of these add-ons carries an* optional one; switching it off is not enough for networks where such code is* not allowed at all, so it is taken out of the file: its classes, the window* that offers it, its help pages, its messages, and its entry and change notes in@@ -17,7 +18,7 @@ import java.util.zip.*;* Run as: java tools/StripAddonAi.java <add-on file>*/public class StripAddonAi {- static final Pattern LEFT = Pattern.compile("authhelper/llm|addon/llm|AiAssist|AiAuth|[Ll]lm\\b|LLM|\\bAI\\b");+ static final Pattern LEFT = Pattern.compile("authhelper/llm|openapi/llm|addon/llm|AiAssist|AiAuth|[Ll]lm\\b|LLM|\\bAI\\b");public static void main(String[] args) throws Exception {Path file = Path.of(args[0]);@@ -41,22 +42,25 @@ public class StripAddonAi {List<String> left = new ArrayList<>();try (ZipInputStream in = new ZipInputStream(Files.newInputStream(out))) {for (ZipEntry e; (e = in.getNextEntry()) != null; ) {+ // Only the add-on's own files are read: a library it carries has "AI" as a country code.+ if (e.getName().contains("/") && !e.getName().startsWith("org/zaproxy/")) continue;String text = new String(in.readAllBytes(), StandardCharsets.ISO_8859_1);if (LEFT.matcher(e.getName()).find() || LEFT.matcher(text).find()) left.add(e.getName());}}if (!left.isEmpty()) {Files.deleteIfExists(out);- System.err.println("AI-assisted login is still referenced in " + file.getFileName() + ": " + left);+ System.err.println("An AI-assisted part is still referenced in " + file.getFileName() + ": " + left);System.exit(1);}Files.move(out, file, StandardCopyOption.REPLACE_EXISTING);- System.out.println("Removed the AI-assisted login from " + file.getFileName() + " (" + dropped + " files)");+ System.out.println("Removed the AI-assisted part from " + file.getFileName() + " (" + dropped + " files)");}static boolean drop(String n) {String base = n.substring(n.lastIndexOf('/') + 1);return n.contains("/authhelper/llm/")+ || n.contains("/openapi/llm/")|| base.startsWith("AiAssisted")|| base.startsWith("AuthTestDialog") // the window that offers it; never shown, the engine has no windows|| n.contains("/resources/help"); // help pages for that window@@ -68,6 +72,7 @@ public class StripAddonAi {int c0 = xml.indexOf("<changes>"), c1 = xml.indexOf("</changes>");if (c0 >= 0 && c1 > c0) xml = xml.substring(0, c0 + "<changes>".length()) + xml.substring(c1);int at = xml.indexOf("authhelper.llm.ExtensionAuthhelperLlm");+ if (at < 0) at = xml.indexOf("openapi.llm.ExtensionOpenApiLlm");if (at < 0) return xml;int start = xml.lastIndexOf("<extension", at);int end = xml.indexOf("</extension>", at) + "</extension>".length();diff --git a/tools/check-updates.sh b/tools/check-updates.shindex 3cbc8a3..46c19cf 100755--- a/tools/check-updates.sh+++ b/tools/check-updates.sh@@ -92,6 +92,9 @@ addon replacer "$ZAP_ADDON_REPLACER"addon scripts "$ZAP_ADDON_SCRIPTS"addon zest "$ZAP_ADDON_ZEST"addon authhelper "$ZAP_ADDON_AUTHHELPER"+addon openapi "$ZAP_ADDON_OPENAPI"+addon soap "$ZAP_ADDON_SOAP"+addon graphql "$ZAP_ADDON_GRAPHQL"# Chromium: each platform's pin against the stable release.browser "chromium" "$CHROMIUM_REVISION" Linuxdiff --git a/tools/versions b/tools/versionsindex 81d4781..073415e 100644--- a/tools/versions+++ b/tools/versions@@ -54,6 +54,15 @@ ZAP_ADDON_COMMONLIB_SHA256=f09eb7f64708be0781f7b443462d0fad33c272ccb115f0760522eZAP_ADDON_ASCANRULES_BETA_SHA256=8bd739299cdcec606a69630e6635dc473b3c26d2eb24b26e70a94f8b774a367cZAP_ADDON_PSCANRULES_BETA_SHA256=a979f7cd5d8be10e0338b417e006ec1e2f6ec79101010d570ddb5199892e921b+# Crawling APIs: the add-ons that read an API definition (OpenAPI), a SOAP WSDL+# and a GraphQL schema, so a scan reaches what no page links to.+ZAP_ADDON_OPENAPI=58+ZAP_ADDON_SOAP=32+ZAP_ADDON_GRAPHQL=0.35.0+ZAP_ADDON_OPENAPI_SHA256=42356d818f994d3e19a2b892cebf9c058bd59ef372137411a1bacd8b4d19424b+ZAP_ADDON_SOAP_SHA256=e7767272723a9ffee7e4cddb65d1b4941da756a380cc4c8db5ccb6012badf9fd+ZAP_ADDON_GRAPHQL_SHA256=7bbf1607228556063825964ac842863a97f01b21fbe11013e94f8fe80aa935e6+# Portable JDK used to compile Open Suite and build the AppImage runtime.# Temurin is built on an old glibc, so the AppImage runs on mainstream Linux.# The full release (not just the major) is pinned, plus the tarball's sha256,