Skip to main content

Home/ Agency Oasis Developers/ Group items tagged key

Rss Feed Group items tagged

mgraber

ASP.NET View State Overview - 0 views

  •  
    "Encrypting View State Although MAC encoding helps prevent tampering with view state data, it does not prevent users from viewing the data. You can prevent people from viewing this data in two ways: by transmitting the page over SSL, and by encrypting the view state data. Requiring the page to be sent over SSL can help prevent data-packet sniffing and unauthorized data access by people who are not the intended recipients of the page. However, the user who requested the page can still view the view state data because SSL decrypts the page to display it in the browser. This is fine if you are not concerned about authorized users having access to view state data. However, in some cases, controls might use view state to store information that no users should have access to. For example, the page might contain a data-bound control that stores item identifiers (data keys) in view state. If those identifiers contain sensitive data, such as customer IDs, you should encrypt the view state data in addition to or instead of sending the page over SSL. To encrypt the data, set the page's ViewStateEncryptionMode property to true. If you store information in view state, you can use regular read and write techniques; the page handles all encryption and decryption for you. Encrypting view state data can affect the performance of your application. Therefore, do not use encryption unless you need it. Control State Encryption Controls that use control state can require that view state be encrypted by calling the RegisterRequiresViewStateEncryption method. If any control in the page requires that view state be encrypted, all view state in the page will be encrypted. Per-user View State Encoding If a Web site authenticates users, you can set the ViewStateUserKey property in the Page_Init event handler to associate the page's view state with a specific user. This helps prevent one-click attacks, in which a malicious user creates a valid, pre-filled Web page with view state from a pre
Mark Ursino

All about Sitecore performance counters - 0 views

  •  
    The following message appears in the log files: Could not create an instance of the counter 'XXX' (category: 'YYY') Exception: System.UnauthorizedAccessException Message: Access to the registry key 'Global' is denied. Resolution: A Sitecore application pool user has to be a member of the system "Performance Monitor Users" group to have access to the mentioned registry key. Adding the user to this group and restarting IIS should solve the problem.
mgraber

Cross-Site Request Forgery (CSRF) Prevention Cheat Sheet - OWASP - 0 views

  •  
    "Viewstate (ASP.NET) ASP.NET has an option to maintain your ViewState. The ViewState indicates the status of a page when submitted to the server. The status is defined through a hidden field placed on each page with a control. Viewstate can be used as a CSRF defense, as it is difficult for an attacker to forge a valid Viewstate. It is not impossible to forge a valid Viewstate since it is feasible that parameter values could be obtained or guessed by the attacker. However, if the current session ID is added to the ViewState, it then makes each Viewstate unique, and thus immune to CSRF. To use the ViewStateUserKey property within the Viewstate to protect against spoofed post backs. Add the following in the OnInit virtual method of the Page-derived class (This property must be set in the Page.Init event) protected override OnInit(EventArgs e) { base.OnInit(e); if (User.Identity.IsAuthenticated) ViewStateUserKey = Session.SessionID; } The following keys the Viewstate to an individual using a unique value of your choice. (Page.ViewStateUserKey) This must be applied in Page_Init because the key has to be provided to ASP.NET before Viewstate is loaded. This option has been available since ASP.NET 1.1. However, there are limitations on this mechanism. Such as, ViewState MACs are only checked on POSTback, so any other application requests not using postbacks will happily allow CSRF. "
mgraber

MaeSitus - Sitecore: Exception: System.UnauthorizedAccessException Message: Access to t... - 0 views

  •  
    "Exception: System.UnauthorizedAccessException Message: Access to the registry key 'Global' is denied. Source: mscorlib"
Douglas Couto

create a @umbracogetmediaurl with recersive - Umbraco 5: General Discussion - our.umbra... - 0 views

  •  
    "The key was creating a var rootNode"
Mark Ursino

infinite, circular jQuery carousel --- CarouFredSel 2.2.2 - 0 views

  •  
    jQuery.carouFredSel is a plugin that turns any kind of HTML element into an infinite, circular carousel. It can scroll one or multiple items simultaneously, horizontal or vertical, automatically, by pressing buttons or keys on the keyboard.
Sam Griffin

tabIndent.js - Code editor tabbing functionality - 0 views

  •  
    enhancings textareas/boxes so that the tab key no longer takes you to the next input, but rather, acts like a text editor by inserting a tab character
Matt DeGennaro

Online tool to create keys for view state validation and encryption - 0 views

  •  
mgraber

machineKey Element (ASP.NET Settings Schema) - 0 views

  •  
    "machineKey Element"
Mark Ursino

Hg Init: a Mercurial tutorial by Joel Spolsky - 1 views

  •  
    Mercurial is a modern, open source, distributed version control system, and a compelling upgrade from older systems like Subversion
1 - 14 of 14
Showing 20 items per page