• Markus Koller's avatar
    Disable caching for wiki attachments · 943ebda3
    Markus Koller authored
    These were served with `Content-Disposition: inline` in some situations,
    which led to a Stored XSS attack using SVG files.
    
    Workhorse has protections specifically against SVG files and will
    rewrite the `Content-Disposition` header to `attachment`, but this
    processing is skipped for cached 304 responses.
    
    By disabling caching we force Workhorse to always rewrite this header.
    943ebda3
security-disable-caching-for-wiki-attachments.yml 86 Bytes