How to address hopgoblins exposed json and feed for query builder | Community
Skip to main content
Level 2
Nov 18, 2025 11:29 AM UTC
Solved

How to address hopgoblins exposed json and feed for query builder

Greetings,

Our client has asked us to use this tool https://github.com/assetnote/hopgoblin to find and correct possible security issues that are detected in the tools scanner, while i was able to fix some of them, but i have not been able to find a solution for these two

I have tried using the dispatcher filter, but it has not worked

And i have not been able to find out much more about these flags or how to correct them, so any help would be appreciated.

Best Regards and Thanks in advance

Daniel

DanielMa63Accepted solution
Level 2
Nov 21, 2025 10:25 AM UTC

After creating the servlet, locate the sections of your code where those API endpoints are used and replace the calls with the URL for your new servlet.


Hello @giuseppebaglio  our code does not really call those endpoints, it seems to just be a check from hopgoblin

After creating the servlet the flag still persists, maybe i did it wrong

 

Any other idea? Sorry for the trouble

Best Regards

Daniel

5 replies

Level 2
Nov 18, 2025 5:40 PM UTC

To effectively mitigate this alert, direct access to the endpoints /bin/querybuilder.json and /bin/querybuilder.feed should be disabled. Instead, implement a custom servlet that encapsulates query execution logic. This servlet must enforce strict input validation and explicitly define the permissible queries to ensure controlled and secure operations.

Translate
giuseppebaglio
Level 10
Nov 18, 2025 11:40 AM UTC

Hi @danielma63,  

I believe the best solution for addressing this alert is to eliminate direct access to the endpoints /bin/querybuilder.json and /bin/querybuilder.feed. For example, you can encapsulate the query within a servlet that strictly controls valid inputs and determines the queries that can be executed.

Although the dispatcher rules prevent external access, if someone gains access to the instances, these APIs could still be exploited. This is why the tool continues to report them.

Translate
Level 2
Nov 19, 2025 8:46 AM UTC

Hello @giuseppebaglio how do i eliminate direct access to those endpoints, is it simply by creating the servlet?

 

Best regards

Daniel

Translate
giuseppebaglio
Level 10
Nov 19, 2025 8:51 AM UTC

After creating the servlet, locate the sections of your code where those API endpoints are used and replace the calls with the URL for your new servlet.

Translate