views:

18

answers:

2

Hi,

I have tried to write a code in object model using C#.Net for accessing a sharepoint list items and document library, I have to set allowunsafeupdates property to be true.

Is it massive security problem to the whole site..

Could anyone clarify this ...

+1  A: 

Hi there.

Check out these articles:

http://hristopavlov.wordpress.com/2008/05/16/what-you-need-to-know-about-allowunsafeupdates/

http://hristopavlov.wordpress.com/2008/05/21/what-you-need-to-know-about-allowunsafeupdates-part-2/

They are a very thorough look at AllowUnsafeUpdates and might answers some question you have.

Cheers. Jas.

Jason Evans
Thank you Jas, So we have to use carefully for our context to avoid cross scripting
Hari Gillala
+1  A: 

The biggest risk on setting SPSite.AllowUnsafeUpdates to true is in GET operations because it open your site to cross site scripting.

Have a look to this question for further details on using the true value within a safe pattern usage.

Lorenzo
Thank you Lorenzo
Hari Gillala

related questions