Benutzer:MovGP0/ASP.NET Core/Click-Jacking
Zur Navigation springen
Zur Suche springen
MovGP0 | Über mich | Hilfen | Artikel | Weblinks | Literatur | Zitate | Notizen | Programmierung | MSCert | Physik |
|
Click-Jacking
[Bearbeiten | Quelltext bearbeiten]- malicious site shows another site in an iFrame
- form of other site is prefilled and cropped, such that the user only sees the submit button
- can be prevented with HTTP-Headers:
X-Frame-Options: DENY X-Frame-Options: SAMEORIGIN X-Frame-Options: ALLOW-FROM https://example.com
NuGet: NWebsec.AspNetCore.Middleware
- Startup.cs
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
app.UseXfe(o => o.Deny());
}
|}