NTU CSIE CSCAMP-2019
https://slides.com/james01/computer-security-4
Confidentiality 保密性
保密防諜,人人有責
Integrity 一致性
資料不可被任意更動
Availability 可用性
服務 / 資料 使用不可被任意妨礙
尋找並利用執行檔中的漏洞
解讀執行檔,並提取有用的資訊
各種網頁相關漏洞
密碼學
** 現代密碼學大多跟離散數
學,線性代數有關
隱藏訊息的藝術
Recovering digital trail
Server
Client
一般所看到的網頁
支撐網頁的各種程式
request
response
<scheme>://<netloc>/<path>?<query>
URL
https://M30W.tw/search?q=ctf
<scheme>://<netloc>/<path>?<query>
URL
https://M30W.tw/search?q=ctf
https : Hypertext Transfer Protocol Secure
<scheme>://<netloc>/<path>?<query>
URL
https://M30W.tw/search?q=ctf
M30W.tw : domain name
<scheme>://<netloc>/<path>?<query>
URL
https://M30W.tw/search?q=ctf
search : path of the document
<scheme>://<netloc>/<path>?<query>
URL
https://M30W.tw/search?q=ctf
q=ctf : purpose of request
最常見的兩種請求方法
HTTP methods
GET :
POST :
Other stuff worth knowing
HTTP request header
GET /query?q=ctf HTTP/1.1
Host: M30W.tw
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:56.0)
Gecko/20100101 Firefox/56.0
Accept: text/html,application/xhtml+xml,application/xml;
Connection: keep-alive
HTTP response header
HTTP/1.1 200 OK
Date: Sat, 23 March 2019 20:00:00 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Sat, 23 March 2019 21:00:00 GMT
ETag: "69fe-56ce289380252"
Accept-Ranges: bytes
Content-Length: 27134
Vary: Accept-Encoding
Connection: close
Content-Type: text/plain
status codes
Other stuff worth knowing
HTTP vs HTTPS
Other stuff worth knowing
What is a cookie
Where to find cookie
HTTP request headers
All problems can be found at 139.162.125.106:4000
What is javascript
XSS
XSS prevention
先備知識 : 基礎 bash 指令
bash 是最常被使用的文字介面之一
Common Vulnerabilities
執行來自用戶的指令
Common Vulnerabilities
How to deal with it
What is SQL
SQL Commands
ref :
https://www.codecademy.com/articles/sql-commands
SQL Injections
How to deal with it
Rule of least privilege
Information leakage
Robots.txt
git/svn
.DS_Store
.swp / ~
github