GitHub Advisoryadvisory · npm
GHSA-j6v9-xgvh-f796 Command Injection in wxchangba
MEDIUM
Official page ↗
- Ecosystem
- npm
- Packages
- wxchangba
- Severity
- Moderate
- Weaknesses
- CWE-77
- Reviewed
- 2020-08-31
Affected packages
• npm wxchangba: >= 0.0.0 (no fix yet)
Description
All versions of `wxchangba` are vulnerable to Command Injection. The package does not validate user input on the `reqPostMaterial` function, passing contents of the `file` parameter to an exec call. This may allow attackers to run arbitrary commands in the system.
Recommendation
No fix is currently available. Consider using an alternative module until a fix is made available.
Related
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness