Skip to main content

mitm-find-callback

Find payment callback and webhook vulnerabilities. Use when user asks about payment security, callback tampering, hash validation, or transaction manipulation.

跳到安装

来源信息

仓库
instavm/security-skills
最近来源活动
2026年3月23日 05:24
检测到的 SKILL.md 语言
英语
星标
84
分支
11

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
mitm-find-callback
description
Find payment callback and webhook vulnerabilities. Use when user asks about payment security, callback tampering, hash validation, or transaction manipulation.
# Find Payment Callback Vulnerabilities Analyze the mitmproxy dump (log.txt) for payment callback issues for: $ARGUMENTS > **Requires**: `log.txt` in the current directory. If it's missing, capture traffic first: > ```bash > mitmdump --set flow_detail=3 2>&1 | tee log.txt > ``` ## Vulnerability Types ### 1. Hash/Signature Not Validated - Callback accepts any hash value - Hash parameter present but not verified - Can change status without valid signature ### 2. Status Manipulation - Change `status=failed` to `status=success` - Modify `unmappedstatus` parameter - Tamper with transaction result ### 3. Amount Manipulation - Modify amount before callback - Pay less, get full order - Decimal manipulation ### 4. Signature Collision - Same signature works for payment and refund - Parameter reordering gives same hash - Missing fields in signature calculation ### 5. Checksum Generation Exposed - API returns checksum even on error - Can generate arbitrary checksums - Checksum algorithm is weak (MD5/SHA1 without salt) ## Testing Approach ```bash # Test callback with modified status curl -X POST "https://merchant.com/payment/callback" \ -d "txnid=12345&status=success&hash=original_hash" # Test with invalid hash curl -X POST "https://merchant.com/payment/callback" \ -d "txnid=12345&status=success&hash=aaaa" ``` ## Red Flags in Traffic - Callback URLs with all params in request - Hash visible in client-side code - Salt/secret in JavaScript - Error responses containing valid checksums ## Output Format For each finding: - **Callback URL**: Vulnerable endpoint - **Issue**: What can be manipulated - **Parameters**: Affected fields - **Test**: How to exploit - **Impact**: Free orders, refunds, etc. - **Fix**: Proper server-side validation
在 GitHub 查看