background preloader

Web Development

Facebook Twitter

An Introduction to Content Security Policy. The web’s security model is rooted in the same origin policy.

An Introduction to Content Security Policy

Code from should only have access to data, and should certainly never be allowed access. Each origin is kept isolated from the rest of the web, giving developers a safe sandbox in which to build and play. In theory, this is perfectly brilliant. In practice, attackers have found clever ways to subvert the system.

Cross-site scripting (XSS) attacks, for example, bypass the same origin policy by tricking a site into delivering malicious code along with the intended content. This tutorial highlights one promising new defense that can significantly reduce the risk and impact of XSS attacks in modern browsers: Content Security Policy (CSP). Source Whitelists The core issue exploited by XSS attacks is the browser’s inability to distinguish between script that’s intended to be part of your application, and script that’s been maliciously injected by a third-party.

Content-Security-Policy: script-src 'self' Simple, right? XSS Filter Evasion Cheat Sheet. Last revision (mm/dd/yy): 07/4/2018 This cheat sheet lists a series of XSS attacks that can be used to bypass certain XSS defensive filters.

XSS Filter Evasion Cheat Sheet

Please note that input filtering is an incomplete defense for XSS which these tests can be used to illustrate. Basic XSS Test Without Filter Evasion This is a normal XSS JavaScript injection, and most likely to get caught but I suggest trying it first (the quotes are not required in any modern browser so they are omitted here): XSS Locator (Polygot) The following is a "polygot test XSS payload. " javascript:/*--></title></style></textarea></script></xmp><svg/onload='+/"/+/onmouseover=1/+/[*/[]/+alert(1)//'> Image XSS using the JavaScript directive Image XSS using the JavaScript directive (IE7.0 doesn't support the JavaScript directive in context of an image, but it does in other contexts, but the following show the principles that would work in other tags as well: No quotes and no semicolon.

Xamarin - Build cross-platform iOS, Android, Mac and Windows apps with C# and .NET. HTML5 Security Cheatsheet. Web design trends we love – Weavora. I think most of you will agree that when it comes to websites, design really matters!

Web design trends we love – Weavora

Sometimes that’s what the whole project is about. The time has passed when visual representation bore less importance than content. “Life moves pretty fast; if you don’t stop and look around once in a while, you could miss it”. There are some patterns that are quite easy to spot in other people’s design styles. Let’s take a moment to look at web design trends we’ve witnessed over the last couple of years. Note: The article contains many images.

Single page websites Once frowned upon by both clients and designers, long pages requiring a lot of scrolling are now all over the web. Some successful and famous companies — including Apple — use very long pages to present their products which proves to work for users. Examples to check: Photo backgrounds Another design trend that has been in for quite some time now centers around photography. Solid blocking Oversized imagery Focus on simplicity. Interface Builder for Web Apps - Divshot. Web Designer Wall – Design Trends and Tutorials. CSSDesk - Online CSS Sandbox. Cross-domain communications with JSONP, Part 1: Combine JSONP and jQuery to quickly build powerful mashups. Introduction Asynchronous JavaScript and XML (Ajax) is the key technology driving the new generation of Web sites, popularly termed as Web 2.0 sites.

Cross-domain communications with JSONP, Part 1: Combine JSONP and jQuery to quickly build powerful mashups

Ajax allows for data retrieval in the background without interfering with the display and behavior of the Web application. Data is retrieved using the XMLHttpRequest function, which is an API that lets client-side JavaScript make HTTP connections to remote servers. Ajax is also the driving force behind many mashups, which integrate content from multiple sources into a single Web application. This approach, however, does not allow cross-domain communication because of restrictions imposed by the browser.

Understanding the same-origin policy limitations The same-origin policy prevents a script loaded from one domain from getting or manipulating properties of a document from another domain. JSON and JSONP JSON is a lightweight data format (compared to XML) for the exchange of information between the browser and server. Listing 1. Listing 2. Hand Picked Web Design and Development News. Twitter Bootstrap. Web development tutorials, from beginner to advanced.

Html5

Nice visuals.