8000 First fix for the XSSRays by jcrew99 · Pull Request #1984 · beefproject/beef · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

First fix for the XSSRays #1984

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

Merged
merged 2 commits into from
Sep 14, 2020
Merged

Conversation

jcrew99
Copy link
Collaborator
@jcrew99 jcrew99 commented Aug 3, 2020

Pull Request

Thanks for submitting a PR! Please fill in this template where appropriate:

Category

e.g. Bug

Feature/Issue Description

Q: Please give a brief summary of your feature/fix
A: related to #1983, when running XSSRays it fails in a catch for an internal server error. This is due to Ruby trickery that my simple fix resolves. There is likely to be more errors related to this that ill chase down later, however this one resolves this part of it and the specific ticket.

Q: Give a technical rundown of what you have changed (if applicable)
A: A fun fact about using the where function is that it returns ActiveRecord::Relation which basically acts like an array. Since its using that to find the record we have to go into it similar to how we would go into a hash that contains an array to grab the record. This is done by adding the .first

see the difference here:
image

with the top one, the reference gives the relational error but with the bottom one, it can actually access it.

Test Cases

Q: Describe your test cases, what you have covered and if there are any use cases that still need addressing.
A: Manually testing returns that its running but the results arent returning. Likely to be a similar issue in the code that i will raise a ticket for and run down.

Wiki Page

If you are adding a new feature that is not easily understood without context, please draft a section to be added to the Wiki below.
Nil

@jcrew99 jcrew99 added the XssRays label Aug 3, 2020
@jcrew99 jcrew99 requested a review from bcoles August 3, 2020 04:48
@jcrew99 jcrew99 changed the title added a .first section First fix for the XSSRays Aug 3, 2020
@jcrew99
Copy link
Collaborator Author
jcrew99 commented Sep 14, 2020

hasnt been able to be reviewed, so i will merge it

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

Successfully merging this pull request may close these issues.

1 participant
0