Coder Social home page Coder Social logo

input-output-sanitization's Introduction

Project 2 - Input/Output Sanitization

Time spent: 10 hours spent in total

User Stories

The following required functionality is completed:

1. [X] Required: Import the Starting Database

2. [X] Required: Set Up the Starting Code

3. [X] Required: Review code for Staff CMS for Users

4. [X] Required: Complete Staff CMS for Salespeople

  • Required: index.php
  • Required: show.php
  • Required: new.php
  • Required: edit.php

5. [X] Required: Complete Staff CMS for States

  • Required: index.php
  • Required: show.php
  • Required: new.php
  • Required: edit.php

6. [X] Required: Complete Staff CMS for Territories

  • Required: index.php
  • Required: show.php
  • Required: new.php
  • Required: edit.php

7. [X] Required: Add Data Validations

  • Required: Validate that no values are left blank.
  • Required: Validate that all string values are less than 255 characters.
  • Required: Validate that usernames contain only the whitelisted characters.
  • Required: Validate that phone numbers contain only the whitelisted characters.
  • Required: Validate that email addresses contain only whitelisted characters.
  • Required: Add at least 5 other validations of your choosing.

8. [X] Required: Sanitization

  • Required: All input and dynamic output should be sanitized.
  • Required: Sanitize dynamic data for URLs
  • Required: Sanitize dynamic data for HTML
  • Required: Sanitize dynamic data for SQL

9. [X] Required: Penetration Testing

  • Required: Verify form inputs are not vulnerable to SQLI attacks.
  • Required: Verify query strings are not vulnerable to SQLI attacks.
  • Required: Verify form inputs are not vulnerable to XSS attacks.
  • Required: Verify query strings are not vulnerable to XSS attacks.
  • Required: Listed other bugs or security vulnerabilities

The following advanced user stories are optional:

  • Bonus: On "public/staff/territories/show.php", display the name of the state.

  • Bonus: Validate the uniqueness of users.username.

  • Bonus: Add a page for "public/staff/users/delete.php".

  • Bonus: Add a Staff CMS for countries.

  • Advanced: Nest the CMS for states inside of the Staff CMS for countries

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

Describe any challenges encountered while building the app.

License

Copyright 2017 Kenichi Yamamoto

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

input-output-sanitization's People

Contributors

ykenichi avatar

Watchers

James Cloos avatar  avatar

input-output-sanitization's Issues

Project Feedback!

Hello Kenichi,

๐Ÿ‘ Nice work! Now that we've been exploring XSS and SQL injection attacks, hopefully you have more appreciation for the other side of things, which is sanitizing input and output to defend against these attacks. Even though these attacks have existed in the web for many years, it's still incredibly easy to introduce these vulnerabilities, even when using all the latest web frameworks.

Check out recent reported XSS vulnerabilities here. As you can see, there have been over 2 dozen found just in the first few months of 2017 in major brands such as Wordpress, Adobe, Cisco, and Steam.

If you have any particular questions about the assignment or the feedback, email us at [email protected].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.