My IPhone front camera is foggy?

I recently bought an iPhone from someone and I noticed that the front camera is foggy, almost as if water got in it. The camera now takes very blurry and foggy pictures and I was wondering if there was any way to fix it? (I already tried wiping it but it's on the inside.) thanks.

It's really a hard thing and I believe that if you try to fix it, you may damage something. If it's never opened by unauthorised person, then take it to one of the apple's fixing centre. I had one problem and they fixed it for 1 day, and I believe that they will fix it for you too quick.

Leave it in a bag of rice overnight