Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP grab issue #27

Open
Mknukn opened this issue Feb 24, 2025 · 1 comment
Open

IP grab issue #27

Mknukn opened this issue Feb 24, 2025 · 1 comment

Comments

@Mknukn
Copy link

Mknukn commented Feb 24, 2025

Description of Bug

Sometimes when requesting data over ifconfig.me, HTML data will be pulled instead of actual text data. This causes an error to throw out since it breaks the validity of the JSON policy that requires whitelisting of the specific IP address (e.g., eventbridge_sns_rce_policy).

What should the expected behavior be

Expected behavior should be to only receive text data which in this case is the IP address.

Additional context

terraform -version
Terraform v1.6.3-dev
on linux_arm64

OS: Kali Linux
Kernel: aarch64 Linux 6.11.2-arm64
Uptime: 3m
Packages: 2872
Shell: zsh 5.9
Resolution: 3024x1698
DE: Xfce
WM: Xfwm4
WM Theme: Kali-Dark-xHiDPI
GTK Theme: Kali-Dark [GTK2]
Icon Theme: Flat-Remix-Blue-Dark
Font: Cantarell 11
Disk: 28G / 77G (38%)
CPU: 2x Apple -
GPU: VMware SVGA II Adapter (Fusion)
RAM: 930MiB / 3917MiB

Relevant screenshots

Image
@Mknukn
Copy link
Author

Mknukn commented Feb 24, 2025

There might be filtering on ifconfig.me side for User-Agent header.

Test case where we pass some Terraform User-Agent
Image

Changing ifconfig.me to ifconfig.me/ip will ensure it grabs the IP address always.

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

No branches or pull requests

1 participant