HexBrain

Phabricator · Report #148865

HTML in Diffusion not escaped in certain circumstances

Validstatus
12upvotes
1 Aug 2016disclosed

How it was found

HTML in Diffusion source code listing is not escaped

Steps to reproduce:

  • have the syntax hilight turned on
  • the file is bigger than 256kB, thus syntax hilight is claimed in header to be turned off automatically, however, plaintext file doesn't display like with regular (manual) syntax highlight off, but the content is being parsed

File should contain HTML constructions, but could be of any type (extension). Having javascript constructions there with alert() within the HTML causes such dialogues to pop up on given page obviously.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original