html-injection-testing – skill Lập trình cho agent AI
Phát hiện và khai thác lỗ hổng HTML injection cho phép kẻ tấn công chèn nội dung HTML độc hại vào ứng dụng web. Lỗ hổng này cho phép kẻ tấn công thay đổi giao diện trang, tạo trang phishing và đánh cắp thông tin đăng nhập qua các form được chèn vào.
Cài skill html-injection-testing bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/html-injection-testing-e55b4.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /html-injection-testing – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/html-injection-testing-e55b4.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $html-injection-testing – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/html-injection-testing-e55b4.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /html-injection-testing – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/html-injection-testing-e55b4.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /html-injection-testing – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
> ⚠️ 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](references/detailed-guide.md) 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
- Browsers generally parse supplied markup; sanitization is the application’s responsibility
- 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
- Severity depends on actual context and impact; HTML-only injection is distinct from demonstrated 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.
Skill liên quan
- http-status-code-tester – Trình kiểm tra mã trạng thái HTTP. Dùng khi làm việc với một hoặc nhiều URL HTTP(S).
- hubspot-integration – Mẫu chuyên sâu để tích hợp HubSpot CRM, gồm xác thực OAuth, đối tượng CRM, association…
- hugging-face-cli – CLI (`hf`) của Hugging Face Hub để tải xuống, tải lên và quản lý model, dataset, space…
- hugging-face-community-evals – Chạy đánh giá cho model trên Hugging Face Hub bằng inspect-ai và lighteval trên phần…
- hugging-face-gradio – Xây dựng giao diện web và demo Gradio bằng Python. Dùng khi tạo hoặc chỉnh sửa ứng dụng…
- hugging-face-papers – Tra cứu và đọc trang paper của Hugging Face dưới dạng markdown, và dùng papers API để…
- hugging-face-tool-builder – Mục đích của bạn là tạo các script và tiện ích dòng lệnh có thể tái sử dụng để dùng…
- hugging-face-trackio – Theo dõi và trực quan hóa các thí nghiệm huấn luyện ML với Trackio. Dùng khi ghi metric…