The Saga from DiabloX’s confession: PH Gov’t Agency’s Security “Registration Form Vulnerability”

Wilson Chua
3 min readOct 23, 2023


Background: The story is loosely based on confessions of hacker known as “DiabloXPhanthom” with regards to his exploits of several Philippines websites. These include the Philippine Statistics Authority (PSA), the Department of Science and Technology (DOST) OneExpert portal, Philippine National Police (PNP) Forensic Group, Clark International Airport, and Technical Education and Skills Development Authority (TESDA)

In a land governed by the principles of public service, a government agency named “InfoGuard” was entrusted with the task of safeguarding sensitive citizen data and providing essential services to the public. Behind the scenes, a dedicated team of IT professionals was working diligently to ensure the agency’s online operations remained both user-friendly and, most importantly, secure.

But little did they know that a real-life case of registration form vulnerabilities would soon become a valuable lesson in the realm of government’s cybersecurity.

The Tale of “John” and His Discovery

One day, a young, idealist and persistent hacker named John came across InfoGuard’s online portal. With a penchant for identifying website weaknesses, he was intrigued by the treasure trove of confidential information that InfoGuard held. John set out to test InfoGuard’s defenses. (Unfortunately, he did not ask permission first, which made his actions, illegal/criminal)

John’s primary target was the registration form of InfoGuard’s online portal. This portal served as the gateway for citizens to access crucial government services. With a crafty plan in mind, he embarked on a mission to exploit any vulnerabilities he could unearth.

Weakness #1: Inadequate Input Validation

John observed that InfoGuard’s registration form did not sufficiently validate user input. Recognizing an opportunity, he entered a string of code that should not have been accepted. The website did not scrutinize the input and allowed John’s code to run. This granted him high level access to sensitive areas of the portal.

Weakness #2: Lax Password Policies

The registration form also lacked strict password policies. John then decided to test this vulnerability by creating an account with a simplistic password. Within moments, he had successfully created his account, poised to access privileged areas.

Weakness #3: Absence of CAPTCHA Challenges

John noticed that InfoGuard’s registration process did not incorporate CAPTCHA challenges to verify that users were genuine. This allowed him to employ automated tools to rapidly create multiple fraudulent accounts. This is called a “Brute Force” attack. It is relentless, and over time, it does yield results.

The Ramifications of Security Neglect

As John delved deeper into InfoGuard’s online portal, he uncovered additional vulnerabilities. Other hackers had already uploaded shell codes. Once he discovered this, it was simply a matter of calling the shell, and he had admin access without need of authentication.

With each new exploit, he gained access to sensitive citizen data, governmental operations, and confidential records. This led to data breaches, fraudulent activities, and a litany of concerns for both InfoGuard and the public it served.

The Valuable Lessons Learned

Thankfully, the story of InfoGuard did have a silver lining. Once the breach was discovered, the agency sprang into action to address these vulnerabilities and bolster the security of its online operations. The agency learned from their costly mistakes. Security budgets became suddenly available.

Lesson 1: Input Validation Is Paramount

InfoGuard learned that thorough input validation is of utmost importance. Rigorous input validation prevents malicious code from being executed and fortifies the agency against malicious actors.

Lesson 2: Reinforce Password Policies

InfoGuard reinforced its password policies, ensuring that users created robust, secure passwords. A strong password serves as a crucial defense against unauthorized access. Plans were afoot to further restrict access via MFA (Multifactor Authentication) and IP address restrictions.

Lesson 3: Implement CAPTCHA and Rate Limiting

To stave off automated attacks, InfoGuard implemented CAPTCHA challenges and rate limiting during the registration process. These measures deterred bots and protected the agency from mass account creation.

Lesson 4: Continuous Monitoring for Large Upload Bandwidth spikes

Monitoring for spikes in Outbound traffic might alert the Security Team to potential data exfiltration (breaches). Particularly, when the weblog entries show that uploaded files were encrypted (file format: *.rar, *.zip, etc).

Final Lesson: InfoGuard Learned from the crisis

InfoGuard’s experience serves as a poignant lesson for government agencies and public institutions worldwide. It underscores the importance of prioritizing cybersecurity, especially in the digital age. By drawing wisdom from this real-life case, governments can ensure the safety of citizens’ data and public services, guarding against hackers like John.