How Disabled Server Identity Verification Exposed a Crypto Platform to MITM Attacks – SAST

як Сервіс: Static Application Security Testing (SAST)
Industry: Crypto Exchange
Region: Switzerland
Background
During a security assessment of the Swiss cryptocurrency exchange, our SAST process revealed a severe misconfiguration in the platform’s backend TLS client settings. The application code disabled server certificate verification by setting in its TLS configuration, effectively disabling TLS server identity checks. This flaw exposed the system to Man-in-the-Middle (MITM) attacks, allowing adversaries to intercept, modify, or redirect encrypted communications without detection. InsecureSkipVerify: true
Серйозність: Критичний
CVSS Score: 9.2 (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H)
Affected Module: TLS Client Configuration
Exploit Complexity: Low
Discovery — Reproducing the MITM Vulnerability
The vulnerability was identified in the backend Golang services responsible for node communications and external API requests. In the code snippet below, the TLS configuration disables certificate verification:
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: tr}
This insecure setting bypasses the crucial verification of the server’s TLS certificate chain, hostname, and revocation status.
Test Flow:
Set up a proxy server with a self-signed certificate to act as a MITM proxy between the backend and external endpoints.
Redirect the application’s traffic through this proxy.
Observe that the application accepts the proxy’s self-signed certificate without error due to disabled verification.
Intercept and modify sensitive data in transit, including node communications and API responses.
Demonstrate potential for credential theft, transaction manipulation, or command injection via the compromised channel.
Technical Root Cause
The root cause is the explicit disabling of server identity verification by setting in the Go TLS configuration. This flag tells the client to skip validation of TLS certificates, allowing any certificate (including self-signed or fraudulent ones) to be trusted. While sometimes used for development or testing, retaining this flag in production is a critical security misconfiguration violating fundamental TLS guarantees of confidentiality and authenticity. The flaw violates standard cryptographic best practices and exposes encrypted communications to interception and tampering. InsecureSkipVerify: true
Real-World Risks
A. Man-in-the-Middle Attacks: Attackers can intercept and modify sensitive communication between the platform and external services.
B. Credential and Key Theft: TLS session interception enables stealing private API keys, user credentials, and sensitive payloads.
C. Transaction Tampering: Alteration of blockchain node requests or financial transactions can cause unauthorized transfers or system instability.
D. Service Disruption: MITM can be used to inject errors, causing denial-of-service or data corruption.
з кібербезпеки
Enable Strict TLS Verification: Always set to in production environments.
InsecureSkipVerify:falseUse Trusted Certificate Authorities: Ensure the system uses up-to-date root CA bundles to validate server certificates properly.
Implement Certificate Pinning: Where applicable, pin known-good certificates or public keys to further harden TLS connections.
Conduct Regular Security Testing: Include MITM testing in the QA process to detect misconfigurations early.
Навчати розробників: Raise awareness about the dangers of disabling TLS verification and proper secure coding practices.
Висновок
This case shows how a seemingly simple configuration flag can completely undermine the security of a cryptographic system. Disabling server certificate verification exposes critical infrastructure to MITM attacks with catastrophic consequences, especially in the financial and cryptographic domains. Rigorous enforcement of TLS best practices and secure coding standards is essential to maintaining trust and integrity in blockchain-related services.
All identifiers, domains, and user data in this case study have been anonymized to preserve client confidentiality.
Інші Послуги
Insomnia Security Scanner
AI-powered web application security scanner by CQR. Automated vulnerability discovery, exploit verification, and detailed reporting for modern applications.
Дізнатися більшеЗахист інфраструктури CRYEYE
Аудит безпеки за допомогою CryEye забезпечує інформаційну безпеку підприємства, захищаючи всю інфраструктуру.
Дізнатися більшеТестування на проникнення
Знайдіть вразливості у всій інфраструктурі вашого бізнесу раніше, ніж це зроблять хакери! У межах консалтингу з тестування на проникнення ми підберемо методи пентестів та інші індивідуальні рекомендації з кібербезпеки для вашого бізнесу.
Дізнатися більшеСоціальна Інженерія
Simulate real-world phishing, vishing, and pretexting attacks to measure and improve your team's security awareness and response capabilities.
Дізнатися більшеТестування Продуктивності
Усі види тестування навантаження і продуктивності вашої системи від компанії CQR, що спеціалізується на онлайн-безпеці.
Дізнатися більшеAI-Powered Vulnerability Assessment
Leverage artificial intelligence to discover, prioritize, and remediate vulnerabilities across your digital assets faster and more accurately than traditional scanners.
Дізнатися більшеCloud Security Audit (AWS / GCP / Azure)
Comprehensive security review of your cloud environments — IAM policies, network controls, data exposure, and misconfigurations across all major cloud platforms.
Дізнатися більшеDevSecOps Integration
Embed security into every stage of your CI/CD pipeline. Automated SAST, DAST, SCA, and secret scanning so vulnerabilities are caught before they reach production.
Дізнатися більшеAPI Security Testing
In-depth testing of REST, GraphQL, and SOAP APIs for authentication flaws, authorization bypasses, injection vulnerabilities, and data leakage risks.
Дізнатися більшеMobile Application Penetration Testing
Manual and automated security testing for iOS and Android applications — reverse engineering, runtime analysis, traffic interception, and backend API assessment.
Дізнатися більшеIoT Security Assessment
Evaluate firmware, communication protocols, cloud backends, and physical interfaces of IoT devices to identify vulnerabilities before attackers do.
Дізнатися більшеBlockchain & Smart Contract Audit
Formal verification and manual code review of smart contracts on Ethereum, Solana, and other chains. Detect reentrancy, overflow, and logic flaws before deployment.
Дізнатися більшеRed Team Operations
Advanced adversary simulation using real attacker TTPs (MITRE ATT&CK) to test your detection, response, and overall security posture under realistic conditions.
Дізнатися більшеThreat Intelligence & Monitoring
Continuous monitoring of threat feeds, dark web, and attacker infrastructure to provide actionable intelligence specific to your organization and industry.
Дізнатися більшеZero Trust Architecture Review
Assess and design your Zero Trust security model — identity verification, micro-segmentation, least-privilege access, and continuous validation controls.
Дізнатися більшеCompliance Consulting (PCI DSS / SOC 2 / GDPR)
Expert guidance to achieve and maintain compliance with major security frameworks. Gap analysis, remediation roadmaps, and audit-readiness support.
Дізнатися більшеDark Web Monitoring
Continuous surveillance of dark web forums, marketplaces, and breach databases for leaked credentials, sensitive data, or mentions of your organization.
Дізнатися більшеPhishing Simulation & Awareness Training
Controlled phishing campaigns combined with interactive security awareness training to build a human firewall across your entire organization.
Дізнатися більшеSupply Chain Security Audit
Assess third-party vendor risks, open-source dependencies, and software supply chain integrity to prevent attacks like SolarWinds and Log4Shell.
Дізнатися більшеContainer & Kubernetes Security
Security review of Docker images, Kubernetes clusters, RBAC policies, network policies, and runtime configurations to harden your container infrastructure.
Дізнатися більшеWeb Application Firewall (WAF) Deployment
Professional WAF setup, rule tuning, and ongoing management to block SQL injection, XSS, CSRF, and other OWASP Top 10 threats in real time.
Дізнатися більшеBug Bounty Program Management
Full lifecycle management of your bug bounty program — scope definition, researcher coordination, triage, validation, and remediation tracking.
Дізнатися більшеOSINT Investigation Services
Open-source intelligence gathering on individuals, organizations, and infrastructure. Ideal for pre-engagement recon, fraud investigation, and competitive analysis.
Дізнатися більшеDigital Forensics & Incident Response
Rapid response to security breaches — evidence collection, malware analysis, attacker timeline reconstruction, and actionable remediation recommendations.
Дізнатися більше