Skip to content

Commit

Permalink
add agoo
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed Apr 25, 2022
1 parent 6877e2c commit 1538872
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ graphw00f currently attempts to discover the following GraphQL engines:
* AWS AppSync
* GraphQL Yoga - TypeScript
* Lighthouse - PHP
* Agoo - Ruby

# GraphQL Technologies Defence Matrices
Each fingerprinted technology (e.g. Graphene, Ariadne, ...) has an associated document ([example for graphene](https://github.com/dolevf/graphw00f/blob/main/docs/graphene.md)) which covers the security defence mechanisms the specific technology supports to give a better idea how the implementation may be attacked.
Expand Down
17 changes: 17 additions & 0 deletions docs/agoo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Agoo

# Table of Contents
* [About](#About)
* [Security Features](#Security-Features)

# About
A High Performance HTTP Server for Ruby

# Security Features
Agoo offers the following features:

```
| Field Suggestions | Query Depth Limit | Query Cost Analysis | Automatic Persisted Queries | Introspection | Debug Mode | Batch Requests |
|-------------------|-------------------|---------------------|-----------------------------|--------------------|----------------|-------------------------------|
| Not Available | Not Supported | Not Supported | Not Supported | Enabled by Default | Off by Default | Not Supported (Array-based) |
```
6 changes: 6 additions & 0 deletions graphw00f/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ def get_engines():
'url':'https://github.com/nuwave/lighthouse',
'ref':'https://github.com/dolevf/graphw00f/blob/main/docs/lighthouse.md',
'technology':['PHP']
},
'agoo':{
'name':'Agoo',
'url':'https://github.com/ohler55/agoo',
'ref':'https://github.com/dolevf/graphw00f/blob/main/docs/agoo.md',
'technology':['Ruby']
}
}

Expand Down
14 changes: 14 additions & 0 deletions graphw00f/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def execute(self, url):
return 'lighthouse'
elif self.engine_graphql_yoga():
return 'graphql_yoga'
elif self.engine_agoo():
return 'agoo'
elif self.engine_dgraph():
return 'dgraph'
elif self.engine_graphene():
Expand Down Expand Up @@ -581,3 +583,15 @@ def engine_lighthouse(self):
return True

return False

def engine_agoo(self):
query = '''
query {
zzz
}
'''
response = self.graph_query(self.url, payload=query)
if error_contains(response, 'eval error', part='code'):
return True

return False
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '1.1.0'
VERSION = '1.1.1'

0 comments on commit 1538872

Please sign in to comment.