跳到正文
Skillpedia
安全48k · #4830

html-injection-testing

它能做什么

这个工具可以帮助查找并利用网站中允许插入恶意 HTML 代码的漏洞。这类漏洞可能被用来改变页面外观、制作用于窃取信息的虚假页面,甚至窃取密码。

适用场景

  • ✓检查网站是否能抵御 HTML 注入攻击。
  • ✓了解攻击者如何篡改网页。
  • ✓在获得授权的前提下测试网站的安全性。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/html-injection-testing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/html-injection-testing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“检查网站“example.com”是否存在 HTML 注入漏洞。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具会向网站发送特殊的 HTML 代码,并观察网站的反应。如果网站没有做任何防护,直接显示了这些代码,那它可能存在漏洞。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

AUTHORIZED USE ONLY: Use this skill only for authorized security assessments, defensive validation, or controlled educational environments.

HTML Injection Testing

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

Prerequisites

Required Tools

  • Web browser with developer tools
  • Burp Suite or OWASP ZAP
  • Tamper Data or similar proxy
  • cURL for testing payloads

Required Knowledge

  • HTML fundamentals
  • HTTP request/response structure
  • Web application input handling
  • Difference between HTML injection and XSS

Constraints and Limitations

Attack Limitations

  • Modern browsers may sanitize some injections
  • CSP can prevent inline styles and scripts
  • WAFs may block common payloads
  • Some applications escape output properly

Testing Considerations

  • Distinguish between HTML injection and XSS
  • Verify visual impact in browser
  • Test in multiple browsers
  • Check for stored vs reflected

Severity Assessment

  • Lower severity than XSS (no script execution)
  • Higher impact when combined with phishing
  • Consider defacement/reputation damage
  • Evaluate credential theft potential

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

常见问题

HTML 注入和 XSS 有什么区别?

HTML 注入可以改变页面外观或添加表单,但无法像 XSS 那样执行危险代码。XSS 更危险,因为它能在用户的浏览器中运行脚本。

为什么使用这个工具需要获得许可?

未经许可使用该工具是违法的,还可能造成损害。它应仅用于经过授权的测试,或在受控环境中学习。

什么是 CSP 和 WAF?

CSP(内容安全策略)和 WAF(Web 应用防火墙)都是安全措施,它们可以阻止 HTML 注入正常生效。

详情

作者的原始描述

Identify and exploit HTML injection vulnerabilities that allow attackers to inject malicious HTML content into web applications. This vulnerability enables attackers to modify page appearance, create phishing pages, and steal user credentials through injected forms.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4830
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能