Prevent DOS via excessive ASCIIDOC includes
This sets a maximum limit on the number of include directives that any one file may use (transitively). This is set relatively low at the moment to 32 since each one requires a gitlay call to retrieve a blob from the repo, and experimentation suggests that this keeps processing to under 10sec. This approach prevents both cyclic imports as well as having a single file with an extremely lang list of includes.
显示
- changelogs/unreleased/security-dos-via-asciidoc-includes.yml 5 个添加, 0 个删除changelogs/unreleased/security-dos-via-asciidoc-includes.yml
- doc/user/asciidoc.md 5 个添加, 0 个删除doc/user/asciidoc.md
- lib/gitlab/asciidoc.rb 2 个添加, 0 个删除lib/gitlab/asciidoc.rb
- lib/gitlab/asciidoc/include_processor.rb 9 个添加, 2 个删除lib/gitlab/asciidoc/include_processor.rb
- spec/lib/gitlab/asciidoc/include_processor_spec.rb 50 个添加, 0 个删除spec/lib/gitlab/asciidoc/include_processor_spec.rb
- spec/lib/gitlab/asciidoc_spec.rb 18 个添加, 0 个删除spec/lib/gitlab/asciidoc_spec.rb
想要评论请 注册 或 登录