#2025 mod_http_file_share header injection

Reporter MattJ
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Milestone-13.0
  • Status-Fixed
  • Priority-High
  • Type-Defect
  • Security
  1. MattJ on

    **Description** An authenticated user could supply a Content-Type value containing carriage return and line feed characters in a slot request. The value was stored with the upload and emitted verbatim in the HTTP response for later downloads. This allowed response-header injection, including Set-Cookie and Refresh headers, and with a double CRLF could terminate the header block and place attacker- controlled content in the response body on the file-share origin. **Affected configurations** All deployments using mod_http_file_share are affected. **Mitigation** Operators who cannot upgrade immediately should disable mod_http_file_share or restrict upload access to trusted users. **Fixes** Slot requests now validate Content-Type against the RFC 6838 media type syntax. Commit: f369efa90f7f **Attribution** This issue was identified in an external security review.

  2. MattJ on

    Changes
    • tags Hidden

New comment

Not published. Used for spam prevention and optional update notifications.