Skip to content

Latest commit

 

History

History
373 lines (261 loc) · 5.55 KB

headers.md

File metadata and controls

373 lines (261 loc) · 5.55 KB

HTTP Headers

This document describes the HTTP request and response headers observed during reverse engineering of the GdeBenz web client.

The information was collected from browser DevTools and analysis of network traffic generated by the public frontend.


Overview

The application communicates exclusively over HTTPS.

Most requests use:

  • HTTP/2
  • JSON payloads
  • gzip compression
  • standard browser headers

Some requests additionally include runtime authentication tokens.


Common Request Headers

Typical requests contain:

Header Description
Accept Accepted response formats
Accept-Encoding Compression algorithms
Accept-Language Preferred language
Connection Connection preference (HTTP/1.1 only)
DNT Do Not Track flag
Host Target host
Origin Request origin
Referer Page origin
Sec-Fetch-Dest Fetch destination
Sec-Fetch-Mode Fetch mode
Sec-Fetch-Site Fetch source
Sec-GPC Global Privacy Control
User-Agent Browser identification

Example

GET /api/nearby HTTP/2

Accept: */*
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5
DNT: 1
Host: gdebenz.ru
Referer: https://gdebenz.ru/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Sec-GPC: 1

JSON Requests

Requests with JSON bodies additionally include:

Content-Type: application/json

Example:

POST /api/comments

Content-Type: application/json

Runtime Headers

Some authenticated requests include:

X-RT: <runtime-token>

Example:

X-RT: e8c7b6b4f37d...

The value is obtained from:

GET /api/rt

Cookies

Typical requests send browser cookies.

Observed examples:

Cookie:
__ddg1_=...
__ddg8_=...
__ddg9_=...
__ddg10_=...
_ym_uid=...
_ym_d=...
_ym_isad=...
_ym_visorc=...

These cookies are primarily used by DDoS protection and analytics.


Cache Headers

Observed cache-related headers include:

Cache-Control
ETag
If-None-Match

Some API requests instead append a timestamp parameter:

?_=

Example

GET /api/nearby?...&_=1783326272683

Security Headers

Observed response headers:

Header Purpose
Strict-Transport-Security Force HTTPS
Content-Security-Policy Restrict resource loading
Content-Security-Policy-Report-Only CSP testing
X-Frame-Options Prevent clickjacking
X-Content-Type-Options Prevent MIME sniffing
Cross-Origin-Resource-Policy Resource isolation
Referrer-Policy Referrer restrictions
Permissions-Policy Browser feature permissions

Example

Strict-Transport-Security:
max-age=31536000;
includeSubDomains

Compression

Observed response compression:

Content-Encoding: gzip

Modern browsers may advertise support for:

gzip
deflate
br
zstd

Content Types

Observed response types:

Content-Type Usage
application/json REST API
image/png Map tiles
image/webp Images
text/html Main page
application/javascript Frontend bundles
text/css Stylesheets

Response Headers

Frequently observed response headers:

Content-Type
Content-Encoding
Date
Server
Set-Cookie
Strict-Transport-Security
Content-Security-Policy
Permissions-Policy
Referrer-Policy
Cross-Origin-Resource-Policy
X-Frame-Options
X-Content-Type-Options

Server Header

Observed example:

Server: ddos-guard

This indicates requests are processed through DDoS-Guard before reaching the application backend.


Set-Cookie

Observed examples:

Set-Cookie:
__ddg8_=...
Set-Cookie:
__ddg9_=...
Set-Cookie:
__ddg10_=...

These cookies are periodically refreshed.


CORS

Observed requests are generally:

same-origin

Typical fetch metadata:

Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors

Cross-origin API usage was not observed during analysis.


Authentication Headers

No traditional authentication headers were observed.

Not used:

Authorization
Bearer
Basic
Digest

Authentication relies on runtime tokens contained in request headers or JSON payloads instead.


Browser Client Hints

Modern browsers may additionally send:

Sec-CH-UA
Sec-CH-UA-Mobile
Sec-CH-UA-Platform

These headers depend on browser implementation.


Typical GET Request

GET /api/nearby?lat=55.75&lon=37.61&radius_km=20 HTTP/2

Accept: */*
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: ru-RU,ru;q=0.8
Referer: https://gdebenz.ru/
DNT: 1
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Cookie: __ddg1_=...

Typical POST Request

POST /api/comments HTTP/2

Content-Type: application/json
Accept: application/json
X-RT: <runtime-token>

{
    ...
}

Observed Characteristics

The client consistently exhibits the following HTTP characteristics:

  • HTTPS-only communication
  • HTTP/2 transport
  • JSON-based API
  • gzip-compressed responses
  • same-origin requests
  • browser-generated fetch metadata
  • runtime token header (X-RT)
  • anonymous cookie-based client identification
  • CSP-protected responses
  • HSTS enabled
  • DDoS-Guard reverse proxy

Notes

This document describes only headers observed from the public web client.

Additional internal headers may exist between the reverse proxy and backend infrastructure and cannot be determined through client-side reverse engineering alone.