@patchstack/connect 0.5.16 → 0.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENT-INSTALL.md +5 -3
- package/README.md +5 -5
- package/dist/cli.js +41 -9
- package/dist/cli.js.map +1 -1
- package/dist/protect.cjs +4 -1
- package/dist/protect.cjs.map +1 -1
- package/dist/protect.edge.js +4 -1
- package/dist/protect.edge.js.map +1 -1
- package/dist/protect.js +4 -1
- package/dist/protect.js.map +1 -1
- package/package.json +1 -1
package/dist/protect.edge.js
CHANGED
|
@@ -4394,7 +4394,10 @@ var DEFAULT_RESPONSE_RULES = [
|
|
|
4394
4394
|
// the constraint name, the column and the offending value discloses the schema anyway.
|
|
4395
4395
|
action: "block",
|
|
4396
4396
|
prefilter: ["SQLSTATE", "Sequelize", "ER_", "ORA-", "PG::", "SQLITE_ERROR", "SQL syntax"],
|
|
4397
|
-
|
|
4397
|
+
// Case-sensitive, because every signature is emitted in one fixed case. `ER_` is the one that needs
|
|
4398
|
+
// it: MySQL error codes are whole upper-case words (`ER_DUP_ENTRY`), and matched without case or a
|
|
4399
|
+
// word boundary it finds the end of ordinary identifiers such as a `cover__background` class name.
|
|
4400
|
+
rule_v2: [{ parameter: "response.body", match: { type: "regex", value: "/(SQLSTATE\\[[0-9A-Z]+\\]|SequelizeDatabaseError|\\bER_[A-Z][A-Z0-9_]*|ORA-\\d{5}|PG::[A-Za-z]+Error|SQLITE_ERROR|You have an error in your SQL syntax)/" } }]
|
|
4398
4401
|
},
|
|
4399
4402
|
{
|
|
4400
4403
|
id: "resp-exception-trace",
|