huntr icon indicating copy to clipboard operation
huntr copied to clipboard

Hacktivity `Filter by language or title` should allow to search in all reports, not only filter visible ones

Open bl4de opened this issue 3 years ago • 1 comments

Hi @huntr Team :)

Hacktivity page is a perfect way to stay up-to-date what's being reported and gives a great insight into details of vulnerabilities reported to particular repository. However, this functionality works only for reports already loaded into the browser via infinity scroll or in results returned by Search for repo

How it works

  • go to https://huntr.dev/bounties/hacktivity page
  • in Filter by language or title field enter RCE
  • you will see there was no reports found and a caption under the input states that scanned 68 reports for rce. only
  • now click Show more. One result will appear (and a caption under the search input will change into scanned 145 reports for rce)
  • again click Show more and you'll see another result pops out, which gives two reports in total found across 213 repositories this time

How it could work

It would be nice to make Filter by language or title works in the same way as Search for repo input and return the list of all reports matching the search criteria.

If both inputs are filled, the logic behind Filter by language or title should still works as a filter for results returned by Search for repo as it works right now.

So there are 3 possible scenarios to cover:

  • search by repo - return all results matching search criteria (as it works now)
  • search by language/title - return all results matching search criteria ( <- new feature )
  • both inputs are filled - return all results matching search criteria for repo AND language/type (which is equal to results visible right now)

bl4de avatar Feb 07 '22 17:02 bl4de

Hey @bl4de! Thanks for opening a ticket! We're delighted to have you on huntr :)) We're absolutely looking to build this; we just hacked it from the front-end in order to ship it quickly... if enough people +1 this ticket we'll build it asap :)

See you around!

psmoros avatar Feb 08 '22 15:02 psmoros