Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#91 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
azure, go
Área
cloud

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
974
Forks
149
Merge medio
1 h 45 min
PR fusionados (30 d)
1

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SpecterOps/AzureHound

Todos los issues de SpecterOps/AzureHound

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.