NZ Herald
  • Home
  • Latest news
  • Herald NOW
  • Video
  • New Zealand
  • Sport
  • World
  • Business
  • Entertainment
  • Podcasts
  • Quizzes
  • Opinion
  • Lifestyle
  • Travel
  • Viva
  • Weather

Subscriptions

  • Herald Premium
  • Viva Premium
  • The Listener
  • BusinessDesk

Sections

  • Latest news
  • New Zealand
    • All New Zealand
    • Crime
    • Politics
    • Education
    • Open Justice
    • Scam Update
  • Herald NOW
  • On The Up
  • World
    • All World
    • Australia
    • Asia
    • UK
    • United States
    • Middle East
    • Europe
    • Pacific
  • Business
    • All Business
    • MarketsSharesCurrencyCommoditiesStock TakesCrypto
    • Markets with Madison
    • Media Insider
    • Business analysis
    • Personal financeKiwiSaverInterest ratesTaxInvestment
    • EconomyInflationGDPOfficial cash rateEmployment
    • Small business
    • Business reportsMood of the BoardroomProject AucklandSustainable business and financeCapital markets reportAgribusiness reportInfrastructure reportDynamic business
    • Deloitte Top 200 Awards
    • CompaniesAged CareAgribusinessAirlinesBanking and financeConstructionEnergyFreight and logisticsHealthcareManufacturingMedia and MarketingRetailTelecommunicationsTourism
  • Opinion
    • All Opinion
    • Analysis
    • Editorials
    • Business analysis
    • Premium opinion
    • Letters to the editor
  • Politics
  • Sport
    • All Sport
    • OlympicsParalympics
    • RugbySuper RugbyNPCAll BlacksBlack FernsRugby sevensSchool rugby
    • CricketBlack CapsWhite Ferns
    • Racing
    • NetballSilver Ferns
    • LeagueWarriorsNRL
    • FootballWellington PhoenixAuckland FCAll WhitesFootball FernsEnglish Premier League
    • GolfNZ Open
    • MotorsportFormula 1
    • Boxing
    • UFC
    • BasketballNBABreakersTall BlacksTall Ferns
    • Tennis
    • Cycling
    • Athletics
    • SailingAmerica's CupSailGP
    • Rowing
  • Lifestyle
    • All Lifestyle
    • Viva - Food, fashion & beauty
    • Society Insider
    • Royals
    • Sex & relationships
    • Food & drinkRecipesRecipe collectionsRestaurant reviewsRestaurant bookings
    • Health & wellbeing
    • Fashion & beauty
    • Pets & animals
    • The Selection - Shop the trendsShop fashionShop beautyShop entertainmentShop giftsShop home & living
    • Milford's Investing Place
  • Entertainment
    • All Entertainment
    • TV
    • MoviesMovie reviews
    • MusicMusic reviews
    • BooksBook reviews
    • Culture
    • ReviewsBook reviewsMovie reviewsMusic reviewsRestaurant reviews
  • Travel
    • All Travel
    • News
    • New ZealandNorthlandAucklandWellingtonCanterburyOtago / QueenstownNelson-TasmanBest NZ beaches
    • International travelAustraliaPacific IslandsEuropeUKUSAAfricaAsia
    • Rail holidays
    • Cruise holidays
    • Ski holidays
    • Luxury travel
    • Adventure travel
  • Kāhu Māori news
  • Environment
    • All Environment
    • Our Green Future
  • Talanoa Pacific news
  • Property
    • All Property
    • Property Insider
    • Interest rates tracker
    • Residential property listings
    • Commercial property listings
  • Health
  • Technology
    • All Technology
    • AI
    • Social media
  • Rural
    • All Rural
    • Dairy farming
    • Sheep & beef farming
    • Horticulture
    • Animal health
    • Rural business
    • Rural life
    • Rural technology
    • Opinion
    • Audio & podcasts
  • Weather forecasts
    • All Weather forecasts
    • Kaitaia
    • Whangārei
    • Dargaville
    • Auckland
    • Thames
    • Tauranga
    • Hamilton
    • Whakatāne
    • Rotorua
    • Tokoroa
    • Te Kuiti
    • Taumaranui
    • Taupō
    • Gisborne
    • New Plymouth
    • Napier
    • Hastings
    • Dannevirke
    • Whanganui
    • Palmerston North
    • Levin
    • Paraparaumu
    • Masterton
    • Wellington
    • Motueka
    • Nelson
    • Blenheim
    • Westport
    • Reefton
    • Kaikōura
    • Greymouth
    • Hokitika
    • Christchurch
    • Ashburton
    • Timaru
    • Wānaka
    • Oamaru
    • Queenstown
    • Dunedin
    • Gore
    • Invercargill
  • Meet the journalists
  • Promotions & competitions
  • OneRoof property listings
  • Driven car news

Puzzles & Quizzes

  • Puzzles
    • All Puzzles
    • Sudoku
    • Code Cracker
    • Crosswords
    • Cryptic crossword
    • Wordsearch
  • Quizzes
    • All Quizzes
    • Morning quiz
    • Afternoon quiz
    • Sports quiz

Regions

  • Northland
    • All Northland
    • Far North
    • Kaitaia
    • Kerikeri
    • Kaikohe
    • Bay of Islands
    • Whangarei
    • Dargaville
    • Kaipara
    • Mangawhai
  • Auckland
  • Waikato
    • All Waikato
    • Hamilton
    • Coromandel & Hauraki
    • Matamata & Piako
    • Cambridge
    • Te Awamutu
    • Tokoroa & South Waikato
    • Taupō & Tūrangi
  • Bay of Plenty
    • All Bay of Plenty
    • Katikati
    • Tauranga
    • Mount Maunganui
    • Pāpāmoa
    • Te Puke
    • Whakatāne
  • Rotorua
  • Hawke's Bay
    • All Hawke's Bay
    • Napier
    • Hastings
    • Havelock North
    • Central Hawke's Bay
    • Wairoa
  • Taranaki
    • All Taranaki
    • Stratford
    • New Plymouth
    • Hāwera
  • Manawatū - Whanganui
    • All Manawatū - Whanganui
    • Whanganui
    • Palmerston North
    • Manawatū
    • Tararua
    • Horowhenua
  • Wellington
    • All Wellington
    • Kapiti
    • Wairarapa
    • Upper Hutt
    • Lower Hutt
  • Nelson & Tasman
    • All Nelson & Tasman
    • Motueka
    • Nelson
    • Tasman
  • Marlborough
  • West Coast
  • Canterbury
    • All Canterbury
    • Kaikōura
    • Christchurch
    • Ashburton
    • Timaru
  • Otago
    • All Otago
    • Oamaru
    • Dunedin
    • Balclutha
    • Alexandra
    • Queenstown
    • Wanaka
  • Southland
    • All Southland
    • Invercargill
    • Gore
    • Stewart Island
  • Gisborne

Media

  • Video
    • All Video
    • NZ news video
    • Herald NOW
    • Business news video
    • Politics news video
    • Sport video
    • World news video
    • Lifestyle video
    • Entertainment video
    • Travel video
    • Markets with Madison
    • Kea Kids news
  • Podcasts
    • All Podcasts
    • The Front Page
    • On the Tiles
    • Ask me Anything
    • The Little Things
  • Cartoons
  • Photo galleries
  • Today's Paper - E-editions
  • Photo sales
  • Classifieds

NZME Network

  • Advertise with NZME
  • OneRoof
  • Driven Car Guide
  • BusinessDesk
  • Newstalk ZB
  • Sunlive
  • ZM
  • The Hits
  • Coast
  • Radio Hauraki
  • The Alternative Commentary Collective
  • Gold
  • Flava
  • iHeart Radio
  • Hokonui
  • Radio Wanaka
  • iHeartCountry New Zealand
  • Restaurant Hub
  • NZME Events

SubscribeSign In
Advertisement
Advertise with NZME.
Home / Business

How the Treasury got dorked

Juha Saarinen
By Juha Saarinen
Tech blogger for nzherald.co.nz.·NZ Herald·
29 May, 2019 10:49 PM3 mins to read

Subscribe to listen

Access to Herald Premium articles require a Premium subscription. Subscribe now to listen.
Already a subscriber?  Sign in here

Listening to articles is free for open-access content—explore other articles or learn more about text-to-speech.
‌
Save

    Share this article

    Reminder, this is a Premium article and requires a subscription to read.

National's Simon Bridges has called on Treasury Secretary Gabriel Makhlouf to resign following website bungle.

National's Simon Bridges has called on Treasury Secretary Gabriel Makhlouf to resign following website bungle.

COMMENT by Juha Saarinen

National has owned up to obtaining some Budget 2019 information, which it released early, and it wasn't done unlawfully police say.

Although Treasury doesn't use the term "site misconfiguration", this is what appears to have happened.

The sensitive data on a staging was indexed by the search engine on the Treasury site, which should not have happened.

National staffers, keen to get the inside running on what the Government intends to spend money on, modified queries containing text from last year's budget documents by substituting 2018 with 2019 and struck paydirt.

Advertisement
Advertise with NZME.

This is very similar to a technique called Google Dorking. Few people understand just how much information can be gleaned from "reading the matrix" but it can be heaps.

By observing how sites are coded, the information that they leak in weblinks, and how they're configured, you can ferret out all sorts of information using Google's advanced search operators.

Read more:
• Budget 2019 leak: Did the Nats break the Crimes Act? Lawyer's verdict

Advertisement
Advertise with NZME.

Google finds and indexes just about everything, including sensitive data and unprotected Internet of Things devices and vulnerable computers, if it's allowed to. Eagle-eyed geeks spotted leaked 2019 budget data in Google's cache, suggesting Treasury's site was indexed by outside search engines.

That's how search engines work, and Treasury was lucky not have had more data exposed.

Discover more

Business

Juha Saarinen: Is Uber heading down the road to nowhere?

14 May 05:00 PM
Business

Juha Saarinen: US ban a double punch for Huawei

21 May 04:29 AM
Business

Juha Saarinen: Looking at the bigger picture with an 8K TV

28 May 05:00 PM
Business

Conspiracy or cock-up? Strong evidence Treasury was not hacked

28 May 11:51 PM

From there, things turn murky though. Techies know how easy it can be to make non-obvious configuration mistakes that have disastrous consequences.

They will point to similar flubs that expose confidential data, and say that exploiting these are tantamount to hacking.

National leader Simon Bridges explaining how they got information about the Wellbeing Budget 2019 from the Treasury website. Photo / Mark Mitchell
National leader Simon Bridges explaining how they got information about the Wellbeing Budget 2019 from the Treasury website. Photo / Mark Mitchell

One of the most popular such hacks involves sites being configured to accept commands to display, modify or even delete information stored in their databases via the URL box in browsers.

Yes, that's how easy it can be to perform malicious actions on servers with little or no prior knowledge required (you just look for the database commands to use via Google when you find a vulnerable site).

Issuing database commands remotely is a very deliberate and malicious action that is different from using a site's search engine as intended to surface information however.

This will be debated for a while to come, including the legal nuances of what National did, with tech lawyer Rick Shera opining that it fell foul of the law, but wasn't worth pursuing.

Advertisement
Advertise with NZME.

I can accept Police not wanting to test s252 un/authorised access, but this still looks like s249 access for a dishonest purpose given the nature of the material and well known confidentiality protocols. Issue then becomes benefit/loss https://t.co/Ovf2Xx0WFl https://t.co/Vi9o9KHjve

— Rick Shera (@lawgeeknz) May 29, 2019

If a more serious vulnerability at Treasury's site had been exploited - for example, one that crashed the server and provided access to the inner sanctum of the department's computer systems - then it would've been a clear-cut case of National staffers wearing hacker hoodies.

As it stands, we're in shades-of-grey land on the matter.

Treasury and other government departments might want to take a look at how their search engines work and test them with unusual queries to get a better idea of what they can unintentionally reveal.

Another baffling factoid is Treasury saying that the "dorker" was able to issue around 2000 very specific search engine queries over 48 hours.

That's a big number of unusual queries over a long period of time, targeting sensitive information that wasn't meant to be disclosed until Budget Day.

How come Treasury staffers didn't notice them before the Budget information leaked out?

Save

    Share this article

    Reminder, this is a Premium article and requires a subscription to read.

Latest from Business

Premium
Media Insider

Stop the presses: Stuff closing about 15 Auckland, regional community newspapers

03 Jul 06:15 PM
Business

'Time to lead': Airline founder hands over to son after 40 years

03 Jul 06:00 PM
Premium
Media Insider

Ex-TV host Matt Chisholm's bold new career; 'Hugely unpopular' - battle royale brews inside Stuff

03 Jul 05:30 PM

Audi offers a sporty spin on city driving with the A3 Sportback and S3 Sportback

sponsored
Advertisement
Advertise with NZME.

Latest from Business

Premium
Stop the presses: Stuff closing about 15 Auckland, regional community newspapers

Stop the presses: Stuff closing about 15 Auckland, regional community newspapers

03 Jul 06:15 PM

Titles such as the North Shore Times and Central Leader have been published for decades.

'Time to lead': Airline founder hands over to son after 40 years

'Time to lead': Airline founder hands over to son after 40 years

03 Jul 06:00 PM
Premium
Ex-TV host Matt Chisholm's bold new career; 'Hugely unpopular' - battle royale brews inside Stuff

Ex-TV host Matt Chisholm's bold new career; 'Hugely unpopular' - battle royale brews inside Stuff

03 Jul 05:30 PM
Premium
Whānau Ora funds probe: Pasifika Futures’ family ties questioned

Whānau Ora funds probe: Pasifika Futures’ family ties questioned

03 Jul 05:00 PM
Gold demand soars amid global turmoil
sponsored

Gold demand soars amid global turmoil

NZ Herald
  • About NZ Herald
  • Meet the journalists
  • Newsletters
  • Classifieds
  • Help & support
  • Contact us
  • House rules
  • Privacy Policy
  • Terms of use
  • Competition terms & conditions
  • Our use of AI
Subscriber Services
  • NZ Herald e-editions
  • Daily puzzles & quizzes
  • Manage your digital subscription
  • Manage your print subscription
  • Subscribe to the NZ Herald newspaper
  • Subscribe to Herald Premium
  • Gift a subscription
  • Subscriber FAQs
  • Subscription terms & conditions
  • Promotions and subscriber benefits
NZME Network
  • The New Zealand Herald
  • The Northland Age
  • The Northern Advocate
  • Waikato Herald
  • Bay of Plenty Times
  • Rotorua Daily Post
  • Hawke's Bay Today
  • Whanganui Chronicle
  • Viva
  • NZ Listener
  • Newstalk ZB
  • BusinessDesk
  • OneRoof
  • Driven Car Guide
  • iHeart Radio
  • Restaurant Hub
NZME
  • About NZME
  • NZME careers
  • Advertise with NZME
  • Digital self-service advertising
  • Book your classified ad
  • Photo sales
  • NZME Events
  • © Copyright 2025 NZME Publishing Limited
TOP