Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication plugin: username_field contains [] - No credentials sent #5593

Closed
Reality-Labs opened this issue Oct 13, 2014 · 5 comments
Closed

Comments

@Reality-Labs
Copy link

When using the detailed auth plugin I get this error:
Can't login into web application as uername/password

although I am 100% sure that it is right because I logged in using a browser and it logged in

and I think it is because of the "username_field" and "password_field" because mine is set to "data[User][username]" and "data[User][password]" and I think that those brackets are the problem

System Info.:
Python version: 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2]
GTK version: 2.24.10
PyGTK version: 2.24.0
w3af version:
w3af - Web Application Attack and Audit Framework
Version: 1.6.0.5

@Reality-Labs Reality-Labs changed the title The uri parameter of ExtendedUrllib.POST() must be of url.URL type. Can't login into web application as sms3t0034/6512b Oct 13, 2014
@Reality-Labs Reality-Labs changed the title Can't login into web application as sms3t0034/6512b Can't login into web application as uername/password Oct 13, 2014
@andresriancho andresriancho added this to the 1.6.1 - Bug fixing after 1.6 milestone Oct 13, 2014
@andresriancho andresriancho changed the title Can't login into web application as uername/password Can't login into web application as username/password Feb 5, 2015
@andresriancho andresriancho changed the title Can't login into web application as username/password Authentication plugin: username_field contains [] Feb 5, 2015
@andresriancho andresriancho changed the title Authentication plugin: username_field contains [] Authentication plugin: username_field contains [] - No credentials sent Feb 5, 2015
@andresriancho andresriancho self-assigned this Mar 4, 2015
@andresriancho
Copy link
Owner

TODO

  • Create a test script for authentication plugins in django-moth that has a form with user parameter named foo[user]
  • Analyze traffic with wireshark while submitting the form with Chrome and Firefox
  • Add a unittest for the auth.detailed plugin to make sure it works against the test script coded in the first step
  • Analyze traffic with wireshark while submitting the form with w3af
  • Make w3af behave like Chrome/Firefox
  • How does the previous step affect other parts of the framework?

andresriancho added a commit to andresriancho/django-moth that referenced this issue Apr 22, 2015
@andresriancho
Copy link
Owner

Chrome:
screenshot from 2015-04-22 15 49 06

Firefox:
screenshot from 2015-04-22 15 50 36

Both agree in sending the square brackets URL encoded

@andresriancho
Copy link
Owner

w3af isn't encoding the first POST request, but it is doing it for the following:

screenshot from 2015-04-22 15 59 59

screenshot from 2015-04-22 16 00 37

andresriancho added a commit that referenced this issue Apr 22, 2015
andresriancho added a commit that referenced this issue Apr 22, 2015
@Reality-Labs
Copy link
Author

Wow it took you 6 months……………sorry but that's awful (shit) support
On Apr 23, 2015 12:18 AM, "Andres Riancho" notifications@github.com wrote:

Closed #5593 #5593.


Reply to this email directly or view it on GitHub
#5593 (comment).

@andresriancho
Copy link
Owner

hahaha, you think this is microsoft or apple? "awful support" ? You get to complain when:

  • You pay for something
  • You contribute to a project and the project lead doesn't merge your changes

In any other case, you need to be thankful that a software is open source / free.

Welcome to the real world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants