Denial of service via AsciiDoc include:: overuse
Two AsciiDoc files that include each other via the include:: directive cause a denial of service when rendered. An attacker could increase CPU load to 100%, making the service unavailable for all users.
GitLab
Originally disclosed on GitLab
- Fixed in 3 months
- Disclosed after 3 months
HackerOne report #712622 by kgadyrka on 2019-10-12, assigned to @ankelly:
Summary
User can cause DoS affecting whole site by using two .adoc files which include each other via include:: directive.
Steps to reproduce
- Create
a.adocandb.adocfiles in repository (attached to report). - Open
a.adocfile (/<username>/<project>/blob/master/a.adoc). It may be required to duplicate browser tab several times to cause DoS on more performant hardware.
Impact
CPU load increase up to 100% making service unavailable for all users.
Attachments
Warning: Attachments received through HackerOne, please exercise caution!
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
CPU load could increase up to 100%, making the service unavailable for all users.
What the attacker needed
Ability to create files in a repository; victim opens the crafted AsciiDoc file
How it was found
- Create two AsciiDoc files, a.adoc and b.adoc, in a repository.
- Open the a.adoc file in the browser.
- Optionally, duplicate the browser tab several times to increase the effect.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
AsciiDoc is a text format like Markdown, and the include:: directive lets one file pull in another. If two files include each other, the renderer can get stuck in a loop, using up all the computer's processing power and making the website slow or unavailable for everyone.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.