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
  • #642
Closed
Open
Issue created Dec 01, 2015 by Administrator@rootContributor

autologin with redirect and new cookie doesn't work

Created by: lukaszbudnik

Hi,

I cannot get autologin to work with successful HTTP 303 See Other + Set-Cookie respone.

I'm running arachni with these parameters:

--plugin=autologin:url=https://XXXX/login,parameters="username=XXXX&password=XXX&",check=""

When running in debug set to 3 I see that the webapplication authentication works fine.

I start with url https:/XXX. Webapp detects that arachni is not authenticated, adds C1 cookie and redirects arachni to /login page.

Arachni submits C1 cookie together with the autologin POST request:

POST /login HTTP/1.1
...
Cookie: C1=XXXX
....
[!!!] Client: Status: 303
[!!!] Client: URL: XXX
[!!!] Client: Headers:
HTTP/1.1 303 See Other
Cache-Control: no-cache, no-store, must-revalidate
Date: Tue, 01 Dec 2015 13:37:02 GMT
Expires: 0
Location: /
Pragma: no-cache
Set-Cookie: C2=XXXX; Path=/; Secure; HTTPOnly
Set-Cookie: C3=XXXX; Path=/; Secure; HTTPOnly
Set-Cookie: C4=XXXX; Path=/; Secure; HTTPOnly

Webapp authenticated the POST, returns 303 and sets additional C2, C3, and C4 cookies.

In the console output I see that AutoLogin plugin set C1, but didn't include C2, C3, and C4 cookies:

 [~] AutoLogin: System paused.
 [+] AutoLogin: Form submitted successfully.
 [~] AutoLogin: Cookies set to:
 [~] AutoLogin:     * "C1" = "XXX"

And I think this is causing my issues. Arachni cannot crawl any more pages as C2, C3, and C4 cookies are not set.

Is this arachni limitation, is there a work around for it?

thanks, Łukasz

Assignee
Assign to
Time tracking