最終更新:2023-12-25 (月) 19:36:16 (126d)
Express/パス
https://expressjs.com/ja/guide/routing.html
Express/ルーティング
ノーマライズ
サニタイズ
- https://www.stackhawk.com/blog/node-js-path-traversal-guide-examples-and-prevention/
var safe_input = path.normalize(user_input).replace(/^(\.\.(\/|\\|$))+/, '');
- https://security.stackexchange.com/questions/123720/how-to-prevent-directory-traversal-when-joining-paths-in-node-js