Microsoft has received help discovering a security flaw on its Xbox One game console from an unlikely source: a five-year-old boy.

Five-year-old Kristoffer Von Hassel uncovered a flaw that could allow someone to log into a player's profile without their password, San Diego television station KGTV reported.

Kristoffer Von Hassel: The world's youngest white-hat hacker?

The flaw was discovered after Kristoffer's father found out he had been playing inappropriate video games on the Xbox One. When his dad, Robert Davies, asked him how he accessed the console, Kristoffer showed him the exploit.

Here's how it worked: after typing an incorrect password, the console jumped to a password verification screen. After typing the space keys a few times then hitting enter, Kristoffer was able to access his father's Xbox Live account.