When Palestinian hacker Amjed Qabha found a loophole in the official website of The Pentagon, the headquarters of the United States Department of Defense, he did not exploit it for his own interest. 

Instead, he reported the glitch and was subsequently registered on The Pentagon's "List of Honor" for his feat, Al Arabiya reported on Wednesday.

According to a statement issued by Al-Quds Open University, in which Qabha is enrolled, the Information Technology student had discovered a "Cross-Site Request Forger" (CSRF) flaw that would allow cyber criminals to hack into Pentagon agents' accounts. 

In light of his discovery, Qabha reported the glitch to the Hackerone website - an internet security platform.

Soon after, the U.S. ministry of defense acknowledged the loophole, fixed it, and recognized Qabha by adding his name to its honor list that is dedicated for those who help protect its website from hackers. 

This isn't the first time Qabha helps global institutes protect their websites. 

The Palestinian has already discovered about 48 loopholes in major websites, including Facebook, Google, Master Card and Western Union.

He is what is known as a "white hat," an ethical hacker who looks for gaps to warn corporations and institutes about.

He is now pursuing a career in information security, in hopes of "protecting Palestine from dangers [in that field]," according to the university.

When he's not on the computer, Qabha works as a construction worker to make ends meet.