nxenon / grpc-lab

gRPC / gRPC-Web Pentest Practicing Lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

gRPC / gRPC-Web Pentest Practicing Lab