Developers are inadvertently exposing sensitive credentials, API keys, and passwords by using popular online code formatting tools, according to new research from watchTowr Labs.
The security firm discovered over 80,000 publicly accessible submissions containing thousands of leaked secrets across JSONFormatter and CodeBeautify, impacting organizations in finance, government, healthcare, and cybersecurity sectors.
How Developers Are Exposing Secrets
The vulnerability stems from a seemingly harmless feature on both platforms: the ability to save and share formatted code through shareable links.
While the “SAVE” button is designed for legitimate collaboration, developers frequently paste sensitive data, including credentials, API keys, and configuration files, without realizing that the content becomes permanently searchable and accessible to anyone with the URL.
WatchTowr researchers discovered that both platforms maintain publicly accessible “Recent Links” pages listing all saved submissions with their associated IDs, descriptions, and dates.
This design flaw enabled researchers to systematically extract 80,000+ submissions spanning five years of JSONFormatter history and one year of CodeBeautify content, totaling over 5GB of enriched data.
The researchers identified credentials belonging to organizations across critical sectors, including Active Directory credentials, AWS keys, database passwords, SSH private keys, Docker credentials, and complete Know Your Customer (KYC) data with customer personal information.
One particularly alarming discovery involved production AWS credentials for a Splunk SOAR automation system at a major international stock exchange, potentially compromising incident response capabilities.
A major MSSP accidentally exposed Active Directory credentials for both their organization and their largest client, a U.S. bank, in an onboarding email uploaded to the platforms.
Government agencies, cybersecurity vendors, consulting firms, and financial institutions all contributed to the exposed credential database, demonstrating the widespread nature of this security oversight.
Most concerning, watchTowr confirmed that credentials are actively being harvested and tested by unknown actors. The researchers uploaded canary tokens with a 24-hour expiry.
They detected unauthorized access attempts occurring 48 hours after upload, after the links had theoretically expired, indicating sophisticated attackers are systematically scraping these platforms for valid credentials.
Organizations must establish strict policies prohibiting the use of public code formatting tools for any data containing credentials or sensitive information.
Developers should utilize local formatting tools, private platforms, or repository-based solutions.
Security teams should conduct audits to identify whether their organizations have previously exposed secrets through these services and implement detective controls to prevent future incidents.
WatchTowr coordinated disclosure with international CERTs, including NCSC UK, CISA, and others, before publication, but emphasized that the research did not increase existing exposure that actors are already actively exploiting these platforms.
Find this Story Interesting! Follow us on Google News, LinkedIn and X to Get More Instant Updates