mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] CVE-2019-11043
This commit is contained in:
parent
0c55f38fda
commit
8433de3fe2
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,13 @@ local rex = require "rex_pcre"
|
|||
-- Just a note for the client to know that he passed through the SSO
|
||||
ngx.header["X-SSO-WAT"] = "You've just been SSOed"
|
||||
|
||||
-- Quick fix for CVE-2019-11043 about php-fpm and nginx
|
||||
local loweruri = string.lower(ngx.var.uri)
|
||||
ngx.header["X-SSO-DEBUG"] = loweruri
|
||||
if string.match(loweruri, "\n") or string.match(loweruri, "\r") then
|
||||
return ngx.exit(ngx.HTTP_FORBIDDEN)
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- 1. LOGIN
|
||||
|
|
Loading…
Add table
Reference in a new issue