[USER=20288]@m-jay[/USER] I was auditing the code to check for some exploits and there is a major one which is exposing the backend ip address even if cloudflare is used.
Basically avatar image php code is leaking server ip. If attacker hosts image on their server and use that image on torrenttrader as avatar, the ip will be exposed and they will get it into their access logs.
This must be removed
I've replaced it via regular expression to check if link is an image.
Basically avatar image php code is leaking server ip. If attacker hosts image on their server and use that image on torrenttrader as avatar, the ip will be exposed and they will get it into their access logs.
This must be removed
# Validate Image.
$im = @getimagesize( $avatar );
if ( !$im[ 2 ] || !@array_key_exists( $im['mime'], $allowed_types ) )
$message = "The avatar url was determined to be of a invalid nature.";I've replaced it via regular expression to check if link is an image.
