Trusted Types API protection from DOM-based XSS

Trusted Types API: Google has created a new API that will help Chrome fight certain types of attacks scripting (XSS), adding another level of protection at browser level.

This new is called Trusted Types and is a browser API Chrome which Google has been working on in recent months.Trusted Types API

The company's developers plan to test the Trusted Types API throughout 2019, between Chrome 73 and Chrome 76, before enabling it as a permanent security feature for all Chrome users later in the year.

This new feature was developed to protect users from one of three types of cross-site scripting flaws, DOM-based (or type-0) XSS.

A detailed analysis of the three XSS types available here, for readers who want to learn more about XSS.

DOM-based XSS is basically a vulnerability found in a site's source code. Hackers exploit so-called injection points to enter code into the browser's DOM (page source code) to perform unwanted malicious actions, such as stealing cookies, handling page content, redirecting users, etc.

The Trusted Types API will prevent such attacks by allowing page owners to lock known "injection points" into a site's code, which is often the root cause of DOM-based XSS.

Webmasters will be able to enable Chrome's upcoming Trusted Types protection by giving a specific in the Content Security Policy (CSP) HTTP response header.

Once activated, the at DOM injection points will be limited by Chrome's built-in Trusted Types API, preventing any attacks before XSS code leverages the DOM page's source code to attack users.

A tutorial on how website owners can enable the Trusted Types API through the Content Security Policy (CSP) HTTP response header and how users can configure Chrome to use early versions of the API is available at Google Developers blog.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).