CWE-540 · Słabość
Inclusion of Sensitive Information in Source Code
- Abstrakcja
- Bazowa
- Status
- Niekompletny
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
Source code on a web server or repository often contains sensitive information and should generally not be accessible to users.
There are situations where it is critical to remove source code from an area or server. For example, obtaining Perl source code on a system allows an attacker to understand the logic of the script and extract extremely useful information such as code bugs or logins and passwords.
Skutki
Confidentiality
Read Application Data
Zapobieganie
Architecture and Design, System Configuration
Recommendations include removing this script from the web server and moving it to a location not accessible from the Internet.
Przykłady podatności
- CVE-2022-25512 Server for Team Awareness Kit (TAK) application includes sensitive tokens in the JavaScript source code.
- CVE-2022-24867 The LDAP password might be visible in the html code of a rendered page in an IT Asset Management tool.
- CVE-2007-6197 Version numbers and internal hostnames leaked in HTML comments.
Słabość nadrzędna
Słabości podrzędne
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific, Not Technology-Specific, Web Based
Wpis z katalogu CWE 4.20.