Sensitive Data Exposure

Key Concepts

Importance of Testing Front-End Components

What is Sensitive Data Exposure?

Viewing Source Code

Pasted image 20250924133751.png|500

Example

At first glance, this login form does not look like anything out of the ordinary:
Pasted image 20250924134002.png|500

HTML Source Code with Exposed Credentials

<form action="action_page.php" method="post">
    <div class="container">
        <label for="uname"><b>Username</b></label>
        <input type="text" required>

        <label for="psw"><b>Password</b></label>
        <input type="password" required>

        <!-- TODO: remove test credentials test:test -->

        <button type="submit">Login</button>
    </div>
</form>

Types of Exposed Information

Prevention


Exercise

Target: 94.237.123.178:34263

Check the above login form for exposed passwords. Submit the password as the answer.

Go to your browser and visit http://94.237.123.178:34263/
Pasted image 20250924134002.png|500

Right-click → "View Page Source"

...
</style>
<form action="#" method="post">

    <div class="container">
        <label for="uname"><b>Username</b></label>
        <input type="text" required>

        <label for="psw"><b>Password</b></label>
        <input type="password" required>

        <!-- TODO: remove test credentials admin:HiddenInPlainSight -->

        <button type="submit">Login</button>
    </div>
</form>

</html>

flag: HiddenInPlainSight