In highly doubt that the password information is really transmitted by the server.
Well, assuming that there is in fact such kind of information present:
- Retrieving this kind of information by sniffing the HTTP transferred data when received or sent. The significant information should be a part of the received data and the sent
data.
- Retrieving the password information from the DOM.
I can mention two excellent addons for Firefox to potentially achieve this goal.
Tamper Data: to catch the HTTP data
Firebug: to look up the DOM and HTML
You may face the problem that the password will not be plain text.
This may indicate that the data must be decrypted on the client side by some script. Then, there would be only a shot sequence where the information is genuine. Every further security should now depend the verification process on the server side. Even thou this seems to be the best method to guarantee security, a large part of the process depends on the front end so there it is vulnerable.
Overall it really depends on the real security sequence used for this process.
The best way to grab genuine data is while the client sends the data, assuming there will be no encryption process before the data is sent.
I don't believe that HTML itself provides advanced features to handle such kind of data, just hiding the content.
But I highly assume that the data is processed by a script on the client side to keep the information secret. This would be the best way to compensate the missing security.
Also, the data may be a not the password, but more likely a hash or token.
Here is a simple example for your case:
<!DOCTYPE html>
<html>
<body>
Type the secret code:
<input id="Passwd" name="Passwd" type="password" placeholder="Passwort" class="" value="catchme">
<p>Click the button to return the value of secret code.</p>
<button type="button" onclick="myFunction()">Try it</button>
<script>
function myFunction() {
alert(document.getElementById("Passwd").value);
}
</script>
</body>
</html>
Online: https://jsfiddle.net/naheb7f8/ a XSS warning popup may appear.