Time spent: 5 hours spent in total
Objective: Create an intentionally vulnerable version of the Globitek application with a secret that can be stolen.
- All source code and assets necessary for running app
-
/globitek.sql
containing all required SQL, including thesecrets
table - GIF Walkthrough of compromise
- Brief writeup about the vulnerabilities introduced below
Describe the vuln(s) here. I used the already existing object searching weakness to create a indirect object reference (IDOR) vulnerability. If the user enter a user id large enough, the database will attempt to short cut the process by not searching. However, it is going to print out the secret instead.
Here's a walkthrough of implemented user stories:
GIF created with LiceCap.
Copyright [2017] [Tianhao Qiu]
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.