Skip to content

Add bridge token support (X-Pentesterflow-Token header) - #1

Open
archnexus707 wants to merge 1 commit into
PentesterFlow:mainfrom
archnexus707:main
Open

Add bridge token support (X-Pentesterflow-Token header)#1
archnexus707 wants to merge 1 commit into
PentesterFlow:mainfrom
archnexus707:main

Conversation

@archnexus707

Copy link
Copy Markdown

Problem

The current PentesterFlow CLI's --burp bridge requires an X-Pentesterflow-Token header — the token is printed when the bridge starts, and requests without it return 401 unauthorized. This extension never sends that header, so it cannot authenticate against the current bridge: every call (/ingest, /status, /burp/issues, DELETE /clear) is rejected.

Changes

  • Add a "Token" field to the PentesterFlow tab.
  • Send X-Pentesterflow-Token on all bridge requests (_post_json, _get_json, _delete) via a new _auth_headers() helper.

Tested

With the bridge URL + token set (printed by pentesterflow --burp 9999), "Check Status" returns the bridge status (200), and "PentesterFlow: send request(s)" successfully ingests requests into the bridge (visible in the CLI's captured-request list).

The current PentesterFlow CLI bridge (started with --burp) requires the X-Pentesterflow-Token header; without it every request returns 401 unauthorized. Add a token field to the config tab and send the token on all bridge requests (_post_json, _get_json, _delete).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant