Skip to content

Commit 19e6343

Browse files
committed
.
1 parent 36bcafe commit 19e6343

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Portswigger & other web theory/Server side/API/GraphQL.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
Burp Extensions: GraphQL Raider
3+
24
GraphQL query should optionally includes the `query` operation type for reading operations or `mutation` for modifying operations and arbitrary query name. Mutations are always require input as an argument, meanwhile in queries it can be used to catch up a specific object instead of a group.
35

46
Fingerprint:
@@ -48,6 +50,19 @@ mutation BatchChangeObj($input1: InputObj!, $input2: InputObj!) {
4850
}
4951
```
5052
Pay attention to how input is provided. Such notation allows you to bruteforce object variables.
53+
54+
#### Language specials
55+
56+
`human(id: "1000")` <- this is called inline object literal. Passing object literals inline is not directly allowed for custom input types (i.e. InputObj above).
57+
58+
Passing variables to fragments:
59+
60+
```
61+
query HeroComparison($first: Int = 3) { <— notice "="
62+
leftComparison: hero(episode: EMPIRE) {
63+
...comparisonFields
64+
}
65+
```
5166
#### Other ways to obtain valid queries
5267

5368
Inspect JavaScript files (even the minified ones!) to find any valid GraphQL queries
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Burp Extension: WSDLer
2+
#### A simple SOAP message contains:
3+
4+
- **Envelope:** Identifies the XML documents, has a name space and encoding details.
5+
- **Header:** Has header information like content type and character set etc.
6+
- **Body:** Contains the request and response information.
7+
- **Fault:** Errors and status information.
8+
9+
Each HTTP request can contain a header called `SOAP-Action`, which is used to perform an operation defined in its content. It is another entry point for an attacker.
10+
![](https://blog.securelayer7.net/wp-content/uploads/2020/06/soapaction1.jpg)

0 commit comments

Comments
 (0)