Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update brakeman ignore

Rafal Cymerys4827b7254dfd
diff --git a/core/brakeman.ignore b/core/brakeman.ignore
index 146de579c7..f4c5a300df 100644
--- a/core/brakeman.ignore
+++ b/core/brakeman.ignore
@@ -23,6 +23,29 @@
],
"note": "interpolating table name"
},
+ {
+ "warning_type": "Redirect",
+ "warning_code": 18,
+ "fingerprint": "05d3870f66d650510c859a8949d5686b05eb028825083b096d0f65fedf80b118",
+ "check_name": "Redirect",
+ "message": "Possible unprotected redirect",
+ "file": "lib/spree/core/controller_helpers/auth.rb",
+ "line": 25,
+ "link": "https://brakemanscanner.org/docs/warning_types/redirect/",
+ "code": "redirect_to((session[\"spree_user_return_to\"] or (request.env[\"HTTP_REFERER\"] or default)))",
+ "render_path": null,
+ "location": {
+ "type": "method",
+ "class": "Spree::Core::ControllerHelpers::Auth",
+ "method": "redirect_back_or_default"
+ },
+ "user_input": "request.env[\"HTTP_REFERER\"]",
+ "confidence": "High",
+ "cwe_id": [
+ 601
+ ],
+ "note": ""
+ },
{
"warning_type": "SQL Injection",
"warning_code": 0,
@@ -254,6 +277,6 @@
"note": ""
}
],
- "updated": "2023-01-18 14:40:41 +0100",
- "brakeman_version": "5.4.0"
+ "updated": "2023-02-24 11:32:53 +0100",
+ "brakeman_version": "5.4.1"
}