Skip to content

Remove trailing forward slash#4

Open
sdushantha wants to merge 1 commit into
Acceis:masterfrom
sdushantha:master
Open

Remove trailing forward slash#4
sdushantha wants to merge 1 commit into
Acceis:masterfrom
sdushantha:master

Conversation

@sdushantha
Copy link
Copy Markdown

Many users may copy the URL from their web browser which results in the URL containing a trailing forward slash. If this is included in the URL when making the request to the API endpoints the correct data wont be returned.

Before

$ ruby exploit.rb http://example.com/
exploit.rb:71:in `parse_users': undefined method `each' for nil (NoMethodError)

  data.each do |user|
      ^^^^^
        from exploit.rb:85:in `display_users'
        from exploit.rb:135:in `<main>'

After

$ ruby exploit.rb http://example.com/
Users
[649] bob (bob) - bob@example.com - Super Users

<SNIP>

Many users may copy the URL from their web browser which results in the
URL containing a trailing forwardslash. If this is included in the URL when
making the request to the API endpoints the correct data wont be
returned.
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

Successfully merging this pull request may close these issues.

1 participant