Modificar index.html
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m8s
DevSecOps Enterprise Pipeline / security-gate-and-deploy (push) Successful in 1m8s
OWASP ZAP
This commit is contained in:
+10
-13
@@ -46,7 +46,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<section class="max-w-md mx-auto py-10">
|
||||||
|
<div class="bg-red-50 p-6 rounded-xl border border-red-200">
|
||||||
|
<h3 class="text-xl font-bold mb-4 text-red-700">Área Restrita</h3>
|
||||||
|
<form action="/login" method="POST">
|
||||||
|
<input type="text" name="username" placeholder="Utilizador" class="w-full mb-3 p-2 border rounded">
|
||||||
|
<input type="password" name="password" placeholder="Password" class="w-full mb-3 p-2 border rounded">
|
||||||
|
<button type="submit" class="bg-red-600 text-white px-4 py-2 rounded font-bold w-full">Entrar</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
<footer class="bg-gray-900 text-white py-12 px-6 text-center">
|
<footer class="bg-gray-900 text-white py-12 px-6 text-center">
|
||||||
<div class="text-2xl font-black mb-6">NEXUS.</div>
|
<div class="text-2xl font-black mb-6">NEXUS.</div>
|
||||||
<p class="text-gray-400 mb-4">© 2026 Nexus Solutions. Todos os direitos reservados.</p>
|
<p class="text-gray-400 mb-4">© 2026 Nexus Solutions. Todos os direitos reservados.</p>
|
||||||
@@ -56,17 +65,5 @@
|
|||||||
<a href="#">LinkedIn</a>
|
<a href="#">LinkedIn</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script>
|
|
||||||
// Teste SonarQube: Vulnerabilidade Crítica (Code Injection)
|
|
||||||
function processarPagamento(dadosDoUtilizador) {
|
|
||||||
// O uso da função eval() é estritamente proibido pelas regras de segurança,
|
|
||||||
// pois permite que um atacante execute código arbitrário no servidor ou no browser.
|
|
||||||
let resultado = eval(dadosDoUtilizador);
|
|
||||||
return resultado;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Teste SonarQube: Code Smell grave (Variável não utilizada)
|
|
||||||
let variavel_inutil_que_ocupa_memoria = "Isto vai irritar o SonarQube";
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user