diff --git a/addOns/pscanrulesBeta/CHANGELOG.md b/addOns/pscanrulesBeta/CHANGELOG.md index 15a7a81590b..831a797e515 100644 --- a/addOns/pscanrulesBeta/CHANGELOG.md +++ b/addOns/pscanrulesBeta/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +### Added +- Website alert links (Issue 8189). ## [36] - 2024-01-16 ### Changed diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CacheableScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CacheableScanRule.java index 0ce1f14b5e7..6ca45079f0d 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CacheableScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CacheableScanRule.java @@ -75,7 +75,7 @@ * * @author 70pointer@gmail.com */ -public class CacheableScanRule extends PluginPassiveScanner { +public class CacheableScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { private static final String MESSAGE_PREFIX_STORABILITY_CACHEABILITY = "pscanbeta.storabilitycacheability."; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CommonPassiveScanRuleInfo.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CommonPassiveScanRuleInfo.java new file mode 100644 index 00000000000..0df0b1f429b --- /dev/null +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/CommonPassiveScanRuleInfo.java @@ -0,0 +1,10 @@ +package org.zaproxy.zap.extension.pscanrulesBeta; + +public interface CommonPassiveScanRuleInfo { + public int getPluginId(); + + public default String getHelpLink() { + return "https://www.zaproxy.org/docs/desktop/addons/passive-scan-rules-beta/#id-" + + getPluginId(); + } +} \ No newline at end of file diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/InPageBannerInfoLeakScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/InPageBannerInfoLeakScanRule.java index 6cd0845d464..a6e7a2565db 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/InPageBannerInfoLeakScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/InPageBannerInfoLeakScanRule.java @@ -37,7 +37,7 @@ /** * In Page Banner Information Leak passive scan rule https://github.com/zaproxy/zaproxy/issues/178 */ -public class InPageBannerInfoLeakScanRule extends PluginPassiveScanner { +public class InPageBannerInfoLeakScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { private static final Logger LOGGER = LogManager.getLogger(InPageBannerInfoLeakScanRule.class); private static final int PLUGIN_ID = 10009; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsFunctionScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsFunctionScanRule.java index 4ef7019f1b8..1ee3c7d916d 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsFunctionScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsFunctionScanRule.java @@ -43,7 +43,7 @@ import org.zaproxy.zap.extension.pscan.PluginPassiveScanner; /** Passive Scan Rule for Dangerous JS Functions https://github.com/zaproxy/zaproxy/issues/5673 */ -public class JsFunctionScanRule extends PluginPassiveScanner { +public class JsFunctionScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { /** Prefix for internationalized messages used by this rule */ private static final String MESSAGE_PREFIX = "pscanbeta.jsfunction."; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsoScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsoScanRule.java index 5db27fb0bdc..f37f0c45498 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsoScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/JsoScanRule.java @@ -33,7 +33,7 @@ import org.zaproxy.zap.extension.pscan.PluginPassiveScanner; /** Java Serialized Objects (JSO) scan rule. Detect the magic sequence and generate an alert */ -public class JsoScanRule extends PluginPassiveScanner { +public class JsoScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { /** Prefix for internationalized messages used by this rule */ private static final String MESSAGE_PREFIX = "pscanbeta.jso."; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/PermissionsPolicyScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/PermissionsPolicyScanRule.java index c0a382cd7f3..11054cbf116 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/PermissionsPolicyScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/PermissionsPolicyScanRule.java @@ -38,7 +38,7 @@ * Permissions Policy Header Missing passive scan rule * https://github.com/zaproxy/zaproxy/issues/4885 */ -public class PermissionsPolicyScanRule extends PluginPassiveScanner { +public class PermissionsPolicyScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { private static final String PERMISSIONS_POLICY_HEADER = "Permissions-Policy"; private static final String DEPRECATED_HEADER = "Feature-Policy"; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/ServletParameterPollutionScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/ServletParameterPollutionScanRule.java index 5e127cfcbd9..97549425775 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/ServletParameterPollutionScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/ServletParameterPollutionScanRule.java @@ -41,7 +41,7 @@ * * @author psiinon */ -public class ServletParameterPollutionScanRule extends PluginPassiveScanner { +public class ServletParameterPollutionScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { private static final String MESSAGE_PREFIX = "pscanbeta.servletparameterpollution."; private static final int PLUGIN_ID = 10026; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SiteIsolationScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SiteIsolationScanRule.java index 19e2a5274fd..74c38d2f3b3 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SiteIsolationScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SiteIsolationScanRule.java @@ -64,7 +64,7 @@ * @see COOP Specs * @see COEP Specs */ -public class SiteIsolationScanRule extends PluginPassiveScanner { +public class SiteIsolationScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { /** Prefix for internationalized messages used by this rule */ private static final String SITE_ISOLATION_MESSAGE_PREFIX = "pscanbeta.site-isolation."; diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SourceCodeDisclosureScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SourceCodeDisclosureScanRule.java index b1518b4a48a..cfade89d997 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SourceCodeDisclosureScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SourceCodeDisclosureScanRule.java @@ -40,7 +40,7 @@ * * @author 70pointer@gmail.com */ -public class SourceCodeDisclosureScanRule extends PluginPassiveScanner { +public class SourceCodeDisclosureScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { private static final Logger LOGGER = LogManager.getLogger(SourceCodeDisclosureScanRule.class); diff --git a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SubResourceIntegrityAttributeScanRule.java b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SubResourceIntegrityAttributeScanRule.java index 24b3c85e489..a9d335dc76a 100644 --- a/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SubResourceIntegrityAttributeScanRule.java +++ b/addOns/pscanrulesBeta/src/main/java/org/zaproxy/zap/extension/pscanrulesBeta/SubResourceIntegrityAttributeScanRule.java @@ -48,7 +48,7 @@ import org.zaproxy.zap.extension.ruleconfig.RuleConfigParam; /** Detect missing attribute integrity in supported elements */ -public class SubResourceIntegrityAttributeScanRule extends PluginPassiveScanner { +public class SubResourceIntegrityAttributeScanRule extends PluginPassiveScanner implements CommonPassiveScanRuleInfo { private static final Logger LOGGER = LogManager.getLogger(SubResourceIntegrityAttributeScanRule.class); diff --git a/addOns/pscanrulesBeta/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesBeta/resources/help/contents/pscanbeta.html b/addOns/pscanrulesBeta/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesBeta/resources/help/contents/pscanbeta.html index 0a6194c8041..261e68efa3f 100644 --- a/addOns/pscanrulesBeta/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesBeta/resources/help/contents/pscanbeta.html +++ b/addOns/pscanrulesBeta/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesBeta/resources/help/contents/pscanbeta.html @@ -23,7 +23,7 @@
Alerts generated: @@ -35,7 +35,7 @@
Latest code: CacheableScanRule.java -
Latest code: JsFunctionScanRule.java -
Latest code: InPageBannerInfoLeakScanRule.java -
Latest code: JsoScanRule.java -
Latest code: PermissionsPolicyScanRule.java -
Latest code: SiteIsolationScanRule.java -
Latest code: ServletParameterPollutionScanRule.java -
Latest code: SourceCodeDisclosureScanRule.java -