Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

sanitised SQL input #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

sanitised SQL input #1

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 20, 2021

📊 Metadata *

Bounty URL:https://huntr.dev/bounties/2-other-akshayp282/QuizX/

⚙️ Description *

I sanitised input from the course add/edit/delete page

💻 Technical Description *

I used the addslashes builtin addad in PHP 4 to sanitise the cname parameter to the /QUIZ/partials/_handleCourse.php page. This adds an escape () before any quotes which stops any potential SQL injection.

🐛 Proof of Concept (PoC) *

Navigate to /QUIZ/partials/_deletecourse.php and enter ' or ''=='. If you press Delete, all courses will be deleted.

🔥 Proof of Fix (PoF) *

If you repeat as above, you will recieve the Course does not exist error.

👍 User Acceptance Testing (UAT)

N/A

@JamieSlome
Copy link

Hey 👋 @bolshoytoster - we no longer accept vulnerability fixes through GitHub PRs.

I can see that you correctly submitted a patch through our UI. The maintainer has been notified by e-mail and a comment has been left on the original GitHub Issue.

Thanks for your continued work! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants