Skip to Content
図解まるわかり セキュリティのしくみ
book

図解まるわかり セキュリティのしくみ

by 増井 敏克
September 2018
Beginner to intermediate
224 pages
5h 33m
Japanese
Shōeisha
Content preview from 図解まるわかり セキュリティのしくみ
104
 Webサイトの中に掲示板などを用意し、利用者が投稿できるしくみを
備えているサービスは多数存在します。このとき、利用者が入力した内
容をそのまま投稿できるようになっていると、問題が発生する場合があ
ります。
 その1 つが(
※1)で、利用者が入
力したHTMLなどの構文をそのまま出力している場合に発生します。
 HTMLを含んだ内容を投稿できると、文字の大きさや色を変えることが
できて便利ですが(図4-10)、攻撃者にとっては任意の(簡易
的なプログラム)を投稿できるということです(図4-11)。このような投
稿が可能になっていると、攻撃者が投稿した悪意のあるプログラムを、他
の利用者の環境で実行させることが可能になります。
 脆弱性のあるWebサイトに対して、攻撃者がスクリプトを投稿する処
理を用意したとします。そして、攻撃者が用意したWebサイトを利用者
が閲覧すると、それだけで脆弱性のあるWebサイトに自動的にスクリプ
トが投稿・実行されてしまう恐れがあります(図4-12)。
 このように、「脆弱性のあるWebサイト」と「攻撃者のWebサイト」に
またがって発生するため、クロスサイトスクリプティングという名前がつ
いています。この攻撃のポイントは、脆弱性のあるWebサイトを直接攻
撃するのではなく、そのようなWebサイトを悪用して「利用者を攻撃す
る」ことです。
 自動的に投稿されるため、利用者は被害に遭っていることに気づきませ
ん。例えば、メールに記載された ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

図解まるわかり プログラミングのしくみ

図解まるわかり プログラミングのしくみ

増井 敏克
Python機械学習クックブック 第2版

Python機械学習クックブック 第2版

Kyle Gallatin, Chris Albon, 中田 秀基
仕事ではじめる機械学習 第2版

仕事ではじめる機械学習 第2版

有賀 康顕, 中山 心太, 西林 孝

Publisher Resources

ISBN: 9784798157252