Bypass validation parts in AWS IAM Authenticator for Kubernetes
该报告还没有中文解读。
原文摘录
摘自原文(8151 字符中的一小部分)
Summary: Whenever the aws-iam-authenticator server gets a POST request to /authenticate it extracts the token and validates it. The token's content is a signed AWS STS request to the GetCallerIdentity endpoint, where the response content is used to map to matching K8s identity (username, groups).
原文中的代码
import base64
import boto3
import re
from botocore.signers import RequestSigner
REGION = 'us-east-1'
CLUSTER_ID = 'gaf-cluster'
def get_bearer_token(url, headers):
STS_TOKEN_EXPIRES_IN = 60
session = boto3.session.Session()
client = session.client('sts', region_name=REGION) …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Kubernetes 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @0ria · 版权归作者与 Kubernetes 所有