Goal Reached Thanks to every supporter โ€” we hit 100%!

Goal: 1000 CNY ยท Raised: 1110 CNY

100%

CVE-2022-47945 โ€” AI Deep Analysis Summary

Q1What is this vulnerability? (Essence + Consequences)

๐Ÿšจ **Essence**: ThinkPHP Framework < 6.0.14 has a **Path Traversal/LFI** flaw.โ€ฆ

Q2Root Cause? (CWE/Flaw)

๐Ÿ›ก๏ธ **Root Cause**: The `lang` parameter is not sanitized when **Language Pack Feature** (`lang_switch_on=true`) is enabled.โ€ฆ

Q3Who is affected? (Versions/Components)

๐ŸŽฏ **Affected**: ThinkPHP Framework versions **before 6.0.14**. ๐Ÿ“ฆ **Component**: Core framework logic handling language switching. ๐Ÿ“… **Vendor**: Top Think Information Technology. ๐Ÿ‡จ๐Ÿ‡ณ

Q4What can hackers do? (Privileges/Data)

๐Ÿ’ป **Privileges**: **Remote Code Execution (RCE)**. ๐Ÿ—‘๏ธ **Data**: Full control over the underlying OS.โ€ฆ

Q5Is exploitation threshold high? (Auth/Config)

๐Ÿ”“ **Threshold**: **Low/Medium**. โœ… **Auth**: Unauthenticated. ๐Ÿ“ **Config**: Requires `lang_switch_on=true` to be enabled in the application config. ๐ŸŒ **Network**: Remote exploitation possible. ๐Ÿš€

Q6Is there a public Exp? (PoC/Wild Exploitation)

๐Ÿ”ฅ **Exploit**: **Yes**. ๐Ÿ“„ **PoC**: Public Nuclei template available on GitHub. ๐ŸŒ **Status**: Known technique (using `pearcmd.php`) demonstrated.โ€ฆ

Q7How to self-check? (Features/Scanning)

๐Ÿ” **Check 1**: Verify ThinkPHP version (< 6.0.14). ๐Ÿ“ **Check 2**: Look for `lang_switch_on=true` in config. ๐Ÿงช **Scan**: Use Nuclei template `CVE-2022-47945.yaml`. ๐Ÿ› ๏ธ **Tool**: ProjectDiscovery Nuclei. ๐Ÿ“ก

Q8Is it fixed officially? (Patch/Mitigation)

โœ… **Fixed**: Yes. ๐Ÿ“ฆ **Patch**: Upgrade to **ThinkPHP 6.0.14** or later. ๐Ÿ”— **Commit**: See official GitHub commit `c4acb8b`. ๐Ÿ”„ **Action**: Immediate update recommended. ๐Ÿ›ก๏ธ

Q9What if no patch? (Workaround)

๐Ÿšซ **Workaround**: Disable language switching by setting `lang_switch_on=false` in config. ๐Ÿงฑ **Mitigation**: Block external access to `lang` parameter if possible. ๐Ÿ›‘ **Note**: Not a permanent fix; patching is superior. โณ

Q10Is it urgent? (Priority Suggestion)

๐Ÿšจ **Priority**: **CRITICAL**. ๐Ÿ”ด **Urgency**: High. โšก **Reason**: Unauthenticated RCE with public PoC. ๐Ÿƒ **Action**: Patch immediately to prevent server compromise. ๐Ÿ†˜