$password variable is unavailable in the latest cPanel release

Status
Not open for further replies.

eg321

Registered
Nov 7, 2013
1
0
1
cPanel Access Level
Website Owner
Hi,

It looks like in cPanel 11.40 $password variable is unavailable through API anymore. It's just returned as is.


My logs:
Code:
[07-Nov-2013 14:16:11] (exec) SEND:<cpanelaction>
{"module":"print","reqtype":"exec","func":"","apiversion":"1","args":"$user - $password"}
</cpanelaction>
[07-Nov-2013 14:16:11] (exec) RECV:<?xml version="1.0" ?>
<cpanelresult>{"apiversion":"1","type":"internal","command":"print","source":"internal","data":{"result":"egor1 - $password"},"event":{"result":1}}</cpanelresult>

[07-Nov-2013 14:16:11] JSON_decode: array(6) {
  ["apiversion"]=>
  string(1) "1"
  ["type"]=>
  string(8) "internal"
  ["command"]=>
  string(5) "print"
  ["source"]=>
  string(8) "internal"
  ["data"]=>
  array(1) {
    ["result"]=>
    string(17) "egor1 - $password"
  }
  ["event"]=>
  array(1) {
    ["result"]=>
    int(1)
  }
}
As you can see $user was replaced with my username, but $password not.
Anyone have information about this issue?
 

RuthB.

Registered
Mar 21, 2013
4
0
1
That is correct. As of 11.40, that variable is no longer available; it was removed as a security feature. There are other ways to get where you're going on this, including creating a session on behalf of a cPanel user by a WHM user. Please feel free to contact [email protected] with questions about changes to your process.
 
Status
Not open for further replies.