security

28 views
Skip to first unread message

Andres

unread,
Sep 27, 2010, 12:23:11 PM9/27/10
to genetify
Hi folks, pardon the n00b question here. Do you have any suggestions
regarding security for Genetify?

Specifically, how could I prevent malicious people from forging calls,
calling up the control panel and generally messing with the stats and
scripts?

On a related note... I saw the comment on the PHP recorder " //TODO:
mysql escape *all* $_REQUEST variables"... so the PHP part is open to
SQL injection attacks?

Thanks in advance,

-Andres.

Greg Dingle

unread,
Sep 27, 2010, 2:42:53 PM9/27/10
to gene...@googlegroups.com
Andres,

Keeping to its experimental nature, Genetify defaults to unrestricted operation. To add more security, you could do any number of things: hash a password and put it in the JS, do a server side check on a whitelist of IP addresses, eliminate certain operations entirely.

The TODO was a note to myself to systematically lockdown the app against mysql injection attacks. I haven't heard any vulnerabilities, so, to be honest, I don't think I will get to it any time soon.

Please request a pull on github for any improvements you make!

Greg

> --
> You received this message because you are subscribed to the Google Groups "genetify" group.
> To post to this group, send email to gene...@googlegroups.com.
> To unsubscribe from this group, send email to genetify+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/genetify?hl=en.
>

Enrique Ferraro

unread,
Sep 27, 2010, 3:13:00 PM9/27/10
to gene...@googlegroups.com
Thanks Greg, by the way, amazing piece of code.

Glad to know its not that vulnerable. I was thinking of pulling off something dead-simple like at .htaccess restriction somewhere. I'm really new at JavaScript - Just locking down the admin parts to my own IP with .htaccess would suffice for me.

I guess I could do that by locking down access to controls.js - that might help at least a bit.

Again, thanks for the package.

-Andres.
-------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages