You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enhance security, please replace execSync with spawnSync from child_process, which provides better control over argument handling and avoids shell interpretation issues.
e.g.
execSync('rm',['-rf',p]);
复现网址 | Website URL
版本 | Version
部署方式? | How do you deploy vanblog?
Docker 部署(文档默认)
The text was updated successfully, but these errors were encountered:
问题描述 | Describe the bug
Currently, the codebase uses
child_process.execSync
,https://github.com/Mereithhh/vanblog/blob/master/packages/server/src/utils/deleteFolder.ts#L3
which is vulnerable to command injection, as the user input is passed.
To enhance security, please replace
execSync
withspawnSync
from child_process, which provides better control over argument handling and avoids shell interpretation issues.e.g.
复现网址 | Website URL
版本 | Version
部署方式? | How do you deploy vanblog?
Docker 部署(文档默认)
The text was updated successfully, but these errors were encountered: