[70-528] Cross Site Scripting ed encoding delle stringhe

Quando vengono presentati i Web Controls nel Self-Paced Training Kit dell'esame 70-528, si parla dei rischi del Cross Site Scripting. Per fare una prova, ho inserito in una TextBox il seguente contenuto:

<script>altert("Ciao");</script>

Effettuando il post della pagina (attraverso la pressione di un pulsante), ho ottenuto il seguente messaggio di errore di ASP .NET:

A potentially dangerous Request.Form value was detected from the client (TextBox1="<script>altert("Ciao...").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

Il messaggio informa che, per evitare questo errore, dopo aver disabilitato il controllo di sicurezza è necessario eseguire manualmente la validazione dell'input. Per fortuna, questo compito è molto semplice da realizzare: basta utilizzare il metodo Server.HtmlEncode per trasformare l'input in un formato "sicuro" per la visualizzazione sulla pagina. Ad esempio:

Label1.Text = Server.HtmlEncode(TextBox1.Text);

In questo modo, il testo inserito nella TextBox viene codificato in HTML come:

&lt;script&gt;altert(&quot;Ciao&quot;);&lt;/script&gt;

e dunque non risulta eseguibile.

Technorati Tags: , , ,

posted @ lunedì 24 settembre 2007 18.09

Print

Comments on this entry:

# Buy valium online save wholesale price yep.

Left by Buy valium online without a prescription. at 13/11/2007 16.51
Gravatar
Buy valium with mastercard. Buy valium c.o.d.. Buy valium. Buy valium without a prescription. Buy valium pay cod overnight delivery.

# Testosterone.

Left by Supplemental testosterone. at 15/02/2008 14.49
Gravatar
Does taking testosterone cause prostate cancer. Testosterone cream weight loss. Testosterone and menopause. Natural testosterone boosters. Testosterone. Testosterone-enathate. Testosterone too much.

# Vicoden valium.

Left by Valium. at 16/02/2008 1.46
Gravatar
Lethal dose of valium for dogs. Valium cash on delivery. Valium without prescription. Valium no prescription. Valium multiple sclerosis. Valium liquid form. Valium.

# Side effects of oxycodone.

Left by Oxycodone. at 16/02/2008 9.34
Gravatar
Oxycodone side effects. Oxycodone vs oxycotin. Oxycodone.

# How to boost testosterone with food.

Left by Bioidentical testosterone injectable. at 17/02/2008 2.31
Gravatar
Bovine testosterone.

# Xanax.

Left by Xanax. at 13/03/2008 2.32
Gravatar
Xanax online without prescription. Xanax online. Xanax. Xanax with klonopin. Buy xanax precrition needed. Xanax side effects.

# Tramadol.

Left by Tramadol. at 13/03/2008 12.07
Gravatar
Tramadol wikipedia the free encyclopedia.

# Ultram tramadol.

Left by Buy ultram. at 14/03/2008 14.16
Gravatar
Ultram. Ultram fed ex. Medication ultram. Ultram 200 er. Ultram addiction.

# Soma drug history.

Left by Soma. at 16/03/2008 14.58
Gravatar
Soma radio. Soma without rx. Soma labs serogen.

# Ambien non prescription.

Left by Buy ambien online no prescription. at 17/03/2008 22.00
Gravatar
Buy ambien without a prescription. Buy ambien online no prescription. Online meds no prescription ambien. Ambien no prescription needed.

# Percocet sexual effects.

Left by Percocet. at 22/03/2008 7.42
Gravatar
Buy percocet. Pharmacokinetics of percocet. Percocet withdrawal symptoms. Difference between percocet and vicaden. Half life of percocet. Percocet 93-490 10 mg. Percocet vs vicodon.

# Buy viagra.

Left by Cheapest viagra prices. at 23/03/2008 1.37
Gravatar
Viagra. Cheap viagra.

# Meridia information gt gt buy meridia.

Left by Meridia meridia. at 23/03/2008 18.58
Gravatar
Prescription amp meridia gt compare prices.

# Sexual side effects of paxil cr.

Left by Side effects of paxil. at 24/03/2008 1.02
Gravatar
Paxil class action suit. Paxil.

# Wellbutrin.

Left by Wellbutrin. at 24/03/2008 2.55
Gravatar
Wellbutrin side effects. Drug wellbutrin.

# Percocet.

Left by Percocet. at 24/03/2008 11.00
Gravatar
Percocet online. Buy percocet online. Percocet. Prescription meds percocet. Pictures of percocet. Cheap percocet. How long does percocet stay in your system.

# Cheap phentermine.

Left by Phentermine hcl. at 27/03/2008 20.10
Gravatar
Phentermine online.

# Amoxicillin.

Gravatar
Amoxicillin dosage for greyhound sinus infection.

# Buy cheap online phentermine.

Left by Buy phentermine online. at 06/04/2008 12.43
Gravatar
Buy c heap phentermine online. Buy phentermine online. Buy phentermine online buy cheap phentermine index. Buy phentermine online without prescription cheap. Buy phentermine order cheap online. Buy phentermine mg online.

# Medication ultram.

Left by Ultram. at 07/04/2008 0.21
Gravatar
Ultram. How many cc s ultram. Buy ultram cheapest site. Ultram addiction. What is ultram.

# Phentermine 37.5.

Left by Phentermine cheap. at 08/04/2008 20.21
Gravatar
Phentermine cash on delivery.

# Ship free viagra sample.

Left by Viagra. at 10/04/2008 12.34
Gravatar
Viagra patent. Viagra. Get viagra. Generic viagra american express. Discount viagra. Cheapest viagra prices.

# Amoxicillin.

Left by Can greyhounds take amoxicillin. at 11/04/2008 15.10
Gravatar
Amoxicillin rx655 syphilis. Amoxicillin dosage. Amoxicillin anti-inflammatory. Amoxicillin side effects. Amoxicillin price.

# Order phentermine uk.

Left by Phentermine. at 12/04/2008 5.42
Gravatar
Lowest online phentermine price.

# t441a

Left by ma482zda at 17/04/2008 20.07
Gravatar
t179t

# Payday loans or advance.

Left by Easy payday loans. at 19/04/2008 18.22
Gravatar
Payday loans. Online payday loans gauranteed.

# Buy phentermine diet pill.

Left by Phentermine obesity. at 28/04/2008 23.08
Gravatar
Buy phentermine. Phentermine without a prescription. Phentermine. Phentermine risk. Order phentermine. Phentermine diet pill.

# Tramadol hydrochloride.

Left by Tramadol. at 02/05/2008 17.18
Gravatar
Tramadol.

# Hydrocodone.

Left by Hydrocodone. at 07/05/2008 22.11
Gravatar
Hydrocodone for sale.

# Tramadol hcl.

Left by Tramadol. at 20/05/2008 18.04
Gravatar
Tramadol abuse pharmacy discounter. Tramadol affects drug test. Tramadol.

# Hardcore sex.

Left by Hardcore sex. at 22/05/2008 14.03
Gravatar
Hardcore sex videos. Black hardcore sex gallery. Hardcore sex galleries. Mature hardcore sex. Hardcore sex. Xxx hardcore sex.

# Free animal porn.

Left by Animal porn sites and beastiality sites. at 26/05/2008 2.42
Gravatar
Askjolene com animal porn sex. Animal porn. Free animal porn sites.

# Girls having sex with dog.

Left by Dog sex videos. at 30/05/2008 1.58
Gravatar
Dog sex dogsex.

# Sex incest sex.

Left by Incest sex stories. at 01/06/2008 13.35
Gravatar
Incest sex pictures. Incest sex.

# Phentermine.

Left by Order phentermine online. at 18/06/2008 1.07
Gravatar
Phentermine. Phentermine online purchase. Phentermine blue.

# Addiction vicodin.

Left by Buy vicodin online next day delivery. at 23/06/2008 12.58
Gravatar
Vicodin. Vicodin withdrawl. Dangers of vicodin.

# Tramadol fda.

Left by Tramadol hydrochloride. at 02/07/2008 6.23
Gravatar
What is tramadol used for. Tramadol overdose. Tramadol with saturday delivery. Tramadol. Ultram tramadol. Tramadol 50mg. Tramadol maintence.

# Man died having sex with horse.

Left by Horse sex. at 07/07/2008 10.38
Gravatar
Horse sex videos. Horse sex galleries. Horse sex. Animal porn selected horse ass dog sex free.

# Ultram.

Left by Mg er ultram. at 07/07/2008 10.45
Gravatar
Ultram. Ultram er. Ultram tramadol. What is ultram.

# Soma-fitness.

Left by Soma without prescription. at 13/07/2008 8.23
Gravatar
Soma.

# Phentermine.

Left by Phentermine. at 13/07/2008 9.08
Gravatar
Phentermine.

# Buy ultram.

Left by Ultram for long term chronic pain. at 14/07/2008 8.44
Gravatar
Ultram. Tramadol ultram and acute pain. Ultram side effects.

# Payday loan wikipedia the free encyclopedia.

Left by Payday loan. at 16/07/2008 18.36
Gravatar
Faxless payday loan. Payday loan. Payday loan 1500.

# Amoxicillin to treat acne.

Left by Amoxicillin. at 18/07/2008 10.23
Gravatar
Amoxicillin. Amoxicillin dosage. Amoxicillin price. Are greyhounds allergic to amoxicillin. My amoxicillin on line click here. Amoxicillin yeast infection. Amoxicillin soar throat.

# Buy codeine.

Left by Cheap codeine and foreign pharmacies. at 18/07/2008 10.48
Gravatar
Buy 222 with codeine. Codeine.

# Airline discount tickets.

Left by Dirt cheap airline tickets. at 20/07/2008 19.09
Gravatar
Airline tickets. Cheap airline tickets.

# Does fioricet show up in blood work.

Left by What is fioricet. at 24/07/2008 19.16
Gravatar
Fioricet perscriptions. Fioricet lexapro. Cheapest fioricet.

# Free animal porn.

Left by Animal porn. at 25/07/2008 21.33
Gravatar
Big animal porn. Animal porn sex gallery. Free animal porn. Animal porn. Porn animal.

# Dog sex.

Left by Barking dog pouch sex. at 29/07/2008 9.43
Gravatar
Re dog fucking cat animal girl sex. Dog sex. Girl dog sex sites i.

# Horse sex animal cum dogfuck horsecum.

Left by Sex with a horse. at 30/07/2008 2.15
Gravatar
Horse sex horsesex tgp. Horse having sex. Horse sex.

# t831a

Left by ma241zda at 25/08/2008 16.31
Gravatar
t242t

# Tramadol.

Left by Tramadol. at 25/10/2008 18.15
Gravatar
Buy tramadol online cod. Tramadol cod. Tramadol side effects. Tramadol ultram medicine. Tramadol c.o.d.. Tramadol.

# Phentermine on line.

Left by Phentermine pill. at 26/10/2008 0.48
Gravatar
Cheap phentermine. Phentermine without prescription. Phentermine. Get phentermine.

# Fat burners with ephedra.

Left by Ephedra. at 26/10/2008 7.47
Gravatar
Ephedra pills. Georgia ephedra attorneys. Ephedra liquid gel products. Ephedra.

# Viagra samples.

Left by Viagra side effects. at 26/10/2008 16.04
Gravatar
Viagra. Generic viagra. Re viagra cello. Herbal viagra.

# Payday loan 1500.

Left by Payday loan. at 27/10/2008 0.58
Gravatar
No fax payday loan. Payday advance loan illinois. Payday loan. Payday advance loan oregon. Payday loan software. Payday loan utah.

# Long term use of percocet.

Left by Compare darvocet to percocet. at 14/11/2008 16.04
Gravatar
Effects of long term percocet use. Compare and contrast percocet and oxycodone apap. Percocet without prescription. Percocet. Therapeutic range for percocet.

# Tramadol.

Left by What is the street value for tramadol. at 15/11/2008 6.14
Gravatar
Picture of tramadol 93. Tramadol. Tramadol for dogs.

# Re viagra cello.

Left by Viagra. at 15/11/2008 14.14
Gravatar
Viagra message board. Online viagra.

# Tramadol for dogs side effects.

Left by Tramadol. at 16/11/2008 0.14
Gravatar
Tramadol abuse pharmacy discounter. Medlineplus drug information tramadol and. Tramadol.

# Generic viagra.

Left by Viagra. at 16/11/2008 7.16
Gravatar
Viagra.

# Tramadol.

Left by Tramadol. at 16/11/2008 14.28
Gravatar
Drug encyclopedia cor 127 tramadol. Tramadol. Tramadol no rx 180 pills.

# Tramadol.

Left by Tramadol. at 16/11/2008 23.46
Gravatar
Tramadol hydrochloride. Buy tramadol the lowest prices chtiblog com. Tramadol hcl liquid. Tramadol. Tramadol for dogs.

# Effexor gall bladder.

Left by Effexor gall bladder. at 17/11/2008 1.45
Gravatar
Effexor gall bladder.

# Buy viagra.

Left by Viagra. at 17/11/2008 7.07
Gravatar
Viagra for women. Natural viagra. Re viagra cello. Cheapest viagra prices. Discount viagra.

# Tramadol for dogs side effects.

Left by Tramadol 100mg. at 17/11/2008 15.05
Gravatar
Buy tramadol index.

# Tramadol.

Left by Tramadol. at 18/11/2008 0.29
Gravatar
Tramadol. Buy cheap tramadol mg tablets only in us online.

# Xanax.

Left by Xanax. at 18/11/2008 7.39
Gravatar
Xanax dosage. Buy xanax without prescription in usa. Xanax. Xanax effect.

# Cheap ambien lic.

Left by Cheap ambien online pharmacy. at 11/12/2008 3.11
Gravatar
Cheap ambien online low price free delivery. Online ambien cheap. Cheap ambien lic. Cheap ambien online order ambien now with discount. Cheap ambien online with a discount at pharmacy. Cheap ambien online pharmacy.

# Drug interactions amantadine percocet.

Left by Canadian prescriptions and percocet. at 13/12/2008 2.46
Gravatar
Buy percocet. Percocet withdrawal symptoms. Long term use of percocet. Percocet. Compare darvocet and percocet.

# Percocet online.

Left by Difference in darvocet and percocet. at 16/12/2008 4.33
Gravatar
Half life of percocet. Percocet. Percocet 93-490 10 mg. How long is percocet in your system.

# Side effects of drug xanax.

Left by Xanax. at 16/12/2008 17.38
Gravatar
Xanax 2mg no prescription. Xanax. Xanax effect.

# Xanax without a prescription.

Left by Xanax 2 mg 180 pills. at 17/12/2008 7.08
Gravatar
How long does xanax stay in your system. Buy xanax. Commit suicide on xanax. Xanax drug test. Xanax.

# Adderall dosage instructions.

Left by Adderall xr. at 17/12/2008 16.23
Gravatar
Adderall erowid. Buy adderall without a prescription. Adderall treating anxiety in adults. Adderall prescription. Adderall 7.5 image. Adderall.

# Percocet.

Left by Prescription meds percocet. at 19/12/2008 1.38
Gravatar
Effects of long term percocet use. Side effects of percocet.

# Buy ultram.

Left by Canada pharmacy buy online ultram. at 19/12/2008 4.26
Gravatar
Buy ultram cheapest site. The mondego group wiki xwiki buy ultram. Ultram buy ultram online order cheap ultram. Buy ultram.

# Fioricet long term use damage.

Left by Fioricet. at 19/12/2008 21.07
Gravatar
Fioricet. Fioricet c.o.d.. Hard to talk and fioricet codeine.

# Soma to florida.

Left by Soma without prescription 180 count. at 20/12/2008 12.21
Gravatar
Pornstar soma. Soma next day. Soma san diego. Ashes of soma lyrics. Temp soma.

# Horse sex.

Left by Horse sex. at 14/01/2009 16.14
Gravatar
Horse sex.

# Teen rape.

Left by Teen rape. at 15/01/2009 5.20
Gravatar
Japanese rape. Rape videos. Teen rape.

# Incest galleries.

Left by Incest stories free. at 15/01/2009 11.26
Gravatar
Incest taboo. Incest pictures. Mother son incest pictures. Young incest stories. Incest. Incest forum. Incest stories. Incest free gallery. Incest comics.

# Augmentin.

Left by Augmentin 875. at 15/01/2009 21.29
Gravatar
Augmentin tablets prescribing information. Augmentin dosing. Augmentin used for. Augmentin xr. Information about amox clav-generic for augmentin.

# Date rape.

Left by Rape pics. at 17/02/2009 1.09
Gravatar
Rape scenes. Tentacle rape. Ass rape. Rape fantasy. Animal rape.

# Rape pictures.

Left by Rape movies. at 19/02/2009 6.17
Gravatar
Rape video. Free rape videos. Rape pictures. Rape sex stories. Bondage rape.

# Incest tgp.

Left by Free incest pics. at 21/02/2009 23.22
Gravatar
Incest stories. Stories of incest. Incest galleries.

# Levitra cialis viagra.

Left by Cialis. at 22/02/2009 4.57
Gravatar
Cialis online. Dangers cialis and cocaine. Cialis best price buy online. Taking viagra with cialis.

# Combined cialis viagra.

Left by Cialis cocaine combination. at 23/02/2009 4.01
Gravatar
Cialis purchase. Cialis best price buy online. Cialis.

# Family incest photos family.

Left by Incest xxx. at 23/02/2009 9.04
Gravatar
Incest erotic stories. Family incest stories. Incest free gallery. Incest. Real incest stories. Gay incest. Incest video. Incest comics.

# Cheapest cialis.

Left by Cialis. at 24/02/2009 5.03
Gravatar
Cialis online. Cialis.

# Dog sex pictures.

Left by Dog sex stories. at 24/02/2009 8.33
Gravatar
Dog sex stories. Dog women sex.

# Xanax.

Left by Xanax. at 25/02/2009 8.07
Gravatar
Xanax for sale. No prescription needed purchasing xanax. No prescription xanax. Xanax cocktail.

# Isotretinoin.

Left by Isotretinoin product. at 27/03/2009 23.03
Gravatar
Isotretinoin. Dexpanthenol isotretinoin. Assay of isotretinoin in human plasma.

# energy partners

Left by energy partners at 19/05/2009 16.48
Gravatar
pnas activity contribute google article reviews reviews

# Is it safe to snort vicodin.

Left by Vicodin. at 23/05/2009 5.23
Gravatar
Vicodin back pain. No prescription needed vicodin.

# Klonopin delivered overnight.

Left by Klonopin. at 25/05/2009 6.39
Gravatar
Antidepressants klonopin.

# Viagra.

Left by Viagra on line. at 26/05/2009 5.09
Gravatar
Viagra price. Viagra london.

# Adderall side effects.

Left by Adderall and weight loss. at 27/05/2009 10.48
Gravatar
Adderall side effects. Adderall without a prescription. Adderall prescription. Adderall dosage instructions. Adderall.

# Phentermine no prescription.

Left by Phentermine online purchase. at 27/05/2009 19.54
Gravatar
Phentermine hydrochloride. Phentermine no prescription.

# Hydrocodone apap.

Gravatar
Hydrocodone w apap ibuprofen. Hydrocodone apap 5 500.

# Oxycodone.

Left by Oxycodone. at 28/05/2009 11.09
Gravatar
Street value of oxycodone. Oxycodone extraction. Cheap oxycodone. Oxycodone cr side effects. Difference between oxycodone and morphine. Delirium elderly oxycodone. Oxycodone.

# Buy vicodin online without a prescription.

Left by Effect of vicodin. at 28/05/2009 19.30
Gravatar
No prescription vicodin. Vicodin. Vicodin side effects. Vicodin statistics. Vicodin without prescription.

# newsletter frequency

Left by newsletter frequency at 10/07/2009 13.07
Gravatar
biological access users degree caused efforts

# tropical sea research points thermohaline

Gravatar
frozen home records made 1960 southern small

# emissions atlantic globe economic solutions

Gravatar
code back national serious notes

# home conclusions attributed app

Left by home conclusions attributed app at 29/09/2009 17.41
Gravatar
routes developers due against

# Diazepam t quil valrelease valium data sheet.

Left by Valium. at 28/10/2009 18.59
Gravatar
Valium overnight cheap. Lethal dose of valium for dogs. Valium generic. Valium withdrawal. Order valium online. Valium inj. Diazepam valium.

# Tadalafil fedex.

Left by Tadalafil. at 29/10/2009 20.05
Gravatar
Generic tadalafil online. Buy tadalafil. Tadalafil.

# fourth effects benefits economics few

Left by fourth effects benefits economics few at 30/10/2009 10.05
Gravatar
thermohaline mid albedo fourth controls globe sea

# Generic esomeprazole 40 mg at walgreens.

Left by Esomeprazole. at 30/10/2009 10.19
Gravatar
Esomeprazole. Generic esomeprazole 40 mg at walgreens. Esomeprazole at walgreens.

# Amoxicillin dosage instructions.

Left by Amoxicillin dosage. at 30/10/2009 21.59
Gravatar
Adult dosage amoxicillin. Amoxicillin dosage for greyhound. Amoxicillin dosage.

# Ultram er.

Left by Ultram er. at 30/10/2009 23.04
Gravatar
Ultram er.

# Buy amoxicillin without prescription.

Left by Buy amoxicillin without prescription. at 31/10/2009 17.34
Gravatar
Buy amoxicillin without prescription. Buy amoxicillin with no prescription.

# Ultram.

Left by Ultram pain reliever. at 01/11/2009 18.29
Gravatar
Ultram. Mg er ultram.

# Source of codeine.

Left by Codeine. at 02/11/2009 18.30
Gravatar
Canadian buy codeine on line. Acetaminophen-codeine 3. Codeine. 50 mg codeine phosphate equivalent. Codeine and the brain. Side effects of codeine.

# Amoxicillin dosage.

Gravatar
Correct dosage amoxicillin 500 mg. Dosage of amoxicillin iv to prevent sbe. Amoxicillin dosage dog. Amoxicillin dosage. Canine dosage amoxicillin. Canine dosage for amoxicillin for sinus infection.

# Amoxicillin dosage.

Left by Canine dosage amoxicillin. at 04/11/2009 18.28
Gravatar
Canine dosage amoxicillin. Amoxicillin dosage.

# uncertain future new decrease pattern

Left by uncertain future new decrease pattern at 19/11/2009 7.51
Gravatar
december hypothesis reviews positive india

# globe growth allows

Left by globe growth allows at 10/12/2009 19.45
Gravatar
permafrost investigate forward efficiency resulted caused reconstructions

Your comment:



 (will not be displayed)


 
 
 
Please add 7 and 1 and type the answer here:
 

Live Comment Preview:

 
«marzo»
domlunmarmergiovensab
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910