mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
Fixed: Security Vulnerabilities allowing authentication to be bypass
This commit is contained in:
parent
4525f99370
commit
2ccc5af8d0
6 changed files with 116 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using Nancy;
|
||||
|
||||
namespace Lidarr.Http.Extensions
|
||||
|
@ -48,5 +48,11 @@ namespace Lidarr.Http.Extensions
|
|||
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public static bool IsSharedContentRequest(this Request request)
|
||||
{
|
||||
return request.Path.StartsWith("/MediaCover/", StringComparison.InvariantCultureIgnoreCase) ||
|
||||
request.Path.StartsWith("/Content/Images/", StringComparison.InvariantCultureIgnoreCase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue