http.c: Change httpstatus to default disabled and sanitize output.

To address potential security issues, the httpstatus page is now disabled
by default and the echoed query string and cookie output is html-escaped.

Resolves: #GHSA-v6hp-wh3r-cwxh

UpgradeNote: To prevent possible security issues, the `/httpstatus` page
served by the internal web server is now disabled by default.  To explicitly
enable it, set `enable_status=yes` in http.conf.
This commit is contained in:
George Joseph
2026-01-15 11:46:21 -07:00
parent ae5e8c4e01
commit 4681c54147
2 changed files with 41 additions and 5 deletions

View File

@@ -69,9 +69,9 @@ bindaddr=127.0.0.1
;
; Whether Asterisk should serve a status page showing the running
; configuration of this built-in HTTP server.
; Default is yes.
; Default is no.
;
;enable_status=no
;enable_status=yes
;
; Redirect one URI to another. This is how you would set a
; default page.