Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A arachni
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 125
    • Issues 125
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arachni - Web Application Security Scanner Framework
  • arachni
  • Issues
  • #515
Closed
Open
Issue created Nov 07, 2014 by Administrator@rootContributor

How can I make Arachni cope with dual submit buttons?

Created by: sitsofe

When you have forms like the following Arachni will never choose XSS:

<!DOCTYPE html>
<html>
<head>
<title>Arachni double submit test</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<?
if ($_POST['choice'] == "XSS") { 
        echo "<script>" . $_POST['XSS'] . "</script>"; # XSS Time!
} else {
?>
<form action="arachnitest.php" method="post">
<input name="XSS" value="; alert('XSS Time!');">
<input type="submit" name="choice" value="XSS">
<input type="submit" name="choice" value="No XSS">
</form>
<?
}
?>
</body>
</html>

(yeah I know, PHP but it's just for illustration purposes). If the submit element order is switched around then Arachni correctly submits choice=XSS every time.

I have tried to use "Input Values to use to fill in inputs" (--input-value) via the web interface to force the issue but to no avail.

Assignee
Assign to
Time tracking