Skip to content

Glype Local Address ByPass #3

@MikePfunk28

Description

@MikePfunk28

Modify browse.php

Resolving the hostname using PHP’s gethostbyname before using the regular expression will eliminate this bypass.

$URL['host'] = gethostbyname($URL['host’]);

Protect LAN from access through proxy (protected addresses copied from PHProxy)

if ( preg_match('#^(?:127.|192.168.|10.|172.(?:1[6-9]|2[0-9]|3[01]).|localhost)#i', $URL['host']) ) {
error('banned_site', $URL['host']);
}

https://www.securify.nl/en/advisory/glype-proxy-local-address-filter-bypass/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions