@patchstack/connect 0.2.11 → 0.3.0
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/dist/cli.js +29 -189
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +0 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -42
- package/dist/index.d.ts +1 -42
- package/dist/index.js +0 -89
- package/dist/index.js.map +1 -1
- package/dist/protect/templates/guard.ts +29 -98
- package/dist/protect/templates/rules.json +4 -7
- package/dist/protect.cjs +1215 -0
- package/dist/protect.cjs.map +1 -0
- package/dist/protect.js +1186 -0
- package/dist/protect.js.map +1 -0
- package/package.json +5 -1
- package/dist/protect/templates/engine.d.ts +0 -57
- package/dist/protect/templates/engine.js +0 -137
- package/dist/protect/templates/manifest.d.ts +0 -1
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_comment": "
|
|
2
|
+
"_comment": "Demo fallback rules — used only when PATCHSTACK_WAF_TOKEN is unset. In production the guard fetches per-site rules from the Patchstack API (api.patchstack.com/api/get-rules/3, cached to disk). CVE id is representative until aligned with the real corpus.",
|
|
3
3
|
"firewall": [
|
|
4
4
|
{
|
|
5
5
|
"id": "rm-npm-0001",
|
|
6
6
|
"title": "Block stored XSS via vulnerable markdown renderer (marked)",
|
|
7
7
|
"vulnerability_id": "CVE-2022-21681",
|
|
8
|
-
"package_cond": {
|
|
9
|
-
"package": "marked",
|
|
10
|
-
"vulnerable_versions": ["4.0.0"]
|
|
11
|
-
},
|
|
12
8
|
"rule_v2": [
|
|
13
9
|
{
|
|
14
|
-
"parameter":
|
|
10
|
+
"parameter": "post.title",
|
|
15
11
|
"mutations": ["urldecode"],
|
|
16
12
|
"match": { "type": "inline_xss" }
|
|
17
13
|
}
|
|
18
14
|
]
|
|
19
15
|
}
|
|
20
16
|
],
|
|
21
|
-
"whitelists": []
|
|
17
|
+
"whitelists": [],
|
|
18
|
+
"whitelist_keys": {}
|
|
22
19
|
}
|