Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Refresh command with tokens from single page applications error out with code 7000

Đang mở
#91 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, go
Lĩnh vực
cloud

Hướng nghiên cứu

Start with the refresh-token path used by azurehound -r and inspect the NewRequest function in http.go. Reproduce the AADSTS7000 failure with a single-page-application refresh token, then compare it with the working MSGraph token flow and the linked Microsoft documentation. Done means the reported SPA-token command completes successfully and its output is written to output.json.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

azurehound version v2.1.9

Refresh tokens from single page applications (like the azure portal) error out with error code AADSTS7000.
Command: azurehound -r "<refresh_token>" list --tenant "example.onmicrosoft.com" -o output.json

Tested the same command with a MSgraph refresh token and that did work.

I assume the issue lies in the fact that it needs the origin key in the header of the request.
MS documentation: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#redirect-uris-for-single-page-apps-spas

Perhaps something across the lines of (in the http.go, NewRequest function):
req.Header.Set("Origin", "example.com")

Curious to hear any thoughts.

Ngôn ngữ chính
Go
Star
979
Fork
150
Merge trung bình
1 giờ 45 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SpecterOps/AzureHound

Tất cả issue của SpecterOps/AzureHound

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.