Skip to content

Commit 606cac4

Browse files
committed
feat: 补 Joomla / Varnish 响应头识别
Joomla:补响应头识别,覆盖 x-content-encoded-by(真实 Joomla 旧版表头)、x-powered-cms(部分伪造样本会用)、x-generator 三条路径,放进 websitePrograms 后落在「网站程序」类目,遇到 spoof 场景(身份字段 ≥4)会被 markSpoofedHeaderDetections 一起降级到「低」并附伪造警示。 Varnish:扩展 via/x-cache 之外的命中点,新增 x-varnish:\s*\d 模式——真实 Varnish 的 XID 一定是十进制数,要求数字开头能挡住 x-varnish: gs60 这种非数字伪造值。 将版本号提升到 1.3.46。
1 parent 134b9a2 commit 606cac4

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.3.45",
4+
"version": "1.3.46",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/headers/header-patterns.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@
229229
{
230230
"name": "Varnish",
231231
"confidence": "",
232-
"patterns": ["via:.*varnish", "x-cache:.*varnish"],
233-
"evidence": "via/x-cache 包含 Varnish"
232+
"patterns": ["via:.*varnish", "x-cache:.*varnish", "(?:^|\\n)x-varnish:\\s*\\d"],
233+
"evidence": "响应头包含 Varnish 线索"
234234
},
235235
{
236236
"defaults": {

public/rules/headers/website-programs.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
"kind": "CMS",
1212
"patterns": ["x-drupal-cache", "x-generator:.*drupal"]
1313
},
14+
{
15+
"name": "Joomla",
16+
"kind": "CMS",
17+
"patterns": ["(?:^|\\n)x-content-encoded-by:[^\\n]*joomla", "(?:^|\\n)x-powered-cms:[^\\n]*joomla", "x-generator:.*joomla"]
18+
},
1419
{
1520
"name": "Shopify",
1621
"kind": "SaaS 电商",

0 commit comments

Comments
 (0)