 |
|
|
|
 |
|
 |
 |
|
 |
 |
Lira
Ancient BassAddict

Registered: Nov 2001
Location: Brasilia, Brazil
|
|
|

And, Stu, the files are on a server in Virginia, not on my computer 
| quote: | Originally posted by FuzzQi
These functions here are good for wrapping around any variables that get passed to the database.
addslashes()
mysql_real_escape_string()
real_escape_string()
str_replace()
They stop things like SQL injection attacks |
I've been using the second one quite consistently thus far... is it enough to avoid people tampering with the database?
| quote: | Originally posted by FuzzQi
Don't use $_REQUEST over $_SESSION, $_GET or $_POST, it's a vulnerability (session variable could get overwritten by the haxxor putting ?variable=value in the url) |
Note taken 
| quote: | Originally posted by FuzzQi
Store whatever you can of your procedures outside of the site's web root and link to them in your live pages by using require() or include(). If PHP crashes, these pages will be sent to the browser as plain text and you generally don't want php code to be seen by the visitor. |
I was already doing it because I found it easier to edit several tiny files than one giant file. Nice to know it's got more advantages 
| quote: | Originally posted by FuzzQi
Don't rely on $_POST variables to be secure. Although they don't seem to be as manipulable as $_GET thanks to things like Tamper Data you can edit anything sent in a request header! |
Hhmm... this could turn out to be a vulnerability. I'm using AJAX throughout the site, with loads of $_GET variables, so although the requests don't ever show up in the address bar, someone can just snoop around the javascript files and manipulate the variables.
Hmm... I wonder how I can sort this problem out.
___________________
Indiana Clones Upcoming Sets
[ I May Upload Something Someday ]
|
|
Mar-03-2012 09:31
|
|
|
 |
 |
|
 |
 |
JEO
Supreme tranceaddict

Registered: Jan 2010
Location: ATH
|
|
|
Mar-03-2012 10:01
|
|
|
 |
 |
***
tranceaddict in training
Registered: Feb 2012
Location: Canada
|
|
|
Re: Need advice on web security
| quote: | Originally posted by Lira
...developing a language database for my PhD...
...***worried about being hacked***...
What precautions do I have to take in order to protect the data? |
1. Don't connect your database to the internet.
2. Use an interface that is non standard.
3. Have a offline backup for your secure system in lead and a faraday cage buried somewhere and possibly encased in concrete. with land mines and IED's and lethal radioactive material nearby. Saying do not enter, No solicitations, Trespassers will be undertaken.
4. You want to encase all your systems in farraday mesh. Make sure you have have explosives or radioactive materials - combined with fletchettes punjii sticks. Consider posting lots of porn on the walls too just to throw a would be attacker off guard. Throwing in a sex doll in the same room with the server may throw off the average script kiddie.
5. Don't use windows, or mac, or any operating system that is known.
6. Use your own File System, not a known file system.
7. Do not use any standard equipment, consider 9 bit servers and trinary systems operated by gears containing oscillated crystals rather than magnetics.
8. Assemble pages rather than have them ready made or standardized.
9. Do not take any inputs other than your allowed inputs close off all other interface types.
10. Serve your data from major servers that are not succeptable to ddos attacks.
11. Ban all IP's of non subscribed people to your server access. require a sign up with a specific IP. create a proxy with some other method of login such as facial recognition or subscribe by MAC.
These are some ideas.
The key is to build everything from the ground up...read abit about TEMPEST .. you can't use an electromagnetic system if you want to avoid being hacked. You can only defend if you have enough resistance to protect against an external EW takeover of your system.
All devices can be controlled externally via EW tech
Realize the internet is an EM system so it is always succeptable to takeover via EW.
The only resistance is EW hardening via tempest methodologies and non standards based engineering. example don't use the most efficient systems. Do not program in english and bloat your system, also don't use regular math and make your own os that implements symbolic visual programming in a non standard ex. the trinary or quad or quantum based operating environment, that is mechanical and is fluid rather than a static system.
Last edited by *** on Mar-03-2012 at 10:26
|
|
Mar-03-2012 10:17
|
|
|
 |
 |
|  |
All times are GMT. The time now is 01:38.
Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
|
HTML code is ON
vB code is ON
[IMG] code is ON
|
|
|
|
|
|
Contact Us - return to tranceaddict
Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
|