Those are your hamsters scent glands and they look quite normal. They spread the scent round the cage by rubbing them around it and they can look wet or greasy especially if you clean the cage too much. Just do spot cleans and do a full or even half clean about once a month or so.
There are pics here
Syrian Scent Glands