Web


Nmap discovered a Web server on the target port 8080 The running service is WEBrick httpd 1.4.2 (Ruby 2.6.6 (2020-03-31))

┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/peppo]
└─$ curl -I -X OPTIONS http://$IP:8080/
HTTP/1.1 404 Not Found 
Content-Type: text/html; charset=utf-8
Content-Length: 459
X-Request-Id: 8ee1384d-1f25-4745-84b9-4bed2f7678d5
X-Runtime: 0.001006
Server: WEBrick/1.4.2 (Ruby/2.6.6/2020-03-31)
Date: Sat, 29 Mar 2025 20:04:50 GMT
Connection: Keep-Alive
 
 
┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/peppo]
└─$ curl -I http://$IP:8080/        
HTTP/1.1 200 OK 
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: text/html; charset=utf-8
Etag: W/"e642c235c373f6fe42ac653e92b46ea7"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 3b3b29e8-19c3-4072-846e-7b04c45782a8
X-Runtime: 0.014315
Content-Length: 0
Server: WEBrick/1.4.2 (Ruby/2.6.6/2020-03-31)
Date: Sat, 29 Mar 2025 20:04:53 GMT
Connection: Keep-Alive
Set-Cookie: _redmine_session=UHRiUloyZU1zSkdWUXJYSm1FYlViR2VWZVhUaWZRMXFMdDhNNkRmbVpQeDNETFFRS3lkNVE4NUMyTmEyUlNCeis5YS9maGI4UXNqTmlvT3ZGZFNoYmg4UHZSRHlvVkcwaUVWRkdabjZPQkt0S203SkRCWmxPWjdCSS9kTlFHWUdUb1JPcEtUQkVrQUFDc2lJc3VOaHNBM1Z6S29OeWU0eWFRQzZ1aGxKZXVxbEluV2NiZE5BSUNsRmJWT280VDdCLS01aUVqY2VUK3ltblVQQU5wK1VNMkR3PT0%3D--df81d9587fcf9084acda36a25971e5a759acc860; path=/; HttpOnly

Webroot It’s a Redmine instance

Wappalyzer identified technologies involved

Redmine is a free and open source, web-based project management and issue tracking tool. It allows users to manage multiple projects and associated subprojects. It features per project wikis and forums, time tracking, and flexible, role-based access control. It includes a calendar and Gantt charts to aid visual representation of projects and their deadlines. Redmine integrates with various version control systems and includes a repository browser and diff viewer.

Project / Activity


No project

No activity

Registration


Creating a testing account It requires approval

Authentication


However, signing in doesn’t appear possible unless the registration gets approval by administrator N/A

Default Credential


An online resource revealed the default credential for Redmine; admin:admin

Redirected to the password reset page as the password has expired Resetting it to qwer1234

Successfully authenticated as the admin user

Administration


The version is 4.1.1.stable It uses;

  • MiniMagick
  • ImageMagick
  • Ruby on Rails 5.2.4.2
  • SQLite
  • SCM
    • Subversion 1.10.4
    • Mercurial 4.8.2
    • Bazaar 2.8.0
    • Git 2.20.1

Users


The admin user is the sole user

General


Checking the general setting reveals that the web app itself is running on the localhost:3000 socket, and likely proxied through WEBrick httpd

SCM


The repository setting reveals that it might be possible to enable the host filesystem as SCM

Enabling Filesystem

Just did that

Vulnerabilities


┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/peppo]
└─$ searchsploit redmine
------------------------------------------------------------------------------ ---------------------------------
 Exploit Title                                                                |  Path
------------------------------------------------------------------------------ ---------------------------------
Redmine 0.8.6 - Cross-Site Request Forgery (Add Admin)                        | multiple/webapps/10424.txt
Redmine 1.0.1/1.1.1 - 'projects/hg-hellowword/news/' Cross-Site Scripting     | php/webapps/35572.txt
Redmine SCM Repository - Arbitrary Command Execution (Metasploit)             | linux/remote/41695.rb
Redmine SCM Repository 0.9.x/1.0.x - Arbitrary Command Execution (Metasploit) | linux/webapps/16889.rb
------------------------------------------------------------------------------ ---------------------------------
Shellcodes: No Results
Papers: No Results

Searching for vulnerabilities reveal a Metasploit module for arbitrary command execution via SCM repository Not sure if it is applicable to the current context