JavaScript SEO XSS
taskey
1.
We Are JavaScripters! :))
We Are JavaScripters! :))
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Person",
"name": "Masakazu Fukami",
"job": “CTO",
"twitter": "@fukamiiiiinmin",
"company": “taskey inc.”,
"favorites": ["SEO", " "]
}
</script>
/ /
SEO
SEO
•
• DB
※SEO 2
•
•
•
•
•
•
※SEO 2
•
•
•
•
•
•
Google
• SSR 1 html
• etc) wordpress
• SPA ajax
• etc) React, Vue
• SSR 1 html
• etc) wordpress
• SPA ajax
• etc) React, Vue
SEO
• SSR 1 html
• etc) wordpress
• SPA ajax
• etc) React, Vue
SEO
JS Google Bot
Google bot
JS
Google bot
JS
Google bot
Chrome 41
Google I/O 2019
• Google Bot WRS Website Rendering
System
•
JS SEO
SPA
NO
Rendering Queue
&
Rendering Badget
Render Queue
• html
: SSR
Render Badget
• Google
• CSR
• UGC SSR
:
SSR
Google
WRS RE
🤔
1
Google 5
Google
XSS
Cross Site Scripting
: XSS attacks on Googlebot allow search index manipulation
1: XSS
• Chrome XSS
XSS
• open -na Google Chrome Canary --args --
disable-xss-auditor
2: HTML App
&HTML params
• Ruby on Rails
• <%= params[:page] %> <%==
params[:page] %> HTML
host?page=[javascript]
• host?page=<script>alert(‘aaa’)</script>
• host?page=<script>document.body.inner
Text=' ';</
script>
JavaScript SEO XSS
taskey

20190827_#35_we_are_javascripters