Either way the potential for the vulnerbility exists and the fix I will post does not impact adversely it just warns the user with an error. Something like "you should not create manual zone entries in named.conf" or create the site but tag the site if no DNS entry is created. This is better than blindly restarting bind without a return value. DNS fails to restart and your hosting server goes offline. Think about it, the patch is an improvement.
Quote:
|
Originally Posted by mlz
In my mind, you should not be manually adding DNS, but should be doing so in the DNS manager. If there is a shortcoming in using the manager (other then it's reliance on Bind) then perhaps we should bring it to the light of day and get it resolved.
I've never needed to do any manual editing of DNS, and I have a rather diverse group of clients using the server. My one fear is rather close to being realized, in that I'm about due for a second server, so I'm trying to grok a way to make things seemless and keep using ISPConfig.
|
-----------------------------------------------------------------------------------------
/home/admispconfig/ispconfig/lib/classes
ispconfig_isp_web.lib.php
Line Approx: 240 Function: web_insert()
Line Approx: 545 Function: web_update() //protects against resellers changing domains
////////////////////////////// Named.conf check for manual entries ////////////////////////
if (shell_exec('grep -A 10000 "//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////" /etc/named.conf | grep -c "zone \"'.$web["web_domain"].'\""') > 0) {
if($die_on_error){
$go_api->errorMessage($go_api->lng("error_web_doppelt")." ".$web["web_domain"]." ".$go_api->l ng("angelegt").$go_api->lng("weiter_link"));
} else {
return $go_api->lng("error_web_doppelt")." ".$web["web_domain"]." ".$go_api->lng("angelegt");
}
}
//////////////////////////////////////////////////////////////////////
ispconfig_web.lib.php
Line Approx: 185 Function: web_add()
Line Approx: ### Function: web_update()
if (shell_exec('grep -A 10000 "//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////" /etc/named.conf | grep -c "zone \"'.$web["web_domain"].'\""') > 0) $this->errorMessage .= "Parameter: web_domain is required.\r\n";
Only greps after //// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
protect against against 2 zones with same name 1 manual / 1 ISPConfig generated causes bind to fail to restart.
The 10000 should be EOF may also be useful elsewhere in ISPConfig, such as two virtual hosts with the same name etc. Probably more effective in the insert DNS functions in both files
Recent comments
1 day 14 hours ago
1 day 16 hours ago
2 days 4 hours ago
2 days 7 hours ago
2 days 11 hours ago
2 days 17 hours ago
3 days 3 hours ago
3 days 4 hours ago
3 days 13 hours ago
3 days 14 hours ago