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

🚨 [BUG] - nil thrown in superuser output #489

Open
l50 opened this issue Feb 29, 2024 · 1 comment
Open

🚨 [BUG] - nil thrown in superuser output #489

l50 opened this issue Feb 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@l50
Copy link
Contributor

l50 commented Feb 29, 2024

What happened?

  1. Run this ttp: https://github.com/facebookincubator/ForgeArmory/blob/main/ttps/privilege-escalation/linux/suid-binary-escalation/suid-binary-escalation.yaml

  2. Observe output:

    INFO    RUNNING TTP: suid-binary-escalation
    INFO    ========================================
    INFO    CLEANING UP 0 steps of TTP: "suid-binary-escalation"
    INFO    ----------------------------------------
    INFO    Finished Cleanup Successfully ✅
    ERROR   failed to run command:
         failed to run TTP at /home/jaysong/.ttpforge/repos/forgearmory/ttps/privilege-escalation/suid-binary-escalation/suid- 
    binary-escalation.yaml: <nil>

Any suggestions for fixing this bug?

Ideally this is at most a string interpolation issue. Otherwise, it could be a bug somewhere leading up to the sink (provided output).

Relevant log output

Log output provided in **What happened?**

Details about your environment

Running on latest centos (x86_64)

@l50 l50 added the bug Something isn't working label Feb 29, 2024
@l50
Copy link
Contributor Author

l50 commented Feb 29, 2024

Worth noting: This works without any issues on an arm64 box:

[cloud-user@ip-10-0-2-23 privilege-escalation]$ ttpforge run forgearmory//privilege-escalation/suid-binary-escalation/suid-binary-escalation.yaml --arg low_priv_user=demo_user
INFO    RUNNING TTP: suid-binary-escalation
ERROR   failed to run command:
        failed to run TTP at /home/cloud-user/.ttpforge/repos/forgearmory/ttps/privilege-escalation/suid-binary-escalation/suid-binary-escalation.yaml: TTP requirements not met: must be root (UID 0) to run this TTP

uname -a
Linux ip-10-0-2-23.us-west-2.compute.internal 5.14.0-419.el9.aarch64 #1 SMP PREEMPT_DYNAMIC Wed Feb 7 23:54:30 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant