Rule Definition
An attacker can use the autofill password feature to access login-based web site.
Violation Code Sample
// the whole form
<form method="post" action="/form" autocomplete="on">
[…]
</form>
// for a given field
<form method="post" action="/form">
[…]
<div>
<label for="cc">Credit card:</label>
<input type="text" id="cc" name="cc" autocomplete="on">
</div>
</form>
Fixed Code Sample
// the whole form
<form method="post" action="/form" autocomplete="off">
[…]
</form>
// for a given field
<form method="post" action="/form">
[…]
<div>
<label for="cc">Credit card:</label>
<input type="text" id="cc" name="cc" autocomplete="off">
</div>
</form>
Reference
OMG CISQ
OWASP A3 Recommendations
Related Technologies
Technical Criterion
CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.