Skip to content

nxenon/grpc-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-Lab

gRPC and gRPC-Web lab for testing purposes. I made this repo for pentesting gRPC-Web and researching on it.

The Result of Research

See the gRPC-Pentest-Suite Repo. I made 2 tools:

  • grpc-coder.py which makes the manipulating gRPC-Web payloads easy
    • +burp suite extension for using this script easy
  • grpc-scan.py which scans gRPC-Web Javascript Webpacked files for finding messages and endpoints

The Lab

the examples directory in this repo, has these examples:

  • Echo: simple echo app with grpc-web
  • Hello World: simple hello world grpc app
  • Vulnerable XSS Echo: app using grpc-web which is vulnerable to xss ,but it has client protections
  • Vulnerable XSS Multi Parameter Echo: app using grpc-web which is vulnerable to xss ,but it has client protections and uses multiple parameters instead of one
  • XSS Secured: XSS Secured --> the input gets encoded in server
  • Hidden SQLi: gRPC-Web Lab which has 2 hidden SQLi vulnerability.

Protobuf Compiler (protoc)

Read Protoc Readme

Setup gRPC-Web

Read gRPC-Web Readme

Test with .proto file

If you have .proto file read grpcui README

Reference

All Examples are examples in main gRPC-Web Github repo with some specific changes.