start	end	text
8380	13300	Thank you, everyone, for coming. It was said this is going to be big data. Well, press
13300	18800	code, sorry. Big data approach to understanding the content security policy. At the end of
18800	23260	the talk I would like to share with you eight bypasses. Six of them I think that they are
23260	28060	not so well known. Two of them I think that maybe would be a bit known, but nevertheless
28060	32100	I would like to popularise them because I think they are really interesting.
32520	37820	Okay, starting with that, I would like everyone here to imagine a big red button. Next to
37820	43980	this big red button, there is a note that says, if you push this button, you are going
43980	49820	to get rid of every SQL injection in your life for every application that you ever develop.
49820	55260	Would you push that button? Wouldn't you? Yes, no? Me included? Everyone here? I guess
55260	61200	that would do the same. But interestingly, we are not doing the same for other impactful
61200	66480	vulnerabilities like cross-site scripting, which could have a really high impact on your
66480	72380	users. I will come back to that later and explain why I do not think that we are pushing
72380	75820	that button for this kind of data injection vulnerabilities.
76420	80900	But before that, I would like to introduce myself. I'm Felipe Molina. I've been working
80900	86020	with Orange Cyber Defence SensePost team for four years and something more. Ten years in
86020	92520	the information security industry. Proud dad, Futurama and Simpson fan, of course. You can
92520	98340	find me on Twitter, if you want to chat with me about Futurama. Anyway, I have divided
98340	102080	this talk in three different blocks. The first one is going to be the context with a bit
102080	107580	of history, brief. The aim of CSP, the content security policy. The second part is going
107580	112240	to be the big data part, with little stars there, where I explain the architecture that
112240	117320	I came up with to scan one million sites of internet to understand the content health
117320	123380	security, the content health status of content security policy. The third block is going
123380	126620	to be the bypasses themselves, with a bit of demo, if we have enough time.
127200	132020	Okay, I want to clarify what the dress code name. It comes from UI redressing attacks.
132020	137600	UI redressing attacks, as you may know, it comes from different kind of injection, JavaScript
137600	143120	injection in your pages. So I was here last year with a web application assessment that
143120	149340	I got with one of our clients that called iterative assessment with us. So I was reading
149340	154960	that they have this cross-site scripting, store one, in many places of their web pages.
154960	159620	And I said, okay, let's try it. I saw that it wasn't possible to exploit them anymore
159620	165120	because the client implemented that very strict CSP policy, content security policy. I said,
165120	169840	damn, I'm not going to be able to exploit them again. They didn't care about the base
169840	176140	code of the application, but instead implemented the CSP. So what happened? As a hacker, you
176140	181940	think that you have to bypass that and resurface the cross-site scripting. So yeah, what I
181940	188820	did is that, found a bypass on CSP policy and resurrected the old cross-site scripting.
188860	195600	The client was a bit sad, I was a bit happy, sorry for that. But the thing is that it made
195600	201460	sense at that point. I was also able to use this cross-site scripting and bypass to carry
201460	206420	out a UI redressing attack to exfiltrate data to some kind of phishing and exfiltrate the
206420	210700	data to Google Analytics site, because it was very strict and you could only connect
210700	217300	and send that data out to Google Analytics. So yeah, nice. Okay. This is the context.
217540	222640	After that assessment, I thought to myself, okay, this is like, I want to know more about
222640	228220	CSP. So I decided to understand how CSP works for real, how prevalent it is across
228220	233580	internet, how well configured. And ideally, I would like to find new bypasses to keep in my
233580	237940	toolbox for future assessment or whatever, if you want to keep them for your bug bounties or
237940	245300	whatever. So let's start with what is CSP? Define Verbatim from Mozilla.org site. It's another
245300	254540	layer of security to detect and mitigate injection attacks. More so if it's cross-site
254540	263340	scripting. So now that we know what it is, this was the aim of CSP, to tackle and to prevent
263340	268680	cross-site scripting, quick-jacking, data injection, many other that are not listed here.
269240	274740	And this could result in very ugly impacts, such as data theft, site displacement, malware
274740	280600	distribution. Very, very bad things could happen if you don't protect against that. So it looks
280600	288460	like CSP has a really good end. It's really good to implement in that. But yet, even knowing how
288460	295120	good could be implementing CSP, most of us are not pushing that button. Only 10% of the sites
295120	303080	that I scan were implementing CSP. This is a chart that indicates how many of those 1 million
303080	310360	sites that I scan were implementing CSP headers. These top 1 million sites were pulled from a
310360	317560	database. Well, the source was Majestic Million. It's a list of popular sites on the internet
318060	323520	constructed by a company called Majestic. They do SEO, so they know their stuff. So yeah, I target
323520	332020	that 1 million site list. And it was a concerning outcome. So we are implementing only 10% of the
332020	336140	sites are implementing this. So this is similar to the situation, to the commercial where we have
336140	342740	the 9 out of 10 dentists recommending you to brush your teeth, but completely opposite. We are just
342740	347100	doing completely opposite. The dentists being us, the security and the developers here, we are not
347100	354080	doing the right thing. We are just not brushing our teeth. So with that in mind, I was a bit
354080	358540	disappointed. And I thought, OK, but maybe this is a modern technology. No, it is not. It has been
358540	365360	a long time with us. It started as an idea with a snake in 2004. And then in 2009, he published
365360	371720	this in hacker.org saying that Mozilla was going to implement a content security policy, which was
371840	379320	a good new. In 2012, it was issued as a standard. And nowadays, in 2023, we have this developing
379320	385260	this working draft policy level 3, which is a bit sad from my perspective, because it has been
385260	391000	with us more than 10 years, and we are still not doing it. How does it look like if you go to a
391000	397080	site that has content security policy enabled, you would find this header in the response, content
397080	401760	security followed by the policy itself. The policy would be separated in different directives, each
401760	407620	directive separated by a semicolon. And each directive would have a directive name separated
407740	413480	by a space with one, sorry, zero or more values. So this is the structure that it has. When you go
413480	419540	to a random site of internet, you find this is the answer in the response. And if we structure this
419540	426160	by separating it by semicolons and by spaces later, this is how it would look like. The first line,
426160	430900	for example, well, I must say that this is just three examples. Content security policy has a lot
430900	437980	of other directive names, which can have a lot of other purposes here. But those are just three
437980	443380	examples. Script source is indicating the agent or the browser what scripts are allowed to be
443380	449440	running on your page. Okay, this first value is telling the agent that scripts that contain these
449440	455960	nouns are allowed to be executed. This or any other randomly generated nouns. The following one is a
455960	461660	strict dynamic. This is a value that says to the agent that these scripts that are allowed, they
461660	469700	can transitively create or add new scripts to the page. That would be allowed in turn to be
469700	475820	executed itself, means that also the self page, the same domain, is allowed to be executing their own
475820	482420	scripts. And the fourth one means that all scripts coming from HTTP source, this is the protocol
482420	487860	handle HTTPS, are also allowed to be executed. Okay, then we have two additional ones that I want
487860	492640	to put a bit of more attention in. Connect source and default source. Connect source is telling the
492640	502960	agent what pages are being allowed to be connected out from the page. And default source directive is
502960	509460	telling the agent what directives or what set of rules to look at in case that there are no other
509460	516040	specific rules in the policy. Okay, now that we know how it looks like, I wanted to see how
516040	521860	prevalent was CSP and how well implemented was in Internet. So I'm not a developer myself, so this is
521860	527540	me, the dog, not knowing what how to program. But I wanted to do something scalable and something
527540	535340	that could be finished in my own lifetime. So I did it, I wanted to do something that was fast. So to
535340	541300	scan this one million sites. So I did this approach with asynchronous programming paradigm, instead of
541300	547400	doing a loop with a fork and requesting every site, one million sites in turn, I would do this
547400	553320	asynchronous paradigm. So yeah, this is a heads up that the project is going to be released in this
553320	559500	repo, address code of SensePost, and you could use it yourself to scan your own sites or to
561280	566730	use it for your own purposes. So anyway, this is the solution that I came with. This is a
566730	572770	scanner using the libraries asyncio and aio-http, pmongo for managing the data with the backend
572770	579050	database, and pandas to managing the big set of data. The backend would be mongodatabase, and to
579050	584770	tap into this information and retrieve useful data, I would use a dashboard using a program with
584770	590270	Dash and Plotly Express for the nice charts. Okay, the process would be simple. Collecting the
590270	595190	headers with a scanner, two different sources are used, Majestic Million and Cisco Umbrella. Both of
595190	600710	them gave me the same results, 10% of the sites using it. Then parse the CSP headers from the
600710	607050	headers that I retrieved, and assign a country or continent, first by country code TLD, then by IP
607050	612570	address geolocation, and then by whois record. Then I would scan everything there, spot
612570	619790	weaknesses and bypasses that you can take for profit. So you want to say that for your next
619790	625890	assessment, or for your next bug bounty program, or whatever you want to use it for. Okay, this is how
625890	631290	the data looks like in the database. So you start by with an ID, URL, and final URL, because you can
631290	636110	be redirected multiple times. The headers that I gather, the vulnerabilities that I detected, in
636110	641730	this case, no CSP was defined, and whois host, IPv4, country, continent, and global rank of the
641730	649330	site you are looking at. Now I'm going to show you a brief view of how the dashboard is. I'm not
649330	654970	going to delve into details of this dashboard, it's just for you to get an idea. So the top bar
654970	660950	that you see there is telling the application how many sites to pull from the database, 35% or
660950	668190	etc, etc. Now you get down there, the pie chart that shows you how many sites are using CSP at
668190	673510	that moment. Then we have this line here, where you can, for example, explore weaknesses, the
673510	680590	status, reverse IP to sites, header names, for example, the one that I'm going to show, and CSP
680590	685810	directives. This is a frequency chart showing the most frequent directives that I will show you
685810	689590	later. I'm not going to delve too much into this, this is just to give you an idea of how it looks
689590	695590	like. The results of this chart would be shown here. So this is the CSP directive sort by
695590	700910	frequency. We can take a look at the first ones there. The most frequent ones and the most used
700910	707210	are upgrading secure requests and frame ancestors. Upgrading secure requests are used in 46% of the
707210	712910	site that define a content security policy. Frame ancestors are used similarly in the 46%.
713590	718470	Could be better, but it's okay. Those make sense that they are most used because they are easiest
718470	725650	one to implement. So it looks like when it comes to maintaining an allow list, we get a bit tired
725650	729790	and we stop implementing. So we just decide those are enough for our policy.
731110	735910	For example, defining script sources, there is only 20% of the sites that are defining
736450	740970	what scripts can be executed in our page. The rest are not defining. So it's not the best
740970	748990	configuration. Then we see that those are the less popular ones. Base URI, report URI from
748990	752850	action manifest. And I think that this is because we don't know what they are doing. There is not
752850	758030	much popularity of those. They are not being very widely used. For example, this one,
758030	763710	base URI, it's allowing you to prevent you against cross-site scripting that injects,
763710	770240	for example, a base tag on your site. This base tag is telling to the agent that all the
772010	777530	relative paths of scripts are going to be pulled from that base domain. In case an attacker injects
777650	783750	a base tag in your web, all the scripts of your page are going to be pulled from this attacker
783750	789790	site, from this attacker domain. So it's pretty serious, but still we're not using it enough.
789790	796470	Okay, so you can also take a look in this dashboard to the allowed sources for different
797450	804510	values. In this case, as an example, I took script source and the most allowed source for
804510	810910	script source were unsafe-inline and unsafe-able. This makes me a bit sad because 20% of the sites
810910	817910	and 21% of the sites are defining scripts source are okay with unsafe-inline and unsafe-able.
817910	823730	It's quite popular, this configuration. So not only this guy that is the only one that is
823730	830010	recommending you to brush your teeth is doing it, but he's only doing it 80% of the time. The other
830010	836090	20% of the time he's not brushing his teeth. Anyway, I had this other map there in the dashboard
836090	841510	where you can see the current status across the globe. No, we are doing it equally wrong.
842210	848970	This light green color here means that no more than 10% per country of the sites are
849710	855390	implementing CSP. There are some outliers here in Africa. I can think that those are because
855390	862050	we don't have enough sample data from them. If we have a couple or three sites there, it gets
862050	870930	rigorous, a lot of sites. But I haven't studied them very deeply. So then we can take a look to
870930	875670	the weaknesses. This is a way to classify the weaknesses. For example, this is the the most
875670	883350	frequent weakness that I found. No one is using report2. This report2 directive indicates the
883350	890790	agent where all those errors can be reported. So you can have if you implement this report2
890790	897350	directive on your site, you would have real-time feedback from all the servers that
897350	903450	your clients or your user are having in your site. No one is also using base URI.
903990	910250	So yeah, it looks like there. Yeah, it's pretty common not having those. So remember if you've
910250	914850	come across... make a wish if you come across a policy that contains the both of them, okay?
916970	922750	So the least frequent weaknesses are... yeah, and safeinline and safehabit, they are there.
922750	928070	But those are the two ones that get me more worried. For example, 9% of the sites that
928070	935490	define a content security policy, they can be abused by third parties domains. I will get
935490	942070	back to that later. And lenient scheme, that means that every site... sorry, 7% of the sites
942070	949870	are allowing HTTP handles, for example, to execute scripts on your... anything that comes from HTTPS,
949870	955470	for example, they are okay in executing as a script. So yeah, it's a bit worrying as well.
956350	960870	There are other parts in the dashboard that you can take a look at. There are some tables that
961390	965610	lets you to explore some weaknesses of the sites that I gather. This is, for example,
965610	970610	third-party orphan domains, no-csp-defined and safehavel and safeinline. So many others. Many
970610	975670	vulnerabilities that you can take a look at. This is how it would look like if you visit this part
975670	981530	of the dashboard. The orphan domains is the one that we are looking at now. The first column is
981530	988810	the affected domain. And the description column tells you what are the domains that are orphan,
988810	993690	that means not registered right now. So at the first line, for example, you see that the
993690	999230	domain bosh-tools-results-page.com is present in the script source directive, but it's not
999230	1004810	registered. So it's sitting there for you to register and execute scripts on that page,
1005650	1009350	provided that you find another cross-site scripting in that site.
1010110	1014790	Now, for example, another example would be to look at the third-party abuse. In this case,
1014790	1020910	the first column is the affected domain as well. And the description is telling me, for example,
1021630	1026110	the third-party abuse that I can take advantage of. The second line, for example, is telling me
1026110	1032170	that the directive-connect-source contains asterisk-at-hotjar.com, so I can use that to
1032170	1037150	exfiltrate data. So it's at least that you can take advantage of, if you want to say that.
1037410	1043890	Now what? What do we do with this information? It comes the fun part, the exploitation part. I
1043890	1052010	wanted to find new bypasses. I found, just ahead, I wanted to find new vectors. I found a lot of
1052010	1059050	information on the internet about how to bypass CSP using JSON with padding and AngularJS outdated
1061050	1067150	libraries of AngularJS. I wanted to find different vectors, so I just forgot about them for a moment
1067150	1073170	and found different ways. I came up with this list. That does not mean that this is the only
1073170	1078470	list that exists out there. Probably there are others. Due to time restriction, I will only focus
1078470	1084910	on this first one. I will explain a bit more the following three ones, and this last will just be
1084910	1091670	mentioned by passing. But if you want to know more information about them, take a look to our
1091670	1099370	blog post in sensepost.com. Details will be published soon. So yeah, to demonstrate the
1099370	1106270	bypasses, I created a lab. This lab contains a private part where you can see the secret
1106270	1112910	ingredient for the KFC recipe, and there is also a part here where you can change your own password
1112910	1118350	and your security question, etc. So this is the lab where I want to test everything.
1118810	1123070	The objectives for me to demonstrate the CSP bypasses would be first one to exfiltrate the
1123070	1126930	security question and answer, second one to exfiltrate the secret ingredient, and third one
1126930	1131830	to change the user password, victim password. For that, I created two different vulnerabilities
1131830	1139310	on the lab. This vulnerability, just it's easier I guess to understand, gets a message parameter,
1139310	1146370	no? And directly introduce the string into this JavaScript code down there. So you would get,
1146370	1151670	if you visit the following page, secret.php, etc., msg, this is an error, and semicolon,
1151670	1156250	you get the following JavaScript generated, which of course is a nice cross-site scripting.
1156250	1163150	And the second vulnerability would be something similar, but in this case what we have is a
1163150	1169650	loud script with a nonce, etc., and gets the parameter source, okay, from URL params,
1169650	1175910	and the source gets introduced as the source of a script. This script is going to be appended
1175910	1179810	in the head of the document, okay? So those are the two vulnerabilities that I will be using
1179810	1186410	to demonstrate the CSP bypasses. So if you visit this source, you would get the script
1186410	1194390	pointing to this code, script execution.js. So, showtime. The first one with Hotjar that I
1194390	1200110	mentioned, I found 2050 sites in MyDB. This is a 2% of the sites that I have that are implementing
1200110	1206710	CSP. It's not big, but it's not small, relatively, okay? Symptoms would be, oops, sorry,
1206710	1212790	symptoms would be finding asterisk hotjar.com and askhotjar.io in the content security policy,
1212790	1217530	and can be used to exfiltrate data. This is how it would look like when you go to the site.
1217690	1223410	This is a content security policy, allowing default askhotjar.io, but for exfiltration purposes,
1223410	1228690	you can use it as well for connect source, okay? This is the payload. Now, don't pay much
1228690	1233530	attention to the mumbo-jumbo. It's just focus on those part, security question and answer,
1233530	1239130	getting exfiltrated to the attacker.local domain. But, of course, due to the content policy that
1239130	1243470	has been implemented, if we try this, to fetch this, and send out this information,
1243470	1249630	you would get the following error, thanks to the CSP, which is good, no? But you, as an attacker,
1249630	1254590	you know that they are low in Hotjar here, okay? So now what we do, as an attacker, you open
1254590	1261490	yourself an account in Hotjar, you create a poll, no? You insert that poll in your own website,
1261490	1267470	you sniff this traffic, you sniff the traffic of answering that poll in your own website,
1267470	1272030	and then you mimic this answer, but in this case, from the victim website, or from the victim
1272030	1278970	browser. So, if we take a look in BARP, for example, or your proxy of choice, we can see that
1278970	1284770	the site, this is what you will see when you answer the poll in Hotjar. askhotjar.io is the
1284770	1290010	host where we are exfiltrating this information to. This is a response content parameter, which
1290010	1296030	contains, within the comment, we get the answer of the poll, no? So we are going to take advantage
1296030	1301390	of it by introducing that in our previous proof of concept. We get now, again, the security
1301390	1305910	question and answers exfiltrated from the profile of the user, we introduce them in the comment,
1305910	1313650	and then fetch, post this information to askhotjar.io, etc. So we take all this JavaScript
1313650	1319230	and encode it in Base64. Sorry for the red color, it doesn't look very bright here.
1319690	1325430	But yeah, and you use it, and you introduce it as in the cross-site description that we saw in
1325430	1331410	the first vulnerability here, append an extra message. By the way, this is a callout that
1331410	1335510	you would need if you are going to use this eval, you need unsafe eval also allowed in the
1335510	1342970	script source. But anyway, you shorten this to look less suspicious and deliver this script,
1342970	1347770	sorry, this link to the victim, no? The victim clicks, and when the victim clicks,
1347770	1352310	you get the following on your Hotjar attacker's account. I'm going to show you a video to
1352310	1358470	demonstrate that. At the left side of the screen is the page. The victim is now logging in. On the
1358470	1364670	right side is the attacker's perspective. It's a Hotjar account. The victim is logging in right
1364670	1369090	now. There is the secret ingredient there and the profile with your password and the security
1369090	1375370	answer and whatnot. Okay, so now the victim is going to click on the link, the malicious link.
1375370	1382580	It gets redirected now to the cross-site scripting. We get that it was a success. And as attacker,
1383130	1393250	we update our dashboard and get the following exfiltrated from the page, okay? The favorite
1393250	1407970	word is the word. Anyway, so Facebook. Thank you. I found this was a bit more popular in this case,
1407970	1416110	2,750 sites in my database, just 2% of the site, 2.6% of the site implementing CSP.
1416110	1422230	They're allowing facebook.com or facebook.net to be used to exfiltrate data, okay? So you can,
1422230	1429750	as an attacker, go and create yourself a developer account in Facebook and exfiltrate data there.
1429750	1434610	I will show that later. So this is the content security policy that you would face. This or
1434610	1439710	this other configuration to exfiltrate data, okay? This is going to be shorter. In this case,
1439710	1445410	we are taking advantage of the Facebook framework, the tracking pixel. The first line is just
1445410	1451110	initiating the tracking pixel of Facebook to point to the attacker account ID. And the second line
1451110	1456710	is just creating a fake event, a fake custom event. This fake custom event is going to exfiltrate
1456710	1462550	within the data, the secret ingredient in this case, okay? So this is what you would look like,
1462550	1469310	what you would see as an attacker if you get your victim clicking on that link, okay? The secret
1469310	1473170	ingredient has been exfiltrated to your Facebook account, to your Facebook developer account
1473170	1481450	dashboard. Okay. Demo three is with jsdeliver. I found that this was a bit more known around,
1481450	1488770	but nevertheless, I think it's interesting to know. Found 1,550 sites in my database,
1488770	1495290	symptoms, cdnjsdeliver allowed, and asterisk jsdeliver allowed. Can be used in this case
1495290	1500970	to execute code instead of exfiltrating code, okay? That one is straightforward. You just host
1500970	1508450	your code in your account, GitHub account or npm, okay? And politely ask jsdeliver cdn to
1509210	1516750	cache that code, no? By using a specific URL. This URL is telling jsdeliver to go to GitHub,
1516750	1523430	to the username felmoltor, to the repo name bunchofjs, and to the path exec. And it would politely
1524210	1529610	get all your code and get it cached there. So now you only need to exploit the second
1529610	1535150	vulnerability, the one with the source parameter here. You just need to send or deliver this
1535150	1540570	script, sorry, this link to the victim. The victim clicks and gets the password changing
1540570	1546370	and security question, et cetera, et cetera. Now, this is a bit more elaborate, but interesting as
1546370	1555290	well. Not many sites, but relatively high. 550 sites in my DB, amazonaws.com, asterisk, okay?
1555290	1559310	Can be used to exfiltrate, but I'm pretty positive that you can use it to execute code as well.
1559610	1566770	So you need to define two different components here. A lambda function and an API gateway.
1567350	1573510	This is the content of the lambda function. It is easy. You just get the data parameter,
1573510	1580870	decode it, and print it in the console, which this console logs is going to be visible for you
1580870	1586870	as an attacker in your CloudWatch logs, okay? And this is the script that you need to execute
1586870	1592610	in the victim side, the code that you need to execute in the victim side. You just have your
1592610	1600510	API gateway hosted here as a subdomain of amazonaws.com, and the data contains just the
1601710	1607770	base64 encoded data that you want to exfiltrate, okay? And then just append this script,
1607770	1615570	and you would get the following on your CloudWatch logs, okay? The secret ingredient.
1615570	1621450	Okay, now this is just passing by. I found other four different vulnerabilities, sorry,
1621450	1628170	CSP bypasses with Amazon CloudFront, Azure Web Applications. Similarly, 100 sites, 100 sites.
1628170	1634950	First one would be the content security policy allowing asterisk cloudfront.com. The following
1634950	1640970	one would be azurewebsites.net and azurestaticapps.net. Both can be used to execute and exfiltrate data,
1640970	1644190	and the proof of concept would be similar. To exploit the second vulnerability, you just send
1644190	1652530	to the victim. You get the information or the script executed on the victim side.
1652970	1656590	Heroku, Firebase, those are not very popular, but you never know when they're going to be
1656590	1663250	useful for your next bug bounty. So asteriskherokuapps.com and firebaseapp.com.
1663290	1669890	Similarly, you open your account in each of those and host your code, and it could be executed by
1669890	1675010	the victim. Anyway, not going to delve too much. So now that we know how many ways they can bypass
1675010	1683250	this CSP, what do we do as defenders? First of all, push the big red button and encourage other
1683250	1690670	people to do so, please. Do not be the dentists that are not brushing their teeth. So if you're
1690670	1696470	doing that, if you're implementing CSP, do that in conjunction with self-resource integrity.
1696470	1702370	So if one of your third parties get popped and one of the JavaScripts get changed,
1702370	1708230	please, if you're using self-resource integrity, you won't get that code executed on your website.
1708230	1714350	I know some personal stories of that. So then if you're using your CSP, don't use anything
1714350	1719490	that says unsafe. Unsafe for the ones that do not know English is very bad word, okay?
1719490	1727370	And use instead nonces and hashes. You can use a strict dynamic, okay? You can use a strict
1727370	1732870	dynamic to reduce the operational load transitive property that I mentioned before, but be aware of
1732870	1738010	the risk. That means that you have to really trust those other third parties. Then reduce
1738010	1743410	the number of third parties on your content security policy, reduce it to a minimum. I'm
1743410	1748810	not saying not use them, but reduce them to a minimum. And if possible, instead of opening
1748810	1754910	pokes and poking holes on your CSP, to allow third parties, just host the libraries on your
1754910	1760070	own domain, so you don't have to poke a hole in your CSP. Do not include, of course, if you have
1760070	1764350	to do that, do not include third party domains with wildcards, such as this one. You're allowing
1764350	1770650	everyone that has an Amazon AWS domain.com API gateway to execute or retrieve code from your
1770650	1776470	site, no? Then use report two and report sample. This is going to be noisy, but it's giving you
1777330	1780610	superpowers and you are going to be able to see what is happening in real time
1780610	1786450	with your users, no? What code is being executed on your client's or user's side.
1786470	1791230	And then finally, consider available commercial solutions to monitor client-side JavaScript.
1791230	1795690	These solutions, you can search for them, they are going to tell you, they're going to highlight
1795690	1801030	and alert, tell you, hey, this script has been executed in one of your user browser and it's not
1801030	1807550	useful. So take a look to it. With all of that, thank you, everyone. Thank you for all my
1807550	1822340	colleagues. You didn't let me thanks to my colleagues in SensePost and Orange Cyber Defense,
1822340	1829160	especially Simon and Leon and John and everyone else and you guys for being here. Thank you,
1829160	1829800	everyone.
