Current time: 12-23-2024, 12:08 PM Hello There, Guest! (LoginRegister)


Post Reply 
Error en el panel
Author Message
adriangam Offline
Junior Member
*

Posts: 61
Joined: Jun 2009
Reputation: 0
Post: #1
Error en el panel
Hola,

En la versión 1.0.7 hay un error con la prevención de logins externos, y es el siguiente:

La función check_login de /var/www/ispcp/gui/include/login-functions.php recibe como argumentos $fName = null, $preventExternalLogin = true:

Code:
function check_login($fName = null, $preventExternalLogin = false)

Esto sería correcto si cada llamada a esta función pasase ambos parámetros pero nos encontramos con lo siguiente (sacado de un find):

Code:
./gui/reseller/hosting_plan_delete.php:check_login(__FILE__);
./gui/reseller/password_change.php:check_login(__FILE__);
./gui/reseller/user_edit.php:check_login(__FILE__);
./gui/reseller/hosting_plan.php:check_login(__FILE__);
./gui/reseller/order_settings.php:check_login(__FILE__);
./gui/reseller/orders.php:check_login(__FILE__);
./gui/reseller/ticket_view.php:check_login(__FILE__);
./gui/reseller/domain_edit.php:check_login(__FILE__);
./gui/reseller/orders_update.php:check_login(__FILE__);
./gui/reseller/ip_usage.php:check_login(__FILE__);
./gui/reseller/domain_delete.php:check_login(__FILE__);
./gui/reseller/domain_status_change.php:check_login(__FILE__);
./gui/reseller/user_add1.php:check_login(__FILE__);
./gui/reseller/settings_welcome_mail.php:check_login(__FILE__);
./gui/reseller/alias.php:check_login(__FILE__);
./gui/reseller/alias_delete.php:check_login(__FILE__);
./gui/reseller/orders_detailst.php:check_login(__FILE__);
./gui/reseller/orders_add.php:check_login(__FILE__);
./gui/reseller/ticket_delete.php:check_login(__FILE__);
./gui/reseller/index.php:check_login(__FILE__, $cfg->PREVENT_EXTERNAL_LOGIN_RESELLER);
./gui/reseller/user_add3.php:check_login(__FILE__);
./gui/reseller/settings_layout.php:check_login(__FILE__);
./gui/reseller/change_user_interface.php:check_login(__FILE__);
./gui/reseller/users.php:check_login(__FILE__);
./gui/reseller/hosting_plan_edit.php:check_login(__FILE__);
./gui/reseller/ticket_closed.php:check_login(__FILE__);
./gui/reseller/settings_lostpassword.php:check_login(__FILE__);
./gui/reseller/hosting_plan_add.php:check_login(__FILE__);
./gui/reseller/user_statistics.php:check_login(__FILE__);
./gui/reseller/order_email.php:check_login(__FILE__);
./gui/reseller/personal_change.php:check_login(__FILE__);
./gui/reseller/domain_details.php:check_login(__FILE__);
./gui/reseller/ticket_system.php:check_login(__FILE__);
./gui/reseller/alias_order.php:check_login(__FILE__);
./gui/reseller/circular.php:check_login(__FILE__);
./gui/reseller/language.php:check_login(__FILE__);
./gui/reseller/alias_edit.php:check_login(__FILE__);
./gui/reseller/user_add2.php:check_login(__FILE__);
./gui/reseller/user_add4.php:check_login(__FILE__);

./gui/reseller/domain_statistics.php:check_login(__FILE__);
./gui/reseller/alias_add.php:check_login(__FILE__);
./gui/reseller/ticket_create.php:check_login(__FILE__);
./gui/reseller/orders_delete.php:check_login(__FILE__);
./gui/admin/settings_maintenance_mode.php:check_login(__FILE__);
./gui/admin/hosting_plan_delete.php:check_login(__FILE__);
./gui/admin/password_change.php:check_login(__FILE__);
./gui/admin/ispcp_updates.php:check_login(__FILE__);
./gui/admin/sessions_manage.php:check_login(__FILE__);
./gui/admin/admin_add.php:check_login(__FILE__);
./gui/admin/reseller_edit.php:check_login(__FILE__);
./gui/admin/hosting_plan.php:check_login(__FILE__);
./gui/admin/server_statistic.php:check_login(__FILE__);
./gui/admin/ticket_view.php:check_login(__FILE__);
./gui/admin/admin_edit.php:check_login(__FILE__);
./gui/admin/domain_edit.php:check_login(__FILE__);
./gui/admin/reseller_user_statistics.php:check_login(__FILE__);
./gui/admin/server_statistic_day.php:check_login(__FILE__);
./gui/admin/ip_usage.php:check_login(__FILE__);
./gui/admin/system_info.php:check_login(__FILE__);

./gui/admin/settings_ports.php:check_login(__FILE__);
./gui/admin/domain_status_change.php:check_login(__FILE__);
./gui/admin/user_delete.php:check_login(__FILE__);
./gui/admin/manage_reseller_owners.php:check_login(__FILE__);
./gui/admin/settings_welcome_mail.php:check_login(__FILE__);
./gui/admin/reseller_add.php:check_login(__FILE__);
./gui/admin/rootkit_log.php:check_login(__FILE__);
./gui/admin/settings.php:check_login(__FILE__);
./gui/admin/reseller_statistics.php:check_login(__FILE__);
./gui/admin/ticket_delete.php:check_login(__FILE__);
./gui/admin/index.php:check_login(__FILE__, $cfg->PREVENT_EXTERNAL_LOGIN_ADMIN);
./gui/admin/settings_layout.php:check_login(__FILE__);
./gui/admin/change_user_interface.php:check_login(__FILE__);
./gui/admin/database_update.php:check_login(__FILE__);
./gui/admin/hosting_plan_edit.php:check_login(__FILE__);
./gui/admin/ticket_closed.php:check_login(__FILE__);
./gui/admin/settings_lostpassword.php:check_login(__FILE__);
./gui/admin/settings_server_traffic.php:check_login(__FILE__);
./gui/admin/hosting_plan_add.php:check_login(__FILE__);
./gui/admin/personal_change.php:check_login(__FILE__);

./gui/admin/language_delete.php:check_login(__FILE__);
./gui/admin/domain_details.php:check_login(__FILE__);
./gui/admin/ticket_system.php:check_login(__FILE__);
./gui/admin/circular.php:check_login(__FILE__);
./gui/admin/server_status.php:check_login(__FILE__);
./gui/admin/ispcp_debugger.php:check_login(__FILE__);
./gui/admin/multilanguage.php:check_login(__FILE__);
./gui/admin/language.php:check_login(__FILE__);
./gui/admin/ip_delete.php:check_login(__FILE__);
./gui/admin/manage_reseller_users.php:check_login(__FILE__);
./gui/admin/status_change.php:check_login(__FILE__);
./gui/admin/ip_manage.php:check_login(__FILE__);
./gui/admin/manage_users.php:check_login(__FILE__);
./gui/admin/custom_menus.php:check_login(__FILE__);
./gui/admin/domain_statistics.php:check_login(__FILE__);
./gui/admin/multilanguage_export.php:check_login(__FILE__);
./gui/admin/admin_log.php:check_login(__FILE__);
./gui/admin/migration.php:check_login(__FILE__);
./gui/client/cronjobs_add.php:check_login(__FILE__);
./gui/client/mail_delete.php:check_login(__FILE__);

./gui/client/password_change.php:check_login(__FILE__);
./gui/client/protected_group_add.php:check_login(__FILE__);
./gui/client/mail_catchall_delete.php:check_login(__FILE__);
./gui/client/mail_add.php:check_login(__FILE__);
./gui/client/backup.php:check_login(__FILE__);
./gui/client/webtools.php:check_login(__FILE__);
./gui/client/sql_delete_user.php:check_login(__FILE__);
./gui/client/domains_manage.php:check_login(__FILE__);
./gui/client/mail_edit.php:check_login(__FILE__);
./gui/client/ticket_view.php:check_login(__FILE__);
./gui/client/sql_change_password.php:check_login(__FILE__);
./gui/client/pma_auth.php:check_login(__FILE__);
./gui/client/protected_areas.php:check_login(__FILE__);
./gui/client/protected_user_assign.php:check_login(__FILE__);
./gui/client/ftp_edit.php:check_login(__FILE__);
./gui/client/error_pages.php:check_login(__FILE__);
./gui/client/mail_catchall.php:check_login(__FILE__);
./gui/client/subdomain_edit.php:check_login(__FILE__);
./gui/client/alias_delete.php:check_login(__FILE__);
./gui/client/ftp_accounts.php:check_login(__FILE__);

./gui/client/mail_catchall_add.php:check_login(__FILE__);
./gui/client/ftp_delete.php:check_login(__FILE__);
./gui/client/dns_delete.php:check_login(__FILE__);
./gui/client/ticket_delete.php:check_login(__FILE__);
./gui/client/index.php:check_login(__FILE__, $cfg->PREVENT_EXTERNAL_LOGIN_CLIENT);
./gui/client/cronjobs_edit.php:check_login(__FILE__);
./gui/client/ftp_choose_dir.php:check_login(__FILE__);
./gui/client/change_user_interface.php:check_login(__FILE__);
./gui/client/hosting_plan_update.php:check_login(__FILE__);
./gui/client/protected_areas_remove.php:check_login(__FILE__);
./gui/client/alias_order_delete.php:check_login(__FILE__);
./gui/client/alssub_delete.php:check_login(__FILE__);
./gui/client/mail_autoresponder_edit.php:check_login(__FILE__);
./gui/client/ticket_closed.php:check_login(__FILE__);
./gui/client/subdomain_add.php:check_login(__FILE__);
./gui/client/cronjobs_overview.php:check_login(__FILE__);
./gui/client/protected_user_manage.php:check_login(__FILE__);
./gui/client/ftp_add.php:check_login(__FILE__);
./gui/client/protected_areas_add.php:check_login(__FILE__);
./gui/client/mail_accounts.php:check_login(__FILE__);

./gui/client/mail_autoresponder_enable.php:check_login(__FILE__);
./gui/client/sql_database_delete.php:check_login(__FILE__);
./gui/client/protected_group_delete.php:check_login(__FILE__);
./gui/client/dns_edit.php:check_login(__FILE__);
./gui/client/personal_change.php:check_login(__FILE__);
./gui/client/protected_user_delete.php:check_login(__FILE__);
./gui/client/mail_autoresponder_disable.php:check_login(__FILE__);
./gui/client/sql_user_add.php:check_login(__FILE__);
./gui/client/ticket_system.php:check_login(__FILE__);
./gui/client/error_edit.php:check_login(__FILE__);
./gui/client/protected_user_edit.php:check_login(__FILE__);
./gui/client/sql_manage.php:check_login(__FILE__);
./gui/client/language.php:check_login(__FILE__);
./gui/client/alias_edit.php:check_login(__FILE__);
./gui/client/protected_user_add.php:check_login(__FILE__);
./gui/client/sql_database_add.php:check_login(__FILE__);
./gui/client/protected_areas_delete.php:check_login(__FILE__);
./gui/client/subdomain_delete.php:check_login(__FILE__);
./gui/client/domain_statistics.php:check_login(__FILE__);
./gui/client/alias_add.php:check_login(__FILE__);
./gui/client/ticket_create.php:check_login(__FILE__);

Todas las llamadas a la función sin el segundo parámetro consigue que se ejecute esa función teniendo en cuenta el $preventExternalLogin como true, no teniendo efecto el que en la configuración esté activo o no.

Saludos.
08-09-2011 08:43 PM
Find all posts by this user Quote this message in a reply
jdriank Offline
Junior Member
*

Posts: 26
Joined: Nov 2011
Reputation: 0
Post: #2
RE: Error en el panel
adriangam, has averiguado algo mas acerca del error de la solicitud de pedidos que te "capa" por prevencion de logins externos?? estoy parado en este punto...y creo que es un punto a favor el poder acceder desde el exterior...

Un saludo!!

(08-09-2011 08:43 PM)adriangam Wrote:  Hola,

En la versión 1.0.7 hay un error con la prevención de logins externos, y es el siguiente:

La función check_login de /var/www/ispcp/gui/include/login-functions.php recibe como argumentos $fName = null, $preventExternalLogin = true:

Code:
function check_login($fName = null, $preventExternalLogin = false)

Esto sería correcto si cada llamada a esta función pasase ambos parámetros pero nos encontramos con lo siguiente (sacado de un find):

Code:
./gui/reseller/hosting_plan_delete.php:check_login(__FILE__);
./gui/reseller/password_change.php:check_login(__FILE__);
./gui/reseller/user_edit.php:check_login(__FILE__);
./gui/reseller/hosting_plan.php:check_login(__FILE__);
./gui/reseller/order_settings.php:check_login(__FILE__);
./gui/reseller/orders.php:check_login(__FILE__);
./gui/reseller/ticket_view.php:check_login(__FILE__);
./gui/reseller/domain_edit.php:check_login(__FILE__);
./gui/reseller/orders_update.php:check_login(__FILE__);
./gui/reseller/ip_usage.php:check_login(__FILE__);
./gui/reseller/domain_delete.php:check_login(__FILE__);
./gui/reseller/domain_status_change.php:check_login(__FILE__);
./gui/reseller/user_add1.php:check_login(__FILE__);
./gui/reseller/settings_welcome_mail.php:check_login(__FILE__);
./gui/reseller/alias.php:check_login(__FILE__);
./gui/reseller/alias_delete.php:check_login(__FILE__);
./gui/reseller/orders_detailst.php:check_login(__FILE__);
./gui/reseller/orders_add.php:check_login(__FILE__);
./gui/reseller/ticket_delete.php:check_login(__FILE__);
./gui/reseller/index.php:check_login(__FILE__, $cfg->PREVENT_EXTERNAL_LOGIN_RESELLER);
./gui/reseller/user_add3.php:check_login(__FILE__);
./gui/reseller/settings_layout.php:check_login(__FILE__);
./gui/reseller/change_user_interface.php:check_login(__FILE__);
./gui/reseller/users.php:check_login(__FILE__);
./gui/reseller/hosting_plan_edit.php:check_login(__FILE__);
./gui/reseller/ticket_closed.php:check_login(__FILE__);
./gui/reseller/settings_lostpassword.php:check_login(__FILE__);
./gui/reseller/hosting_plan_add.php:check_login(__FILE__);
./gui/reseller/user_statistics.php:check_login(__FILE__);
./gui/reseller/order_email.php:check_login(__FILE__);
./gui/reseller/personal_change.php:check_login(__FILE__);
./gui/reseller/domain_details.php:check_login(__FILE__);
./gui/reseller/ticket_system.php:check_login(__FILE__);
./gui/reseller/alias_order.php:check_login(__FILE__);
./gui/reseller/circular.php:check_login(__FILE__);
./gui/reseller/language.php:check_login(__FILE__);
./gui/reseller/alias_edit.php:check_login(__FILE__);
./gui/reseller/user_add2.php:check_login(__FILE__);
./gui/reseller/user_add4.php:check_login(__FILE__);

./gui/reseller/domain_statistics.php:check_login(__FILE__);
./gui/reseller/alias_add.php:check_login(__FILE__);
./gui/reseller/ticket_create.php:check_login(__FILE__);
./gui/reseller/orders_delete.php:check_login(__FILE__);
./gui/admin/settings_maintenance_mode.php:check_login(__FILE__);
./gui/admin/hosting_plan_delete.php:check_login(__FILE__);
./gui/admin/password_change.php:check_login(__FILE__);
./gui/admin/ispcp_updates.php:check_login(__FILE__);
./gui/admin/sessions_manage.php:check_login(__FILE__);
./gui/admin/admin_add.php:check_login(__FILE__);
./gui/admin/reseller_edit.php:check_login(__FILE__);
./gui/admin/hosting_plan.php:check_login(__FILE__);
./gui/admin/server_statistic.php:check_login(__FILE__);
./gui/admin/ticket_view.php:check_login(__FILE__);
./gui/admin/admin_edit.php:check_login(__FILE__);
./gui/admin/domain_edit.php:check_login(__FILE__);
./gui/admin/reseller_user_statistics.php:check_login(__FILE__);
./gui/admin/server_statistic_day.php:check_login(__FILE__);
./gui/admin/ip_usage.php:check_login(__FILE__);
./gui/admin/system_info.php:check_login(__FILE__);

./gui/admin/settings_ports.php:check_login(__FILE__);
./gui/admin/domain_status_change.php:check_login(__FILE__);
./gui/admin/user_delete.php:check_login(__FILE__);
./gui/admin/manage_reseller_owners.php:check_login(__FILE__);
./gui/admin/settings_welcome_mail.php:check_login(__FILE__);
./gui/admin/reseller_add.php:check_login(__FILE__);
./gui/admin/rootkit_log.php:check_login(__FILE__);
./gui/admin/settings.php:check_login(__FILE__);
./gui/admin/reseller_statistics.php:check_login(__FILE__);
./gui/admin/ticket_delete.php:check_login(__FILE__);
./gui/admin/index.php:check_login(__FILE__, $cfg->PREVENT_EXTERNAL_LOGIN_ADMIN);
./gui/admin/settings_layout.php:check_login(__FILE__);
./gui/admin/change_user_interface.php:check_login(__FILE__);
./gui/admin/database_update.php:check_login(__FILE__);
./gui/admin/hosting_plan_edit.php:check_login(__FILE__);
./gui/admin/ticket_closed.php:check_login(__FILE__);
./gui/admin/settings_lostpassword.php:check_login(__FILE__);
./gui/admin/settings_server_traffic.php:check_login(__FILE__);
./gui/admin/hosting_plan_add.php:check_login(__FILE__);
./gui/admin/personal_change.php:check_login(__FILE__);

./gui/admin/language_delete.php:check_login(__FILE__);
./gui/admin/domain_details.php:check_login(__FILE__);
./gui/admin/ticket_system.php:check_login(__FILE__);
./gui/admin/circular.php:check_login(__FILE__);
./gui/admin/server_status.php:check_login(__FILE__);
./gui/admin/ispcp_debugger.php:check_login(__FILE__);
./gui/admin/multilanguage.php:check_login(__FILE__);
./gui/admin/language.php:check_login(__FILE__);
./gui/admin/ip_delete.php:check_login(__FILE__);
./gui/admin/manage_reseller_users.php:check_login(__FILE__);
./gui/admin/status_change.php:check_login(__FILE__);
./gui/admin/ip_manage.php:check_login(__FILE__);
./gui/admin/manage_users.php:check_login(__FILE__);
./gui/admin/custom_menus.php:check_login(__FILE__);
./gui/admin/domain_statistics.php:check_login(__FILE__);
./gui/admin/multilanguage_export.php:check_login(__FILE__);
./gui/admin/admin_log.php:check_login(__FILE__);
./gui/admin/migration.php:check_login(__FILE__);
./gui/client/cronjobs_add.php:check_login(__FILE__);
./gui/client/mail_delete.php:check_login(__FILE__);

./gui/client/password_change.php:check_login(__FILE__);
./gui/client/protected_group_add.php:check_login(__FILE__);
./gui/client/mail_catchall_delete.php:check_login(__FILE__);
./gui/client/mail_add.php:check_login(__FILE__);
./gui/client/backup.php:check_login(__FILE__);
./gui/client/webtools.php:check_login(__FILE__);
./gui/client/sql_delete_user.php:check_login(__FILE__);
./gui/client/domains_manage.php:check_login(__FILE__);
./gui/client/mail_edit.php:check_login(__FILE__);
./gui/client/ticket_view.php:check_login(__FILE__);
./gui/client/sql_change_password.php:check_login(__FILE__);
./gui/client/pma_auth.php:check_login(__FILE__);
./gui/client/protected_areas.php:check_login(__FILE__);
./gui/client/protected_user_assign.php:check_login(__FILE__);
./gui/client/ftp_edit.php:check_login(__FILE__);
./gui/client/error_pages.php:check_login(__FILE__);
./gui/client/mail_catchall.php:check_login(__FILE__);
./gui/client/subdomain_edit.php:check_login(__FILE__);
./gui/client/alias_delete.php:check_login(__FILE__);
./gui/client/ftp_accounts.php:check_login(__FILE__);

./gui/client/mail_catchall_add.php:check_login(__FILE__);
./gui/client/ftp_delete.php:check_login(__FILE__);
./gui/client/dns_delete.php:check_login(__FILE__);
./gui/client/ticket_delete.php:check_login(__FILE__);
./gui/client/index.php:check_login(__FILE__, $cfg->PREVENT_EXTERNAL_LOGIN_CLIENT);
./gui/client/cronjobs_edit.php:check_login(__FILE__);
./gui/client/ftp_choose_dir.php:check_login(__FILE__);
./gui/client/change_user_interface.php:check_login(__FILE__);
./gui/client/hosting_plan_update.php:check_login(__FILE__);
./gui/client/protected_areas_remove.php:check_login(__FILE__);
./gui/client/alias_order_delete.php:check_login(__FILE__);
./gui/client/alssub_delete.php:check_login(__FILE__);
./gui/client/mail_autoresponder_edit.php:check_login(__FILE__);
./gui/client/ticket_closed.php:check_login(__FILE__);
./gui/client/subdomain_add.php:check_login(__FILE__);
./gui/client/cronjobs_overview.php:check_login(__FILE__);
./gui/client/protected_user_manage.php:check_login(__FILE__);
./gui/client/ftp_add.php:check_login(__FILE__);
./gui/client/protected_areas_add.php:check_login(__FILE__);
./gui/client/mail_accounts.php:check_login(__FILE__);

./gui/client/mail_autoresponder_enable.php:check_login(__FILE__);
./gui/client/sql_database_delete.php:check_login(__FILE__);
./gui/client/protected_group_delete.php:check_login(__FILE__);
./gui/client/dns_edit.php:check_login(__FILE__);
./gui/client/personal_change.php:check_login(__FILE__);
./gui/client/protected_user_delete.php:check_login(__FILE__);
./gui/client/mail_autoresponder_disable.php:check_login(__FILE__);
./gui/client/sql_user_add.php:check_login(__FILE__);
./gui/client/ticket_system.php:check_login(__FILE__);
./gui/client/error_edit.php:check_login(__FILE__);
./gui/client/protected_user_edit.php:check_login(__FILE__);
./gui/client/sql_manage.php:check_login(__FILE__);
./gui/client/language.php:check_login(__FILE__);
./gui/client/alias_edit.php:check_login(__FILE__);
./gui/client/protected_user_add.php:check_login(__FILE__);
./gui/client/sql_database_add.php:check_login(__FILE__);
./gui/client/protected_areas_delete.php:check_login(__FILE__);
./gui/client/subdomain_delete.php:check_login(__FILE__);
./gui/client/domain_statistics.php:check_login(__FILE__);
./gui/client/alias_add.php:check_login(__FILE__);
./gui/client/ticket_create.php:check_login(__FILE__);

Todas las llamadas a la función sin el segundo parámetro consigue que se ejecute esa función teniendo en cuenta el $preventExternalLogin como true, no teniendo efecto el que en la configuración esté activo o no.

Saludos.
01-05-2012 10:47 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)