Skip to content

fix #23 修复标签页模板注入风险#55

Merged
pbootcmspro merged 1 commit into
masterfrom
fix/origin-23-tag-template-injection
Jun 27, 2026
Merged

fix #23 修复标签页模板注入风险#55
pbootcmspro merged 1 commit into
masterfrom
fix/origin-23-tag-template-injection

Conversation

@pbootcmspro

Copy link
Copy Markdown
Owner

变更

  • TagController 中统一使用 get('tag', 'vars') 校验 tag 输入。
  • 复用校验后的 $tag 构造当前位置和分类链接,避免模板标签进入 parserAfter() 二次解析。
  • 使用 constant('\\RVAR') 读取全局 RVAR,避免命名空间常量解析问题。

验证

  • php -l apps/home/controller/TagController.php
  • LSP diagnostics: no diagnostics
  • PoC payload 被 vars 规则拒绝,正常 tag 仍可通过

Fixes #23

@github-actions github-actions Bot added bug Something isn't working needs review Pull request is ready for maintainer review labels Jun 27, 2026
@pbootcmspro

Copy link
Copy Markdown
Owner Author

/lgtm

@github-actions github-actions Bot added ready to merge Pull request has been reviewed and is ready to merge and removed needs review Pull request is ready for maintainer review labels Jun 27, 2026
@pbootcmspro pbootcmspro merged commit fcfcba0 into master Jun 27, 2026
1 check passed
@pbootcmspro pbootcmspro deleted the fix/origin-23-tag-template-injection branch June 27, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready to merge Pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XSS Injection below 3.2.10

1 participant