Tommahawk
13th September 2007, 01:35
ISPConfig does not check for a valid domain. You should add...
if (!preg_match("/^([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $domain_here)) $error = "Please enter a valid domain name";
somewhere. Now the DNS manager folders will not load, I have included a screenshot because it has corrupt the database and it also create folders. e.g
the entry in the dns_isp_dns table
t7v.com | 1 | | 60.241.11.51 |
| 38 | 1016 | /root/Desktop/organised/html/t7v/index.php
t7v.com | 28800 | 7200 | 604800 | 86400 | ns1.ecommsec.com | ns1.ganino.com | admin@/root/Desktop/organised/html/t7v/index.php
1) the folders are created in chroot under pri. folder
2) /root/Desktop/organised/html/t7v/index.php is not a valid domain.
I fixed the issue by deleting 2 references in the database and all is fixed but reseller may be able to expoit the issue and break out of chroot by creating folders.
Need to include the fix
if (!preg_match("/^([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $domain_here)) $error = "Please enter a valid domain name";
when specifying a domain named for a new site.
if (!preg_match("/^([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $domain_here)) $error = "Please enter a valid domain name";
somewhere. Now the DNS manager folders will not load, I have included a screenshot because it has corrupt the database and it also create folders. e.g
the entry in the dns_isp_dns table
t7v.com | 1 | | 60.241.11.51 |
| 38 | 1016 | /root/Desktop/organised/html/t7v/index.php
t7v.com | 28800 | 7200 | 604800 | 86400 | ns1.ecommsec.com | ns1.ganino.com | admin@/root/Desktop/organised/html/t7v/index.php
1) the folders are created in chroot under pri. folder
2) /root/Desktop/organised/html/t7v/index.php is not a valid domain.
I fixed the issue by deleting 2 references in the database and all is fixed but reseller may be able to expoit the issue and break out of chroot by creating folders.
Need to include the fix
if (!preg_match("/^([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $domain_here)) $error = "Please enter a valid domain name";
when specifying a domain named for a new site.