Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member sehh's Avatar
    Join Date
    Feb 2006
    Location
    Europe
    Posts
    461

    Default Set "UseDNS no" in sshd_config when cPHulkd is enabled

    The changelog says that EDGE was updated with "Set "UseDNS no" in sshd_config when cPHulkd is enabled", what is this change about? UseDNS checks the remote IP address resolves properly.

  2. #2
    cPanel Staff
    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    1,881

    Default

    If UseDNS is enabled, it sends the resolved domain name rather than the IP to PAM, which is what cPHulkd reads from when determining whether a login attempt is part of a brute force attempt or not. The problem with this is with whitelisting IPs; if PAM would pass the IP along with any resolved domain name, then we could resolve the domain to it's A records (if more than one) and verify at least one matches the IP it's connecting from. Alas, all we get is a domain that an attacker could set up to fake and get whitelisted. Consider the following scenario:

    Attacker has control over rdns on 1.2.3.4 and NS for baddom.tld .
    Admin has whitelisted 4.5.6.7 in WHM for cPHulkd.
    Attacker sets up 1.2.3.4 to return a PTR with baddom.tld , then sets up an A record for baddom.tld to 4.5.6.7 .
    Attacker brute forces root login on Admin's server and gets away with it, because when the Attacker connects from 1.2.3.4, the Admin's server resolves 1.2.3.4 to baddom.tld and sends baddom.tld to cPHulkd. cPHulkd then resolves baddom.tld to an IP to check against the whitelist and finds 4.5.6.7, which matches and is allowed to carry on.

    We'll probably modify it somewhat in the near future to be configurable in case an Admin really want's it on, more than using whitelists with cPHulkd.

Similar Threads & Tags
Similar threads

  1. First domain in "hot-link enabled "list is tabbed, misaligning it
    By jpratt in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 08-11-2011, 10:25 AM
  2. Mail forwarders don't work when "Sender Verification" is enabled
    By NovemberRain in forum E-mail Discussions
    Replies: 0
    Last Post: 01-03-2008, 04:11 AM
  3. clamd wan't work with "LogTime" option enabled...
    By dexus in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-25-2007, 11:38 AM
  4. If Spam assasin is enabled "local user not found" EXIM Error
    By Francisco in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-27-2004, 10:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube