Posts

Showing posts from 2018

Synchronizer-Token-Patterns

Image
Synchronizer Token Patterns. The Encrypted Token Pattern is a defense mechanism against Cross Site Request Forgery (CSRF) attacks, and is an alternative to its sister-patterns; Synchroniser Token, and Double Submit Cookie. Each of these patterns has the same objective: To ensure that any given HTTP request originated from a trustworthy source To uniquely identify the user that issued the HTTP request In the first instance, the need to ensure that requests originate from a trustworthy source is an obvious requirement. Essentially, we need to guarantee that any given request has originated not only from the user’s web-browser, but also from a non-malicious link, or connection. Once you have verified that the request appears to be the same origin request so far, we recommend a second check as an additional precaution to really make sure. This second check can involve custom defense mechanisms using CSRF specific tokens created and verified by your applicati

Double-Submit-Cookies-Patterns

Image
Double Submit Cookie  Double Cookie Submit For Prevent CSRF What is Double Submit Cookie? If storing the CSRF token in session is problematic, an alternative defense is the use of a double submit cookie. ... A cross-origin attacker cannot read any data sent from the server or modify cookie values, per the same-origin policy. In the event that putting away the CSRF token in session is hazardous, an elective guard is the utilization of a twofold submit treat. A twofold submit treat is characterized as sending an irregular incentive in both a treat and as a demand parameter, with the server checking if the treat esteem and demand esteem match. when a client confirms to a site, the site ought to create a (cryptographically solid) pseudorandom esteem and set it as a treat on the client's machine isolate from the session id. The site does not need to spare this incentive in any capacity, in this manner evading server-side state. The site at that point requires that each exc

WEB-App--RESTful-API-

Image
Oauth and Resource Server Role of OAuth resource server Resource owner Resource server Client application Authorization server Resource Owner This entity can grant access to a protected resource or a service. The resource owner is a person (like an end user), an application that owns the service, or a security policy. The resource owner is depicted in the illustration that follows as a person, which is probably the most common situation. Resource Server This is the server hosting the protected resource or service. The resource server can accept and respond to protected resource requests. In Oracle Cloud, a resource server represents an application hosting cloud services. Client Application This is an application or service that can make protected resource requests on behalf of the resource owner. The client application is the application requesting access to resources stored on the resource server. The client application also obtains authorization from