Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

⚫ ⚫ ⚫ ⚫ ⚫

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

https://owasp.org/www-project-go-secure-coding-practices-guide/ より

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

https://owasp.org/www-project-top-ten/

Slide 14

Slide 14 text

package main import "net/http" import "io” func handler (w http.ResponseWriter, r *http.Request) { io.WriteString(w, r.URL.Query().Get("param1")) } func main () { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 15

Slide 15 text

package main import "net/http" import "io” func handler (w http.ResponseWriter, r *http.Request) { io.WriteString(w, r.URL.Query().Get("param1")) } func main () { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 16

Slide 16 text

package main import "net/http" import "io” func handler (w http.ResponseWriter, r *http.Request) { io.WriteString(w, r.URL.Query().Get("param1")) } func main () { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 17

Slide 17 text

package main import "net/http" import "html/template“ func handler(w http.ResponseWriter, r *http.Request) { param1 := r.URL.Query().Get("param1") tmpl := template.New("hello") tmpl, _ = tmpl.Parse(`{{define "T"}}{{.}}{{end}}`) tmpl.ExecuteTemplate(w, "T", param1) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 18

Slide 18 text

package main import "net/http" import "html/template“ func handler(w http.ResponseWriter, r *http.Request) { param1 := r.URL.Query().Get("param1") tmpl := template.New("hello") tmpl, _ = tmpl.Parse(`{{define "T"}}{{.}}{{end}}`) tmpl.ExecuteTemplate(w, "T", param1) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 19

Slide 19 text

package main import "net/http" import "html/template“ func handler(w http.ResponseWriter, r *http.Request) { param1 := r.URL.Query().Get("param1") tmpl := template.New("hello") tmpl, _ = tmpl.Parse(`{{define "T"}}{{.}}{{end}}`) tmpl.ExecuteTemplate(w, "T", param1) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 20

Slide 20 text

package main import "net/http" import "html/template“ func handler(w http.ResponseWriter, r *http.Request) { param1 := r.URL.Query().Get("param1") tmpl := template.New("hello") tmpl, _ = tmpl.Parse(`{{define "T"}}{{.}}{{end}}`) tmpl.ExecuteTemplate(w, "T", param1) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) } ⚫ ⚫ ⚫

Slide 21

Slide 21 text

https://owasp.org/www-project-top-ten/

Slide 22

Slide 22 text

SELECT number, expireDate, cvv FROM creditcards WHERE customerId = 1 OR 1=1 ctx := context.Background() customerId := r.URL.Query().Get("id") query := "SELECT number, expireDate, cvv FROM creditcards WHERE customerId = " + customerId row, _ := db.QueryContext(ctx, query) query := "SELECT number, expireDate, cvv FROM creditcards WHERE customerId = ?" stmt, _ := db.QueryContext(ctx, query, customerId)

Slide 23

Slide 23 text

package main import "fmt" import "math/rand" func main() { fmt.Println("Random Number: ", rand.Intn(1984)) } ⚫ ⚫ $ for i in (seq 5); go run main.go ; end Random Number: 1825 Random Number: 1825 Random Number: 1825 Random Number: 1825 Random Number: 1825

Slide 24

Slide 24 text

package main import "fmt" import "math/big" import "crypto/rand" func main() { rand, _ := rand.Int(rand.Reader, big.NewInt(1984)) fmt.Printf("Random Number: %d¥n", rand) } ⚫ ⚫ $ for i in (seq 2); go run main.go ; end Random Number: 688 Random Number: 1309

Slide 25

Slide 25 text

⚫ ⚫ ⚫ ⚫

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

⚫ ⚫ ⚫

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫

Slide 31

Slide 31 text

⚫ ⚫ ⚫ ⚫ ⚫

Slide 32

Slide 32 text

⚫ ⚫ ⚫ ⚫

Slide 33

Slide 33 text

⚫ ⚫ ⚫ ⚫ ⚫ pass False

Slide 34

Slide 34 text

⚫ ⚫ pass False

Slide 35

Slide 35 text

• • • • •

Slide 36

Slide 36 text

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

https://docs.docker.com/docker-hub/builds/automated-testing/

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫

Slide 49

Slide 49 text

⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫ ⚫