Understanding CGI and SQL security from the ground up
Posted
by Steve
on Stack Overflow
See other posts from Stack Overflow
or by Steve
Published on 2010-06-15T19:54:48Z
Indexed on
2010/06/15
20:02 UTC
Read the original article
Hit count: 210
This question is for learning purposes. Suppose I am writing a simple SQL admin console using CGI and Python. At http://something.com/admin, this admin console should allow me to modify a SQL database (i.e., create and modify tables, and create and modify records) using an ordinary form
.
- In the least secure case, anybody can access http://something.com/admin and modify the database.
- You can password protect http://something.com/admin. But once you start using the admin console, information is still transmitted in plain text.
- So then you use HTTPS to secure the transmitted data.
Questions:
- To describe to a learner, how would you incrementally add security to the least secure environment in order to make it most secure? How would you modify/augment my three (possibly erroneous) steps above?
- What basic tools in Python make your steps possible?
- Optional: Now that I understand the process, how do sophisticated libraries and frameworks inherently achieve this level of security?
© Stack Overflow or respective owner