Skip to content
David Cumps

Tjoek Tjoek

  • Infrabel
  • 2014

Tjoek Tjoek was a penetration test I ran between December 2013 and March 2014 for Infrabel on TrainInfo, the iPhone app NMBS sold train tickets through, with a follow-up to close what I found and teach Infrabel’s own developers to run such checks themselves.

Reading the app’s own traffic. I used Wireshark, Fiddler and Charles to intercept TrainInfo’s traffic to NMBS’s ticketing backend and to Ogone, the payment provider it charged cards through, and found weaknesses in how the app talked to both. The app called the ticketing backend’s SOAP services with one shared set of credentials built into the app, and it built the Ogone payment request on the phone itself, signature and merchant account credentials included. To go further I adapted an open-source C# HTTP proxy into a man-in-the-middle: with self-signed certificates for the NMBS gateways and for Ogone trusted on a test iPhone, it decrypted the app’s SSL traffic and could change a payment request on its way to Ogone, including the amount, and sign it again with a fresh SHA-1 signature so Ogone accepted it.

A proof, not just a report. To show the issues were real rather than theoretical, I built a small web application that could log in, search stations and dates in Dutch and French, and place an order, all outside the official app.

Fixes and coaching. The findings went back to Infrabel, who resolved them; I then coached the team on SSL certificates and on using Wireshark, Fiddler and Charles themselves, so they could run this kind of check on their own apps. In March 2014, when starting a new ticket in the app began to fail, I traced its flow again on both the acceptance and the production environment: one price code lookup now returned an error where it used to return the valid dates, delivery forms and passenger types, which I showed call by call against the traffic I had captured in December.

Technologies: C# 4.5, Nancy, Unity, Wireshark, Fiddler, Charles, SSL, Azure.

Stijn Roosen
A true polyglot programmer, David has a broad knowledge of what matters in today’s software engineering. I worked with him on several architecture projects and have found him to be thorough in his work, but pragmatic when needed. I can highly recommend David as he certainly will add value to your team.
Stijn Roosen, Software Architect, Greenfield Consulting
Koen Metsu
David is a highly motivated developer, ready to bring everything to the table to deliver maintainable quality software. Not only is David quick to understand problems and requirements, he’s very likely to know what the customer wants even before they know it themselves. He’s constantly training himself through deliberate practice, and will share what he learned with the team, improving not only the software but also the team around it. David is a true craftsman and our time as colleagues has been a pleasure. I’d immediately work with him again.
Koen Metsu, Software Engineer, KometSoft
Gert Servranckx
I’m glad to be working together with David. He is a highly skilled software engineer who introduced multiple new ideas to modernize architecture, improve software quality and team follow-up.
Gert Servranckx, .NET Solution Architect, Demareg

You May Also Like