The SQL Issue – Gibraltar Government

The SQL Issue – Gibraltar Government

The great Gibraltar government has been struck by a cyber attack with the end result of being capable of editing overseas territory laws on their website.

exc-5e1828b20edc8649d0a179a2

The great Gibraltar government has been struck by a cyber attack with the end result of being capable of editing overseas territory laws on their website.

This attack was discovered by a security researcher by the name of ‘Ax Sharma’ who spotted the vulnerability whilst looking through the Gibraltar government’s visa rules, accessible from the Gibraltar Borders and Coastguard Agency website. (Found Here)

If correctly exploited, a malicious attacker could have removed or upload files to the official repository of Gibraltar’s laws, alter text on the website and even list staff members’ details.

The attack was conducted whilst the security researcher was browsing for documents and coming across a page which stood out to the rest because of how old the page looks. He simply input a colon (:) into the URL which responded with by only displaying the header of the page with the rest of the contents blank. With this response, the colon itself was still present, just URL encoded (%27). By that alone he was convinced the website was indeed vulnerable. “The website was vulnerable to the easiest kind of SQL Injection: error-based.”

It turns out just below the header of the page there was SQL error text displayed in black below the page header. He discovered this by highlighting the page and the black text appearing in his highlight.

From this point onwards he started enumerating the entire website by listing all PDFs. This was not the only place the site was vulnerable to. The researcher found other areas where the same vulnerability was present. One of which was in a search box which he further exploited using an open source tool called ‘sqlmap’ which listed all databases including staff members and passwords.

This could have easily been avoided using a penetration testing service. Having these exposed pages with poor configurations would have been found in a penetration test.

  • Latest Articles
Author Details
Penetration Tester at Hedgehog Security

Michael is an OSCP qualified Penetration Tester based in our Gibraltar office. Outside of work Michael is a keen power lifter and photographer.

  • Cisco’s recent update fixes high-severity flaws
  • Ukrainian Malware Spreading Exposed on Dark Web

    Malware is known as ‘Blackout’ was found in Ukraine in 2015 affecting power plants and in turn causing blackouts. This specific malware target SSH keys to gain access to the victim’s machine unnoticed.

  • Intel Vulnerability Enables Multiple Issues

    Intel is warning users of a high severity flaw found within their firmware of it’s ‘Converged Security and Management Engine’ (CSME) which is used to power Intel’s ‘Active Management System’ hardware for the purpose of remote out-of-band management to consumers. This flaw could enable an attacker to conduct Privilege Escalation, Information Disclosure and Denial of Service.

  • Dell SupportAssist-ing Hackers

    A recent vulnerability found in Dell’s SupportaAssist software found that if exploited correctly can lead to code execution for unprivileged users. This is known as an uncontrolled search path vulnerability (CVE-2020-5316).

  • Android Bluetooth Critical RCE Flaw

    A recent vulnerability was found by researchers from a German security firm. Fixes are available via the Android February 2020 Security Bulletin. The bug is identified as CVE-2020-002; when exploited can result in remote-code-execution without any user interaction with elevated privileges.

  • WhatsApp? WhatsPatch? WhatsCrack? | WhatsApp Critical Flaw

    A security researcher by the name of Gal Weizman from PerimeterX found multiple flaws within WhatsApp that could potentially lead to remote-code-execution (RCE). The flaws enabled vulnerabilities such as Open-Redirect, Persistent-XSS, CSP-Bypass and read privileges from the Local File System (LFS).

  • Google Exposed Personal Photos

    It has recently been reported that not long ago, last Thanksgiving, Google had a bug which caused personal photos to be shared to complete strangers. ‘The Chocolate Factory’ made note of this issue and began notifying users that there is a bug in Google Photos data-archiving tool, Takeout.

  • Handout the CacheOut

    A recent finding of a microarchitectural Data Sampling (MDS) vulnerability within Intel’s CPU’s found by researchers have now released a Proof-of-Concept (PoC) code. This was not the only recent vulnerability found; however, it is the most severe with a Medium risk vulnerability.

  • Juice Jacking? The New but Old Revolution of Hacking Attacks!

    Juice Jacking is an attack-type that involves plugging your phone into public sockets for “charging purposes”. The truth behind these sockets is the installation of malware on your phones and other electronic devices of unsuspecting users.

  • Mistakes were Made | Intel Privilege Escalation

    Intel is a very large corporation most known for their processors. A recent flaw within Intel’s ‘VTune Profiler’ software could enable anyone to upgrade their privileges if exploited correctly. This software is a performance monitoring & analysis application mainly used for serial and multi threaded application developers.

Share on facebook
Facebook
Share on google
Google+
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest
Scroll to Top