Jump to content

Invalid IP response connecting to API using IPv6 address


gohigher

Recommended Posts

I encountered a customer's installation that presented a new one for me.

 

I updated the customer's system from 5.2.7 to 5.2.10 (incrementally, 5.2.8, 5.2.9...) and the API interface no longer authenticated the API user.

 

Aside from the upgrade, nothing else has changed.

 

The error returned by the API interface simply read "Invalid IP" whereas every other time I've encountered this WHMCS' API kindly returns the offending IP address. This time no.

 

I suspect that input filtering is being done on ALL the variables at the moment of initialization now, and that an IPv6 address containing colons `:` is being wiped from the server array. This would explain no IP address being returned back to the client.

 

My workaround is fine for now, simply activating and utilizing an API Access Key to bypass the IP restriction, but thought I'd bring it to everyone's attention and possibly added to the bug list.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated