WordPress.org

Ready to get started?Download WordPress

Forums

StatComm (StatPress Community) Multisite Edition
Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 o (2 posts)

  1. dustinmoorman
    Member
    Posted 1 year ago #

    Hello, I really love this plugin. Thanks for it. I just wanted to point out that these guys are getting crafty and have begun forging the request, and somehow sticking a ,1 after the IP address.

    See http://dustinmoorman.com/?attachment_id=360

    Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /wp-content/plugins/statpress-community-formerly-statcomm/classes/statcommspy.php on line 255

    Not sure if they exposed anything by doing this, or if you can make it handle this gracefully by checking the format of the $_SERVER['REMOTE_ADDR'] before running gethostbyaddr. Perhaps validating that the remote addr is a valid IP with filter_var and FILTER_VALIDATE_IP or a regex would help.

    Just thought I'd point out that they were able to tinker and trigger this :)

    http://wordpress.org/extend/plugins/statpress-community-formerly-statcomm/

  2. WPReady
    Member
    Plugin Author

    Posted 1 year ago #

    Hi dustinmoorman,
    thanks for your comments.

    I thought that was fixed ... :( .
    I will release a small patch this week solving the issue.

    I appreciate your suggestions very much.
    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic