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

Addition of Custom Injection #30

Open
Himself132 opened this issue Jul 24, 2019 · 3 comments
Open

Addition of Custom Injection #30

Himself132 opened this issue Jul 24, 2019 · 3 comments

Comments

@Himself132
Copy link

Wondering how I can add the following custom injection string to the library. I spent some time on it and can't get it to work.

Here is the general approach of true and false condition:

Returns Data
https://FQDN/PATH1/PATH2/?PARAM1=VALUE
https://FQDN/PATH1/PATH2/?PARAM1=VALUE' or true() or ''='o

Does Not Return Data
https://FQDN/PATH1/PATH2/?PARAM1=VALUE' or false() or ''='o

@orf
Copy link
Owner

orf commented Aug 3, 2019

Right now xcat doesn't do or injections unfortunately, which is a shame.

You can add your injections quite easily to this file: https://github.com/orf/xcat/blob/master/xcat/injections.py#L9

i.e:

    Injection('custom',
              "some example",
              (
                  ("{working} or true() or ''='o", True),
                  ("{working} or false() or ''='o", False),
              ),
              "{working} or {expression} or ''='o"),

That being said, your injection should work with and:

https://FQDN/PATH1/PATH2/?PARAM1=VALUE' and true() and not ''='o

@Himself132
Copy link
Author

Thanks I'll give that a shot

@goeo-
Copy link

goeo- commented Aug 2, 2020

Right now xcat doesn't do or injections unfortunately, which is a shame.

why is this the case? i had an injection where i needed to inject ' or and changing all ' ands to ' or with a mitm proxy worked, so i assume no additional logic is necessary

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

No branches or pull requests

3 participants