Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 551
    • Issues 551
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 42
    • Merge requests 42
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #4455

Closed
Open
Created Jan 19, 2017 by dmk@dmk

Special characters in password hash escaped twice when _ispconfig_pw_crypted == 1

Problem occurs when adding mail user with hashed password (and I believe ftp user too) through remote client. When password hash includes special character (i.e. backslash) it is escaped twice.

In function _getSQL (tform_base.inc.php) whole inserted record is escaped:

$record = $this->encode($record, $tab, true);

and then for password with _ispconfig_pw_crypted == 1

$sql_insert_val .= "'".$app->db->quote($record[$key])."', ";

so password field is escaped first time in encode and second time in quote functions.

Assignee
Assign to
Time tracking