Sign In
Not register? Register Now!
You are here: HomeEssayLiterature & Language
Pages:
1 page/≈275 words
Sources:
2 Sources
Level:
APA
Subject:
Literature & Language
Type:
Essay
Language:
English (U.S.)
Document:
MS Word
Date:
Total cost:
$ 3.6
Topic:

Secure Coding Practices (Essay Sample)

Instructions:

Discuss two Secure Coding Practices

source..
Content:

Secure Coding Practices
Student’s Name
University
Course
Professor
Date
Secure Coding Practices
There are many well-known software threats; among the most common and dangerous ones is Script injection. This type of vulnerability often happens when a programmer fails to limit the running of external scripts or commands inside their software. An attacker tries to find loopholes in the system where they can patch their code which may give them access to some parts or the whole software system (Robert Seacord,2018). This may happen due to reasons such as poor coding structure, lack of privilege limitation, lack of proper validation and sanitization of user-supplied data, and lack of proper testing. These are basic secure coding practices to solve such threats
Data sanitization and validation
Data Validation is the process of checking if data got from the user is of quality, meets the format, and is of the correct data type. By doing data validation, the programmer will limit what gets to be saved in the system. An example of data validation in python is:
The code checks if the supplied data is an integer
regCode = input('Enter your registration code : ') # prompts to enter value.
if regCode.isdigit(): # returns true if all digits otherwise false.
#do some code
else:
print(“the code you entered is not numeric”)
Data sanitization on the other hand refers to the process of rendering any data received from a user harmless. Some inputs from the user may contain data that can be run on the software to provide a way to run a script. Below is an example in python:
The code sanitizes html tags
import html
input = '

...
Get the Whole Paper!
Not exactly what you need?
Do you need a custom essay? Order right now:

Other Topics:

  • Walmart E-Commerce Strategy
    Description: Walmart chain of supermarket is headquartered at Bentonville, Arkansas; Walmart Inc. was founded in 1962 by Sam Walton in Rogers, Arkansas, and incorporated under Delaware General Corporation Law on October 31, 1969. As of April 30, 2021, Walmart has 10,526 stores and clubs in 24 countries operating under ...
    1 page/≈275 words| 1 Source | APA | Literature & Language | Essay |
  • The Key Attributes Presented in ANA Fast Facts
    Description: The key attribute presented in the data is that the nursing workforce is organized in different ways catering to various aspects such as demography, education, salaries, job growth, and trends. The nursing profession has also experienced significant growth since 2012, as per the ANA fast facts. The growth ...
    1 page/≈275 words| 2 Sources | APA | Literature & Language | Essay |
  • World Vision Critique
    Description: Non-profit organizations around the globe mostly serve the vulnerable populations such as children, widows and the widowers, the elderly and other vulnerable groups in the society. Most of these non-profit organizations are based on churches and religious institutions which donate to these organizations...
    2 pages/≈550 words| 3 Sources | APA | Literature & Language | Essay |
Need a Custom Essay Written?
First time 15% Discount!