+ Reply to Thread
Results 1 to 10 of 10

Thread: Small Security Suggestion Regarding MySQL

  1. #1
    noner is offline x10Hosting Member noner is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    8

    Lightbulb Small Security Suggestion Regarding MySQL

    We are living in Dynamically assigned IPs (Until IPv6 is fully out). Due to setting My Account, I have noticed few interesting things regarding CPanel setting. Mostly about MySQL "Remote Database Access Hosts". Which is great feature but could be even better with one small thing I find very useful to add additional security to Database management.

    Most of us have some sort of DynamicDNS service Available (My router for example supports it) and there is variety of Free Dynamic DNS Service Hosts.Sorry, If I was too technical in description but English is not my native Language and I wanted to provide exact example how things should work.
    Admins feel free to contact me and I'll give you exact details for this.
    Last edited by noner; 11-26-2007 at 08:00 PM.

  2. #2
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Small Security Suggestion Regarding MySQL

    This would also require automated firewall modifications, probably more trouble than its worth.

    If you really really required a portable database, you may want to consider freesql.org.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  3. #3
    noner is offline x10Hosting Member noner is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    8

    Re: Small Security Suggestion Regarding MySQL

    That is why this is only suggestion. I have no problems with X10 I just stated something I've found nothing more. Still learning How things work here.

    There is always Workaround:
    1. Add IP To hostname result in CP Allowed Access Hosts
    2. Do Needed Job
    3. Clear Hostname from CP

    Q: Do not see need for Firewall changes only in CP as this is just temporal Query and no exclusions are needed for firewall actually it is just reverse from current one, but what I know from only two days of existence here.

    Re Portable: No Need For portable Database, but more concern in privacy of table contents even someone get hold on database Username and password. For Now I like it here.
    Last edited by noner; 11-26-2007 at 08:38 PM.

  4. #4
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Small Security Suggestion Regarding MySQL

    The reason for the firewall changes is actually very simple:

    With how X10 is designed, simply adding yourself to the remote database thing in the CP will NOT clear you on the firewall - you WILL still be blocked, whether the CP says you can do it or not.

    Thats why you'd need automated firewall changes for this - those are currently implemented by mods/admins.


    The firewall doesn't even check the CP to see if it's allowed; the CP would never get the request to try and access the database because it'dve already been blocked by the firewall.



    Long story short, the firewall blocks it before it ever gets to the CP, and the only way to get through the firewall is by corey doing an exception in it. Hence why you'd need an automated firewall, which is more of a hassle than its worth.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  5. #5
    noner is offline x10Hosting Member noner is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    8

    Thumbs up Re: Small Security Suggestion Regarding MySQL

    @Livewire
    This is exactly how I find X10 works and it should be that way.
    Firewall as first line of defense and when you cleared with firewall which give you access to CP then CP as Second Line determine Access Rights by comparison User IP -> HostName and HostNames -> User IP Like I described.

    Behavior I describe could be Classified as Bug/Limitation of Control Panel only not firewall or any other aspects of X10.
    Facts (Example not actual, but you can easily test on your own):
    1. myx10test.gotdns.org -> 213.194.75.12 http://whatismyipaddress.com/staticp...address-lookup
    2. 213.194.75.12 -> dsl-dp-81-140-124-0.in-addr.broadbandscope.com http://whatismyipaddress.com/staticp...ostname-lookup
    Using 1 and 2 are true then Fact 3 is true by absolute acceptance:
    3. myx10test.gotdns.org = dsl-dp-81-140-124-0.in-addr.broadbandscope.com

    CP Settings of Remote MySQL for using with Navicat to manage Databases:
    Access Hosts:
    myx10test.gotdns.org

    Ok now I try to access Database With Navicat Here is What Happened:
    Q: 213.194.75.12 -> X10Hosting Firewall (Allowed) -> CP Need Access to DB -> Failed Access denied ???
    A: 213.194.75.12 Resolves to dsl-dp-81-140-124-0.in-addr.broadbandscope.com Which is not in Access Host List
    Result: No Access To MySQL even Fact 1 is TRUE and myx10test.gotdns.org is in allowed Access Host List.

    Workaraound Solution is adding %.in-addr.broadbandscope.com in Access Hosts List which makes Possible Access leak due to Wildcard. This can be also solved by Entering IP -> Hostname in Access Host list Each Time I Want to access MySQL Database. Easy If you are Also Owner and Admin and DB manager and ... but if you have friend that manages your MySQL you will need to go thrum steps of contacting him get his private IP enter it in Access Host wait till he finishes Clean him out of list,... That is Big problem and waste of precious time for doing the job.

    Some IP especially static can have more than one Hostnames and that is Common practice but IP -> Hostname doesn't need to return any of them actually most likely it will return Different one like in this example I gave.

    Conclusion: As IT specialist with more than 20 years of exp. this is just minor thing I find. Which will mostly be only one more negative thing in my evulation of some hosting, but I find X10 One of most Complete Free Hosting sites I've found and X10 is well worth of giving my free time/knowledge to analyze and debug this small problem and help you to be even beter. Good work Guys/Gals
    Last edited by noner; 11-27-2007 at 11:26 AM. Reason: Few minor corrections


  6. #6
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Small Security Suggestion Regarding MySQL

    Note: Its just not just mysql's IP list that needs to be considered, its the firewall. If we were to allow wildcard hosts, there wouldn't be much point in a firewall, would there? :D


    Would you care to write the iptables rules for that, as well as a trigger on when to launch the iptables rules update (Do remember to remove old entries as well).

    Technically its not impossible, just a lot of work.
    Last edited by Slothie; 11-27-2007 at 11:35 AM.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  7. #7
    noner is offline x10Hosting Member noner is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    8

    Re: Small Security Suggestion Regarding MySQL

    Quote Originally Posted by Slothie View Post
    Would you care to write the iptables rules for that, as well as a trigger on when to launch the iptables rules update (Do remember to remove old entries as well).

    Technically its not impossible, just a lot of work.
    I know that, we can talk about that. At least I could help in making it. Why not it is good challenge.


  8. #8
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Small Security Suggestion Regarding MySQL

    Give it your best shot, if I think it's secure and it works, I'll do my best to campaign it with the other staff :D

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


  9. #9
    noner is offline x10Hosting Member noner is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    8

    Re: Small Security Suggestion Regarding MySQL

    OK I'll need some info regarding how things work from either you or someone of admins so that I could do Logistic Analysis, relations, probability cases and make appropriate algorithm for all aspects with as little changes possible with ensuring Best solution and/or possible scenario simulation.

    This is field that I do for living beside programming in Delphi.


  10. #10
    Slothie's Avatar
    Slothie is offline Lord Of The Keys Slothie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    1,432

    Re: Small Security Suggestion Regarding MySQL

    Its just cpanel and iptables. The information is readily available off the internet, the implementation isn't.

    While delphi isn't available for linux, kylix is which I use very often. You'd still need to find out how to integrate it with cpanel though.

    Easiest 70 points you'll make on x10

    Feel free to add my reputation by clicking on the if you found my post helpful to you :P


    If I am not responding to your PMs, that means I am ignoring you. Take a hint.



    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM
  3. Replies: 0
    Last Post: 08-27-2005, 03:12 PM
  4. Microsoft is planning to launch security services
    By stealth_thunder in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 05-16-2005, 02:46 PM
  5. Security hole bites Apple's Tiger
    By stealth_thunder in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 05-11-2005, 09:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers