Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to the docker containers will be documented in this file.

### 2026-03-10
- Use alert references in "Alert on HTTP Response Code Errors" script to avoid duplicates (Issue 9273).

### 2026-02-26
- Updated weekly image to debian:trixie and JDK 21

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ function responseReceived(msg, initiator, helper) {
// Do nothing
} else {
var risk = 0 // Info
var alertRef = 1
var title = "A Client Error response code was returned by the server"
if (code >= 500) {
// Server error
risk = 1 // Low
title = "A Server Error response code was returned by the server"
alertRef = 2
}
// CONFIDENCE_HIGH = 3 (we can be pretty sure we're right)
var alert = new Alert(pluginid, risk, 3, title)
Expand Down Expand Up @@ -82,6 +84,7 @@ function responseReceived(msg, initiator, helper) {
"This may indicate that the application is failing to handle unexpected input correctly.\n" +
"Raised by the 'Alert on HTTP Response Code Error' script");
alert.setEvidence(code.toString())
alert.setAlertRef(pluginid + "-" + alertRef)
alert.setCweId(388) // CWE CATEGORY: Error Handling
alert.setWascId(20) // WASC Improper Input Handling
extensionAlert.alertFound(alert , ref)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,9 @@ public boolean isEnableForComponent(Component invoker) {
public int getWeight() {
return MenuWeights.MENU_SITE_REFRESH_WEIGHT;
}

@Override
public boolean isSafe() {
return true;
}
}
Loading