How I Got Free Travel on Namma Metro

How I Got Free Travel on Namma Metro

As someone who uses public transportation regularly, I rely on it to get me where I need to go quickly and efficiently. That’s why I was surprised to learn that I could travel for free on Namma Metro due to a critical bug that I discovered.

Namma Metro In November 2022 started QR based ticket system. The QR code ticketing system was introduced to offer a more convenient and faster way for passengers to access the metro system. With the QR code ticket, passengers don’t need to wait in long queues to buy physical tickets. Instead, they can simply purchase the QR ticket using the Namma Metro mobile app or through WhatsApp.

While testing the Namma Metro mobile app, I noticed the Purchase QR Ticket Option. Immediately set up my Burpsuite with Android Studio (Rooted AVD with Frida setup). Started capturing the request from the Namma Metro mobile app.

  • Navigated into Purchase QR ticket

  • Entered the Starting and Destination Point

  • Capture the request and I observe that unitFare and totalFare parameter is passing the value of the ticket on the API response body.

  • Then Changed the value to Rs.1 and Forwarded the request

  • The manipulated fare was updated

  • Then redirected to the payment page and made the payment through UPI

  • After the Payment was successful and got the ticket for just Rs.1

As a security researcher, I knew that this was a critical bug that needed to be reported immediately. I reached out to the Namma Metro team and provided them with all the details of the bug and how it could be exploited. They responded quickly and thanked me for bringing the issue to their attention.

Upon further investigation, the Namma Metro team discovered that the bug was caused by a misconfiguration in their payment gateway system. They immediately fixed the issue, and I was impressed with their swift action and dedication to ensuring the safety and security of their passengers.

I am proud to have contributed to making Namma Metro a safer and more secure system for all its passengers.

Did you find this article valuable?

Support Lohith Gowda M by becoming a sponsor. Any amount is appreciated!