No "real" capture of HTTP:BL response
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先阅读链接区域中的 src/operators/rbl.cc,并将当前行为与历史代码片段进行比较。跟踪 RBL 响应和事务捕获数据是如何表示的;完成标准是 operator 暴露出基于 score 进行过滤所需的真实响应数据,而不只是原始 IP。
由索引模型根据 Issue 内容生成。
描述
Unfortunately the RBL operator returns the originally IP on match, but not the "real" response. This means, that this operator only could be used on a boolean base like "If there is a DNS response, then match".
IMHO being able to filter requests based on a score would be much better and more feasible, so I changed the code like mentioned below.
if (rule && t && rule->hasCaptureAction()) {
char *respBl;
int first, second, third, fourth;
respBl = inet_ntoa(sin.sin_addr);
if (sscanf(respBl, "%d.%d.%d.%d", &first, &second, &third, &fourth) != 4) {
ms_dbg_a(t, 4, "RBL lookup of " + ipStr + " failed: bad response");
//return false;
}
else {
t->m_collections.m_tx_collection->storeOrUpdateFirst(
"1", std::string(respBl));
t->m_collections.m_tx_collection->storeOrUpdateFirst(
"2", std::to_string(fourth));
}
furtherInfo(&sin, ipStr, t, m_provider);
}
trans->m_collections.m_tx_collection->storeOrUpdateFirst(
"2", std::to_string(score));
trans->m_collections.m_tx_collection->storeOrUpdateFirst(
"3", std::to_string(type));
trans->m_collections.m_tx_collection->storeOrUpdateFirst(
"4", std::to_string(days));
- 主要语言
- C++
- 星标
- 9.8k
- 派生
- 1.8k
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
owasp-modsecurity/ModSecurity 的其他 Issue
-
3.x bug
难度 2/5 1-3 小时 新手友好度 78/100
owasp-modsecurity/ModSecurity#3708 ·
维护者通常 1 天内回复
-
v2: t:utf8toUnicode drops the last hex digit of code points above U+FFFF (regression since 2.9.9)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
owasp-modsecurity/ModSecurity#3684 ·
维护者通常 1 天内回复
-
2.x bug Platform - IIS pr available windows
难度 1/5 1 小时以内 新手友好度 90/100
owasp-modsecurity/ModSecurity#3623 · 2 条评论 ·
维护者通常 1 天内回复
-
2.x bug Platform - IIS pr available windows
难度 2/5 1-3 小时 新手友好度 82/100
owasp-modsecurity/ModSecurity#3621 · 2 条评论 ·
维护者通常 1 天内回复
-
2.x bug Platform - IIS pr available windows
难度 2/5 1-3 小时 新手友好度 84/100
owasp-modsecurity/ModSecurity#3619 · 2 条评论 ·
维护者通常 1 天内回复
查看 owasp-modsecurity/ModSecurity 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
elf-alchemist/elfbsp#113 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
patrick-hudson/put.gd-desktop#979 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Dao-AILab/flash-attention#3097 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
Niko1221/Strata#4779 · 2 条评论 ·
维护者通常 3 天内回复