@patchstack/connect 0.5.16 → 0.5.18
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 +32 -5
- 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.js
CHANGED
|
@@ -4108,7 +4108,10 @@ var DEFAULT_RESPONSE_RULES = [
|
|
|
4108
4108
|
// the constraint name, the column and the offending value discloses the schema anyway.
|
|
4109
4109
|
action: "block",
|
|
4110
4110
|
prefilter: ["SQLSTATE", "Sequelize", "ER_", "ORA-", "PG::", "SQLITE_ERROR", "SQL syntax"],
|
|
4111
|
-
|
|
4111
|
+
// Case-sensitive, because every signature is emitted in one fixed case. `ER_` is the one that needs
|
|
4112
|
+
// it: MySQL error codes are whole upper-case words (`ER_DUP_ENTRY`), and matched without case or a
|
|
4113
|
+
// word boundary it finds the end of ordinary identifiers such as a `cover__background` class name.
|
|
4114
|
+
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)/" } }]
|
|
4112
4115
|
},
|
|
4113
4116
|
{
|
|
4114
4117
|
id: "resp-exception-trace",
|