SlideShare une entreprise Scribd logo
1  sur  38
Hack in, Cash out
Hacking and Securing Payment Technologies
Tim Yunusov
Transaction stream fraud
Main question of the payment pentest
Good pentest Bad pentest
Get money from the bank From our own accounts
Decisions, decisions…
4 accounts in 2018
4 accounts in 2019
Card payment processing
Endpoint Acquirer Card brands Issuer’s
Authorisation host
Card
Endpoints
@A1ex_S
@groke1105
@ivachyou
@L_AGalloway
https://www.terminalsimulator.com/
POS+RCE – is the instrument
• EMV/NFC core real implementation
• May contain a lot of bugs
• Real payment process workflow
• Payment packet
• Configurations (limits, etc)
• Offline authentication and risk management
Example of the payment packet
BER encoding
• TLV – Tag Length Value
Example
• AA0105 [hex]
• Tag – AA
• Length – 1 byte
• Value - 05
Example of the payment
packet
https://tvr-decoder.appspot.com
PAN/Track2/Expiry date
Transaction date and time
Amount and currency
Type of the operation (payment, cashback, refund, other)
Type of the cryptogram, cardholder verification method
Attacks
• Refund/reverse attacks
• Chip & PIN attacks
• Card testing
Reverse attacks
Refund attacks
Credit card Debit card
Money movements
Free infinite credit line
Chip & PIN is still broken
• 2005 University of Cambridge, https://murdoch.is/papers/cl05chipandspin.pdf
• 2010 Inverse Path (F-Secure) / Aperture Labs
https://cansecwest.com/csw11/Chip%20&%20Pin%20-%20Barisani%20&%20Bianco.pdf
• Intercept PIN (ICC plaintext PIN verification)
• Make transactions without PIN knowledge (“PIN OK” attack)
• Downgrade to chip&signature
Chip & PIN is still broken
• CVM list – cardholder verification method list
• CVM list is defined on the card
• CVM List provides the terminal with four pieces of information on how an issuer wishes the
cardholder to be verified:
• CVM method (in priority)
• Conditions of use
• What if the CVM method is failed
• Encrypted PIN if supports, then Unencrypted PIN if supports, the signature, than cancel
• https://www.spotterswiki.com/emv/cardsearch.php
• https://tvr-decoder.appspot.com
• Offline data authentication – when POS checks that card and it’s data were genuine: SDA, DDA, CDA
When hackers come
• 2011, France https://eprint.iacr.org/2015/963.pdf
• 40 cards
• PIN-OK additional chip
• 7000 transactions
• 680,000 USD
Chip & PIN is still broken
• 2019, Europe
• PIN interception, “PIN OK” attack, chip&signature downgrading
• Why?
• “Nowadays CVM is signed” (c) Inverse Path - CDA
• Weak CVM Lists: PIN Online if unattended, PIN Offline elsewhere
• Visa cards do not provide Offline Data Authentication
• Card supports (DDA,CDA), terminal supports (DDA,CDA):
• Terminal choose DDA
• Terminal goes online if the offline authentication is failed
Card testing
• Balance testing for stolen cards
• https://www.zdnet.com/article/hackers-abuse-magento-paypal-
integration-to-test-validity-of-stolen-credit-cards/
When hackers come first
• Nov, 2016, 40,000 accounts, 9,000 successfully
Card testing
• 1 Dec 2016, Newcastle University
• https://eprint.ncl.ac.uk/file_store/production/230123/19180242-D02E-47AC-BDB3-73C22D6E1FDB.pdf
• Consecutive enumeration:
• BIN (public DB)
• PAN (online banking registration)
• Expiry Date (refund, recipient of funds)
• CVV (regular payment)
• Postcode for AVS (different error)
Card testing
• 1 Dec 2016, Newcastle University
• https://eprint.ncl.ac.uk/file_store/production/230123/19180242-D02E-47AC-BDB3-73C22D6E1FDB.pdf
• Consecutive enumeration:
• PAN (mobile banking registration)
• Expiry Date (refund, recipient of funds)
• CVV (regular payment)
• Postcode for AVS (different error)
Card testing
• July 2018, Monzo
Rounding
2001
Rounding
• 1 GBP = 1,30 USD
• 0.02 USD => float(0.0153; 2) == 0.02 GBP
• 0.02 GBP => float(0.026; 2) == to 0.03 USD
• Profit = 0.01 USD
Rounding
• 1 GBP = 1,30 USD
• 0.02 USD => float(0.0153; 2) == 0.02 GBP
• 0.02 GBP => float(0.026; 2) == to 0.03 USD
• Profit = 0.01 USD
Rounding
• 1 GBP = 1,30 USD
• 0.02 USD => float(0.0153; 2) == 0.02 GBP
• 0.02 GBP => float(0.026; 2) == to 0.03 USD
• Profit = 0.01 USD
x10,000
• OTP bypass
• Antifraud bypass
• Don’t need to do everything manually
Stat
• Maximum amount per project – $463,843 in 3 days (in live)
• In 2019 – 8/8 banks in Europe were potentially vulnerable to rounding,
one bank has confirmed the vulnerability
How to lose money during payment research
• Startup, which “allows you to spend money from any of your accounts using just one * Card” - *1234
• Connect any of your cards in the mobile app
• When you pay from the card *1234,
money will be withdrawn from the card you’ve chosen and connected (*5678)
• What if we will use Card2Card and send
From *1234 To *5678
• Just a regular transaction for *5678
• We will get a cashback!
How to lose money during payment research
• Send £100
• Money were withdrawn twice!
• Waited 5+ days
• Used 3 different card2card services
• Used 3 different cards, connected in the app
How to lose money during payment research
How to lose money during payment research
https://medium.com/@Tim_Y/how-to-lose-money-during-payment-research-or-in-
searching-for-financial-ombudsman-5047bff89bc2
Who will pay?
• Not all vendors/banks are the same
• Risk-based model doesn’t care “where’s the money”, but “how much money”
Bugbounty company from Google
1. Found vulnerability
2. Reported with lowest CVSS/out of scope
3. Thanks, $$$
4. Now vulnerabilities won’t be used in the
wild
Bank “A”
1. Found vulnerabilitity
2. Reported medium CVSS
3. It’s not been used in the wild
4. Vulnerabilities still can be used
in the wild
https://www.cardpayments.fail
info (at) cardpayments (dot) fail
@a66ot

Contenu connexe

Tendances

Pay Easy Solutions Internationalv2
Pay Easy Solutions Internationalv2Pay Easy Solutions Internationalv2
Pay Easy Solutions Internationalv2
davidlambert1978
 
Pay Easy Solutions International
Pay Easy Solutions InternationalPay Easy Solutions International
Pay Easy Solutions International
jeanieaguilar
 
1609 Fraud Data Science
1609 Fraud Data Science1609 Fraud Data Science
1609 Fraud Data Science
Alejandro Correa Bahnsen, PhD
 

Tendances (19)

HOW TO ESTABLISH YOUR OWN INVESTMENT BANK WITHOUT THE BUREAUCTATIC “RED TAPE”...
HOW TO ESTABLISH YOUR OWN INVESTMENT BANK WITHOUT THE BUREAUCTATIC “RED TAPE”...HOW TO ESTABLISH YOUR OWN INVESTMENT BANK WITHOUT THE BUREAUCTATIC “RED TAPE”...
HOW TO ESTABLISH YOUR OWN INVESTMENT BANK WITHOUT THE BUREAUCTATIC “RED TAPE”...
 
The First Certified Visa Processor Aggregator In Europe
The First Certified Visa Processor Aggregator In EuropeThe First Certified Visa Processor Aggregator In Europe
The First Certified Visa Processor Aggregator In Europe
 
3-D Secure 2.0
3-D Secure 2.03-D Secure 2.0
3-D Secure 2.0
 
Analysis of Spending Pattern on Credit Card Fraud Detection
Analysis of Spending Pattern on Credit Card Fraud DetectionAnalysis of Spending Pattern on Credit Card Fraud Detection
Analysis of Spending Pattern on Credit Card Fraud Detection
 
White Paper: Tokenization, Credit Card Fraud Prevention, Beyond PCI Measures
White Paper: Tokenization, Credit Card Fraud Prevention, Beyond PCI MeasuresWhite Paper: Tokenization, Credit Card Fraud Prevention, Beyond PCI Measures
White Paper: Tokenization, Credit Card Fraud Prevention, Beyond PCI Measures
 
Pay Easy Solutions Internationalv2
Pay Easy Solutions Internationalv2Pay Easy Solutions Internationalv2
Pay Easy Solutions Internationalv2
 
Netpay Presentation
Netpay PresentationNetpay Presentation
Netpay Presentation
 
Bitcard
BitcardBitcard
Bitcard
 
Credit Card Fraud Detection System: A Survey
Credit Card Fraud Detection System: A SurveyCredit Card Fraud Detection System: A Survey
Credit Card Fraud Detection System: A Survey
 
Martijn de Boer, CEO of CDDN. Presentation at Gaming in Holland 2016 #GIH16
Martijn de Boer, CEO of CDDN. Presentation at Gaming in Holland 2016 #GIH16Martijn de Boer, CEO of CDDN. Presentation at Gaming in Holland 2016 #GIH16
Martijn de Boer, CEO of CDDN. Presentation at Gaming in Holland 2016 #GIH16
 
Pay Easy Solutions International
Pay Easy Solutions InternationalPay Easy Solutions International
Pay Easy Solutions International
 
internet banking
internet banking internet banking
internet banking
 
eCommerce Payment Gateways: An Introduction
eCommerce Payment Gateways: An IntroductioneCommerce Payment Gateways: An Introduction
eCommerce Payment Gateways: An Introduction
 
Innovative Payment Solutions
Innovative Payment SolutionsInnovative Payment Solutions
Innovative Payment Solutions
 
1609 Fraud Data Science
1609 Fraud Data Science1609 Fraud Data Science
1609 Fraud Data Science
 
Survey on Credit Card Fraud Detection Using Different Data Mining Techniques
Survey on Credit Card Fraud Detection Using Different Data Mining TechniquesSurvey on Credit Card Fraud Detection Using Different Data Mining Techniques
Survey on Credit Card Fraud Detection Using Different Data Mining Techniques
 
Identity Proofing with OpenID Connect
Identity Proofing with OpenID ConnectIdentity Proofing with OpenID Connect
Identity Proofing with OpenID Connect
 
Debit card
Debit cardDebit card
Debit card
 
E banking security
E banking securityE banking security
E banking security
 

Similaire à Hack in Cash out OWASP London

Chapter 15: GETTING THE MONEY
Chapter 15: GETTING THE MONEY Chapter 15: GETTING THE MONEY
Chapter 15: GETTING THE MONEY
Syeda Tabia
 
The electronic payment systems
The electronic payment systemsThe electronic payment systems
The electronic payment systems
Vishal Singh
 
18 computers and the law
18   computers and the law18   computers and the law
18 computers and the law
Khan Yousafzai
 

Similaire à Hack in Cash out OWASP London (20)

Ec ch5 e payment system
Ec ch5 e payment systemEc ch5 e payment system
Ec ch5 e payment system
 
The Target Breach – Follow The Money
The Target Breach – Follow The MoneyThe Target Breach – Follow The Money
The Target Breach – Follow The Money
 
Chapter 15: GETTING THE MONEY
Chapter 15: GETTING THE MONEY Chapter 15: GETTING THE MONEY
Chapter 15: GETTING THE MONEY
 
Atm’s
Atm’sAtm’s
Atm’s
 
Eps
EpsEps
Eps
 
WEB PAYMENT SYSTEM
WEB PAYMENT SYSTEMWEB PAYMENT SYSTEM
WEB PAYMENT SYSTEM
 
What is A Smart Card
What is A Smart CardWhat is A Smart Card
What is A Smart Card
 
Online Payment Systems in Turkish E-Commerce: Merchant Experiences - 2013-10-...
Online Payment Systems in Turkish E-Commerce: Merchant Experiences - 2013-10-...Online Payment Systems in Turkish E-Commerce: Merchant Experiences - 2013-10-...
Online Payment Systems in Turkish E-Commerce: Merchant Experiences - 2013-10-...
 
Indjic fintech week 5
Indjic fintech week 5Indjic fintech week 5
Indjic fintech week 5
 
Unit 5
Unit 5Unit 5
Unit 5
 
Electronic Payment Fundamentals: When Tech Embracing Payment Industry
Electronic Payment Fundamentals: When Tech Embracing Payment IndustryElectronic Payment Fundamentals: When Tech Embracing Payment Industry
Electronic Payment Fundamentals: When Tech Embracing Payment Industry
 
The electronic payment systems
The electronic payment systemsThe electronic payment systems
The electronic payment systems
 
Payment systems for electronic commerce
Payment systems for electronic commercePayment systems for electronic commerce
Payment systems for electronic commerce
 
Digital Cash
Digital CashDigital Cash
Digital Cash
 
Plastic money and digital cash sept 2012 abbl card info
Plastic money and digital cash sept 2012 abbl card infoPlastic money and digital cash sept 2012 abbl card info
Plastic money and digital cash sept 2012 abbl card info
 
E payment
E paymentE payment
E payment
 
18 computers and the law
18   computers and the law18   computers and the law
18 computers and the law
 
Detecting fraud with Python and machine learning
Detecting fraud with Python and machine learningDetecting fraud with Python and machine learning
Detecting fraud with Python and machine learning
 
ELECTRONIC PAYMENT SYSTEM
ELECTRONIC PAYMENT SYSTEMELECTRONIC PAYMENT SYSTEM
ELECTRONIC PAYMENT SYSTEM
 
Electronic payment system
Electronic payment systemElectronic payment system
Electronic payment system
 

Plus de Payment Village

СМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемы
СМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемыСМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемы
СМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемы
Payment Village
 

Plus de Payment Village (8)

Unlocking Any Door In The 21st Century. Immersion In Biometric Security.
Unlocking Any Door In The 21st Century. Immersion In Biometric Security.Unlocking Any Door In The 21st Century. Immersion In Biometric Security.
Unlocking Any Door In The 21st Century. Immersion In Biometric Security.
 
Offensive Payment Security
Offensive Payment SecurityOffensive Payment Security
Offensive Payment Security
 
The white whales of fraud and where to find them
The white whales of fraud and where to find themThe white whales of fraud and where to find them
The white whales of fraud and where to find them
 
Breaking banks or saving them
Breaking banks or saving themBreaking banks or saving them
Breaking banks or saving them
 
Ради денег. Безопасность платежных терминалов
Ради денег. Безопасность платежных терминаловРади денег. Безопасность платежных терминалов
Ради денег. Безопасность платежных терминалов
 
Launch Impossible Current State of Application Control Bypasses on ATMs.
Launch Impossible Current State of Application Control Bypasses on ATMs.Launch Impossible Current State of Application Control Bypasses on ATMs.
Launch Impossible Current State of Application Control Bypasses on ATMs.
 
How to build Big Brother
How to build Big BrotherHow to build Big Brother
How to build Big Brother
 
СМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемы
СМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемыСМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемы
СМС – «золотой» стандарт двухфакторной аутентификации. Актуальные проблемы
 

Dernier

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Dipal Arora
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 

Dernier (20)

Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
KYC-Verified Accounts: Helping Companies Handle Challenging Regulatory Enviro...
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 

Hack in Cash out OWASP London

  • 1. Hack in, Cash out Hacking and Securing Payment Technologies Tim Yunusov
  • 3. Main question of the payment pentest
  • 5. Get money from the bank From our own accounts
  • 6. Decisions, decisions… 4 accounts in 2018 4 accounts in 2019
  • 7. Card payment processing Endpoint Acquirer Card brands Issuer’s Authorisation host Card
  • 9.
  • 12. POS+RCE – is the instrument • EMV/NFC core real implementation • May contain a lot of bugs • Real payment process workflow • Payment packet • Configurations (limits, etc) • Offline authentication and risk management
  • 13. Example of the payment packet BER encoding • TLV – Tag Length Value Example • AA0105 [hex] • Tag – AA • Length – 1 byte • Value - 05
  • 14. Example of the payment packet https://tvr-decoder.appspot.com PAN/Track2/Expiry date Transaction date and time Amount and currency Type of the operation (payment, cashback, refund, other) Type of the cryptogram, cardholder verification method
  • 15. Attacks • Refund/reverse attacks • Chip & PIN attacks • Card testing
  • 17. Refund attacks Credit card Debit card Money movements Free infinite credit line
  • 18. Chip & PIN is still broken • 2005 University of Cambridge, https://murdoch.is/papers/cl05chipandspin.pdf • 2010 Inverse Path (F-Secure) / Aperture Labs https://cansecwest.com/csw11/Chip%20&%20Pin%20-%20Barisani%20&%20Bianco.pdf • Intercept PIN (ICC plaintext PIN verification) • Make transactions without PIN knowledge (“PIN OK” attack) • Downgrade to chip&signature
  • 19. Chip & PIN is still broken • CVM list – cardholder verification method list • CVM list is defined on the card • CVM List provides the terminal with four pieces of information on how an issuer wishes the cardholder to be verified: • CVM method (in priority) • Conditions of use • What if the CVM method is failed • Encrypted PIN if supports, then Unencrypted PIN if supports, the signature, than cancel • https://www.spotterswiki.com/emv/cardsearch.php • https://tvr-decoder.appspot.com • Offline data authentication – when POS checks that card and it’s data were genuine: SDA, DDA, CDA
  • 20. When hackers come • 2011, France https://eprint.iacr.org/2015/963.pdf • 40 cards • PIN-OK additional chip • 7000 transactions • 680,000 USD
  • 21. Chip & PIN is still broken • 2019, Europe • PIN interception, “PIN OK” attack, chip&signature downgrading • Why? • “Nowadays CVM is signed” (c) Inverse Path - CDA • Weak CVM Lists: PIN Online if unattended, PIN Offline elsewhere • Visa cards do not provide Offline Data Authentication • Card supports (DDA,CDA), terminal supports (DDA,CDA): • Terminal choose DDA • Terminal goes online if the offline authentication is failed
  • 22. Card testing • Balance testing for stolen cards • https://www.zdnet.com/article/hackers-abuse-magento-paypal- integration-to-test-validity-of-stolen-credit-cards/
  • 23. When hackers come first • Nov, 2016, 40,000 accounts, 9,000 successfully
  • 24. Card testing • 1 Dec 2016, Newcastle University • https://eprint.ncl.ac.uk/file_store/production/230123/19180242-D02E-47AC-BDB3-73C22D6E1FDB.pdf • Consecutive enumeration: • BIN (public DB) • PAN (online banking registration) • Expiry Date (refund, recipient of funds) • CVV (regular payment) • Postcode for AVS (different error)
  • 25. Card testing • 1 Dec 2016, Newcastle University • https://eprint.ncl.ac.uk/file_store/production/230123/19180242-D02E-47AC-BDB3-73C22D6E1FDB.pdf • Consecutive enumeration: • PAN (mobile banking registration) • Expiry Date (refund, recipient of funds) • CVV (regular payment) • Postcode for AVS (different error)
  • 26. Card testing • July 2018, Monzo
  • 28. Rounding • 1 GBP = 1,30 USD • 0.02 USD => float(0.0153; 2) == 0.02 GBP • 0.02 GBP => float(0.026; 2) == to 0.03 USD • Profit = 0.01 USD
  • 29. Rounding • 1 GBP = 1,30 USD • 0.02 USD => float(0.0153; 2) == 0.02 GBP • 0.02 GBP => float(0.026; 2) == to 0.03 USD • Profit = 0.01 USD
  • 30. Rounding • 1 GBP = 1,30 USD • 0.02 USD => float(0.0153; 2) == 0.02 GBP • 0.02 GBP => float(0.026; 2) == to 0.03 USD • Profit = 0.01 USD x10,000 • OTP bypass • Antifraud bypass • Don’t need to do everything manually
  • 31. Stat • Maximum amount per project – $463,843 in 3 days (in live) • In 2019 – 8/8 banks in Europe were potentially vulnerable to rounding, one bank has confirmed the vulnerability
  • 32. How to lose money during payment research • Startup, which “allows you to spend money from any of your accounts using just one * Card” - *1234 • Connect any of your cards in the mobile app • When you pay from the card *1234, money will be withdrawn from the card you’ve chosen and connected (*5678) • What if we will use Card2Card and send From *1234 To *5678 • Just a regular transaction for *5678 • We will get a cashback!
  • 33. How to lose money during payment research • Send £100 • Money were withdrawn twice! • Waited 5+ days • Used 3 different card2card services • Used 3 different cards, connected in the app
  • 34. How to lose money during payment research
  • 35. How to lose money during payment research https://medium.com/@Tim_Y/how-to-lose-money-during-payment-research-or-in- searching-for-financial-ombudsman-5047bff89bc2
  • 36.
  • 37. Who will pay? • Not all vendors/banks are the same • Risk-based model doesn’t care “where’s the money”, but “how much money” Bugbounty company from Google 1. Found vulnerability 2. Reported with lowest CVSS/out of scope 3. Thanks, $$$ 4. Now vulnerabilities won’t be used in the wild Bank “A” 1. Found vulnerabilitity 2. Reported medium CVSS 3. It’s not been used in the wild 4. Vulnerabilities still can be used in the wild