What could the white bump like thing on shaft under my foreskin be?

Cyst. It is most likely a sebaceous cyst but you should have your pcp or a urologist look at it to be sure.