The Go Language Guide - Checkmarx

The Go Language Guide

Web Application Secure Coding Practices

This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License

Table of Contents

Introduction Input Validation

Validation Sanitization Output Encoding XSS - Cross-Site Scripting SQL Injection Authentication and Password Management Communicating authentication data Validation and Storage Password policies Other guidelines Session Management Access Control Cryptographic Practices Pseudo-Random Generators Error Handling and Logging Error Handling Logging Data Protection Communication Security HTTP/TLS WebSockets System Configuration Database Security Connections Authentication Parameterized Queries Stored Procedures File Management Memory Management General Coding Practices Cross-Site Request Forgery Regular Expressions How To Contribute

1.1 1.2 1.2.1 1.2.2 1.3 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.6 1.7 1.7.1 1.8 1.8.1 1.8.2 1.9 1.10 1.10.1 1.10.2 1.11 1.12 1.12.1 1.12.2 1.12.3 1.12.4 1.13 1.14 1.15 1.15.1 1.15.2 1.16

1

Final Notes

1.17

2

Introduction

Go Language - Web Application Secure Coding Practices is a guide written for anyone who is using the Go Programming Language and aims to use it for web development. This book is collaborative effort of Checkmarx Security Research Team and it follows the OWASP Secure Coding Practices - Quick Reference Guide v2 (stable) release. The main goal of this book is to help developers avoid common mistakes while at the same time, learning a new programming language through a "hands-on approach". This book provides a good level of detail on "how to do it securely" showing what kind of security problems could arise during development.

Why This Guide

According to Stack Overflow's annual Developer Survey, Go has made the top 5 most Loved and Wanted programming languages list for the second year in a row. With its surge in popularity, it is critical that applications developed in Go are designed with security in mind. Checkmarx Research Team helps educate developers, security teams, and the industry overall about common coding errors, and brings awareness of vulnerabilities that are often introduced during the software development process.

The Audience for this Guide

The primary audience of the Go Secure Coding Practices Guide is developers, particularly the ones with previous experience with other programming languages. The book is also a great reference to those learning programming for the first time, who have already finish the Go tour.

What You Will Learn

This book covers the OWASP Secure Coding Practices Guide topic-bytopic, providing examples and recommendations using Go, to help developers avoid common mistakes and pitfalls. After reading this book, you'll be more confident you're developing secure Go applications.

3

About OWASP Secure Coding Practices

The Secure Coding Practices Quick Reference Guide is an OWASP Open Web Application Security Proj ect. It is a "technology agnostic set of general software security coding practices, in a comprehensive checklist format, that can be integrated into the development lifecycle " (source). OWASP itself is "an open community dedicated to enabling organizations to conceive, develop, acquire, operate, and maintain applications that can be trusted. All of the OWASP tools, documents, forums, and chapters are free and open to anyone interested in improving application security " (source).

How to Contribute

This book was created using a few open source tools. If you're curious about how we built it from scratch, read the HowTo contribute section.

4

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download