<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mahendra Dhodi on Medium]]></title>
        <description><![CDATA[Stories by Mahendra Dhodi on Medium]]></description>
        <link>https://medium.com/@mahendradhodi?source=rss-1c558a36c795------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*PaTDXrNebnni4shwx9t13g.jpeg</url>
            <title>Stories by Mahendra Dhodi on Medium</title>
            <link>https://medium.com/@mahendradhodi?source=rss-1c558a36c795------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:11:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahendradhodi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An overview of pentesting a Point of Sale device]]></title>
            <link>https://medium.com/@mahendradhodi/an-overview-of-pentesting-a-point-of-sale-device-22ac0616357d?source=rss-1c558a36c795------2</link>
            <guid isPermaLink="false">https://medium.com/p/22ac0616357d</guid>
            <category><![CDATA[pos-pentesting]]></category>
            <category><![CDATA[pos-security-testing]]></category>
            <dc:creator><![CDATA[Mahendra Dhodi]]></dc:creator>
            <pubDate>Sun, 04 Aug 2019 03:09:35 GMT</pubDate>
            <atom:updated>2019-12-11T13:09:33.218Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is POS?</strong></p><p>POS stands for Point of Sale. POS device process the transaction between customer and merchant for any service or product purchase.</p><p>It is the combination of hardware and software where POS application is used to perform all the transactions related operations by communicating backend server and management application is used to manage or configure the POS device including its services.</p><p><strong>How Does POS Transaction Work?</strong></p><figure><img alt="POS Transaction Flow" src="https://cdn-images-1.medium.com/max/674/1*QfiPUSoTAKszAbhPSV_u4g.jpeg" /></figure><p>1. Customers insert the Card into the POS device and enter the PIN.</p><p>2. POS device sends the card details along with the PIN to the ATM Switch server via NAC. NAC validates the identity of the POS device and allows access to appropriate servers during the initial setup.</p><p>3. If the card belongs to same bank, the ATM switch will verify the PIN with the help of the HSM server and send the request to CBS server on successful verification of the PIN. If the PIN is invalid request will go back to POS device to re-enter the PIN.</p><p>4. If the card belongs to different bank, the request will go to NFS server and NFS server will send the request to ATM switch where PIN gets validated with the help of HSM server of the different bank. ATM switch server will send the request to the CBS server on successful validation of the PIN.</p><p>5. CBS (Core banking system) check the sufficient amount in cardholder account. CBS deduct the purchase amount from cardholder account and the same amount is credited to the merchant account.</p><p>6. The CBS server sends the response back to ATM switch and ATM switch sends the response back to POS device with a successful transaction.</p><p>We have understood the transaction workflow in the above section. Now let’s move ahead to the POS device security testing.</p><p>Will cover the POS device security testing into the following phases.</p><p><strong>a.</strong> POS secure configuration review.</p><p><strong>b.</strong> POS application testing.</p><p><strong>c.</strong> POS network penetration testing.</p><p><strong>a.</strong> <strong>POS secure configuration review:</strong></p><p>POS device comes with the default configuration. It’s default configuration settings must be changed before deploying into the production environment. A default configuration includes device access management, encryption methods, FTP service configuration etc.</p><p>Review all the default configuration settings and other parameters to make sure that it has been configured properly while doing secure configuration review of the POS device.</p><p><strong>1. Physical security: </strong>Inspect the surrounding of POS device to make sure that there is no rogue camera and NFC card reader is placed to capture the card details.</p><ul><li><strong>POS skimmer: </strong>POS skimmer is placed over the card swipe mechanism to capture the customer card details from the magnetic stripe. Check the card swipe mechanism of the POS device to make sure that no skimmer has been placed.</li><li><strong>POS device — PIN pad skimmer: </strong>PIN pad skimming / key-logging is used to capture the customer card PIN. An attacker installs the keypad overlay on the POS device that looks like the same as real POS device keypad. Check the keypad of the POS device to make sure that no skimming or key-logging device has been placed.</li></ul><p><strong>2.</strong> <strong>Network connectivity of POS: </strong>The POS network must be segregated and no other user should be able to connect to the same Wi-Fi or LAN Network. Check the network connectivity of the POS device.</p><p><strong>3. Default credentials on Device: </strong>The device is using the default username or password for hardware administration. Check for the default device password which is used to administer the device.</p><p><strong>4. Encryption: </strong>The device can send data on Wifi/LAN channel. Check the encryption setting available on the POS device to make sure that it is enabled and properly configured.</p><p><strong>5. Insecure Data Storage: </strong>The device can store the data on the Memory card or in the device itself. Check for the configuration files whether it is stored in an encrypted format or not.</p><p><strong>6. Cleartext services: </strong>Check for the cleartext services enabled on the device such as FTP service which is used to download the device firmware from the server for the firmware upgrade. Cleartext services should be disabled on the device.</p><p><strong>7. Logs: </strong>Check for the device logs.</p><p><strong>8. Missing Patches: </strong>The missing patches address vulnerabilities which may allow unauthenticated remote code execution, privilege escalation, denial of service, and confidential information disclosure. Check for the latest updates.</p><p><strong>9. Sensitive data exposure without authentication: </strong>POS device has the feature to print reports of the device details and the transaction details containing sensitive information such as firmware version details, payment details, etc. Try to access the device reports feature without authentication.</p><p><strong>10. Device update settings: </strong>Check the device update setting for the latest updates.</p><p><strong>11. The password policy: </strong>Check the password policy applied on the device.</p><p><strong>12. POS device ports: </strong>Check all the peripheral ports (Ethernet, telephone, RS-232- and USB port) to make sure that unused ports must be disabled.</p><p><strong>b.</strong> <strong>Application testing:</strong></p><p>Application testing is an important activity to find out various application-level vulnerabilities. SoftPay application is used in the POS device to carry out all the payment related operations including online-sale, offline-sale, refund etc.</p><p>In this section, will cover various application level and logical vulnerabilities:</p><p><strong>1. Cleartext traffic: </strong>Connect your laptop to the POS network segment and ensure that the laptop IP address and gateway address of the POS device must be the same. You can edit the POS gateway address under the device settings menu and restart the POS device. Check the cleartext traffic by initiating the request from the POS device and capture the traffic using Wireshark on the laptop.</p><p><strong>2.</strong> <strong>Refund of amount: </strong>Try to refund the amount more than the purchase amount.</p><p><strong>3. Privilege escalation: </strong>Application has 3 different privilege levels like Clerk, Manager, and Superuser. Try to access the manager functions/data using clerk account.</p><p><strong>4. Check PIN validation for the transaction: </strong>Try with the invalid PIN for the transaction during product purchase.</p><p><strong>5. Data manipulation: </strong>Try to manipulate the data by intercepting the traffic.</p><p><strong>6. Sensitive Information Disclosure: </strong>POS device generates the transaction receipt on the successful payment of the product/service. Check for any sensitive information such as account number and card details on the generated transaction receipt. The card details should be masked on the generated transaction receipt.</p><p>7. Try the POS transaction without the PIN.</p><p>8. Try to perform the offline sale transaction without or wrong approver code.</p><p><strong>c.</strong> <strong>Vulnerability assessment and penetration testing.</strong></p><p>Vulnerability assessment and penetration testing is the important activity to identify the network level vulnerabilities as POS device connects to the backend server in the segregated environment of the bank for various transaction operations.</p><p>Connect your laptop to the POS network by obtaining IP details of the POS device under the device settings menu and check the network connectivity with the POS device. Perform the full TCP and UDP ports scan on the POS device using Nmap tool to identify the open ports and the Nessus vulnerability scan on the POS device to identify the vulnerabilities on the POS device.</p><p>There are limited services running on the POS device.</p><p><strong>1. Operating system version:</strong> Try to enumerate OS version details and verify for any vulnerabilities.</p><p><strong>2. FTP service:</strong> This service is used to download the updates from the server and upload the device files. Check for the FTP vulnerabilities.</p><p><strong>3. SNMP service:</strong> SNMP service is used to manage the POS device centrally. Check for the SNMP vulnerabilities.</p><p><strong>4. Management portal:</strong> Check for the access to the management portal. Install the POS device management application on the laptop where POS SDK API is used to customize the feature of the POS application. Connect the USB C port to the POS device and other end of the USB port to the laptop and try to access the POS device.</p><p><strong>5. POS application:</strong> Check for the application version vulnerability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22ac0616357d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>