Time spent: 17 hours spent in total
The following required functionality is completed:
-
Required: Import the Starting Database
-
Required: Set Up the Starting Code
-
Required: Review code for Staff CMS for Users
-
Required: Complete Staff CMS for Salespeople
- Required: index.php
- Required: show.php
- Required: new.php
- Required: edit.php
- Required: Complete Staff CMS for States
- Required: index.php
- Required: show.php
- Required: new.php
- Required: edit.php
- Required: Complete Staff CMS for Territories
- Required: index.php
- Required: show.php
- Required: new.php
- Required: edit.php
- 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.
- 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
- 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
- I've tried different methods as far as I know to test for security vulnerabilities in the form inputs and URL query strings, but haven't found any to the extent of my knowledge. I whitelisted specific characters using
preg_match()
function of PHP, and redirected to index.php if an invalid query string was provided in the URL.
- I've tried different methods as far as I know to test for security vulnerabilities in the form inputs and URL query strings, but haven't found any to the extent of my knowledge. I whitelisted specific characters using
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
Here's a walkthrough of implemented user stories:
GIF created with LiceCap.
It took me quite a while to grasp the actual means of nesting a CMS within another while nesting the states inside the countries CMS, while ensuring that the old states functions are maintained and new functions that include countries CMS are integrated.
Copyright [2017] [Thant Htoo Zaw]
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.