Questions tagged [dangerous-request]

19 questions
36
votes
5 answers

A potentially dangerous Request.Form value was detected from the client - ASP.NET MVC

I am getting this error in my ASP.NET MVC application where I am taking HTML input from a WYSIWYG so I don't want the content validated. I have attempted the solution I found here but it seems to make no difference in my MVC application. I have also…
Ryall
  • 12,010
  • 11
  • 53
  • 77
12
votes
1 answer

Deviant Rust: how can I disable all the warnings and checks possible?

Let's assume I wanted to write horrific and evil code that compiled with rustc. How many compiler-checks, type-checks, and warnings can I disable without recompiling Rust? And how would I go about doing it? I'm looking for the Perl equivalent of no…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
9
votes
2 answers

ASP.NET 4.5 A potentially dangerous Request.Form value was detected from the client

I have a WYSIWYG editor embedded on a user control that obviously goes into a web page. When I submit the page, I am getting the "A potentially dangerous Request.Form value was detected from the client" exception. In previous versions of .NET, I…
Ricketts
  • 5,025
  • 4
  • 35
  • 48
5
votes
4 answers

C# Kill all processes not essential to running Windows

I have an application. If the application is not used in 15 mins it needs to closes all other applications (forced closed) and the timer starts again. I do not want to crash windows 7 doing this. So far I have the following: Process me =…
Sally
  • 1,749
  • 7
  • 31
  • 39
3
votes
0 answers

"A potentially dangerous Request.Form value was detected from the client" when returning JSON to client

I have an app that allows a user to edit email templates. The email templates employ HTML so the client sends HTML to the controller. I am using the Jodit HTML editor (https://xdsoft.net/jodit/) for the message body so users don't have to know HTML…
Rob
  • 161
  • 1
  • 1
  • 10
3
votes
3 answers

"Potentially Dangerous Request.Form" Exception in a generic handler

I've seen this error before but cannot seem to get around it. In this case, I have an ASHX page spitting out a simple HTML form with a textbox into which XML may be posted. When I try to read the form, I receive the "A potentially dangerous…
roufamatic
  • 18,187
  • 7
  • 57
  • 86
2
votes
1 answer

Checking if a session variable exists in Vaadin

VaadinSession.getCurrent().getAttribute("name") & VaadinSession.getCurrent().setAttribute("name", "actual nameson") vs getSession().getAttribute("name", username); & getSession().setAttribute("name", username); are either of these correct methods…
Aj Otto
  • 124
  • 1
  • 16
2
votes
2 answers

Dangerous AVI files?

Can *.avi or other media file contain any dangerous script or code? I saw following message in Microsoft Security Essentials: Category: Trojan Downloader Description: This program is dangerous and downloads other programs. Recommendation: Remove…
Jalal
  • 6,594
  • 9
  • 63
  • 100
1
vote
1 answer

Error "A potentially dangerous Request.Form value was detected from the client" despite the fixes for ASP.NET MVC 2?

Using ASP.NET 4.0 and MVC 2, I have added these suggested modifications: In the web.config - To the Controller - To the View Page - <%@ Page…
Vishal
  • 12,133
  • 17
  • 82
  • 128
1
vote
0 answers

Advice on potentially dangerous Request.Form with Umlauts

My company security policy dictates that I cannot turn off the ValidateRequest attribute for our forms website. I am getting error reports from the site for potentially dangerous Request.Form input. I can see from all of the errors, that the danger…
Stuart
  • 1,544
  • 5
  • 29
  • 45
0
votes
0 answers

A potentially dangerous Request.Path value was detected from the client (&) mvc5

i want to delete a image when tag a clicked, but i get this error i have already used ValidateInput(false) but its not working this is a view this is error Server Error in '/' Application. A potentially…
0
votes
2 answers

Potentially dangerous Request.Path due to doubled url

I'm maintaining a legacy .NET 4.7.2 MVC application that uses Umbraco CMS 7.15.7. We started getting failed requests registered in Azure Application Insights with the following message A potentially dangerous Request.Path value was detected from the…
0
votes
1 answer

Why does ASP.NET dangerous request validation work this way?

Can anyone point me in the right direction with the following question. The default "Dangerous Request" validation in ASP.NET prohibits inputs like "" or "