Skip to content
Access control Disclosed report Beginner

Unauthenticated Private Messages DIsclosure via wordpress Rest API

The Sensei LMS plugin lacked proper permission checks on a REST API endpoint, letting unauthenticated users read private questions sent to teachers by brute-forcing numeric IDs.

ghimire_veshraj Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 18 days
  • Paid in 18 days
  • Disclosed after 2 months

Summary by the researcher

Tribute to Late Internet Hero Binit 🫡 ❣️ You were my source of inspiration and motivation. Though we can't see you or meet you, you will always stay alive and smiling in our memories and hearts. May your soul rest in peace.🕊

Sensei LMS <= 4.4.3 - Unauthenticated Private Messages Disclosure via Rest API (CVE-2022-2034)

The plugin does not have proper permissions set in one of its REST endpoint, allowing unauthenticated users to access private messages sent to teachers.

The report

Vulnearble Plugin: Senei LMS

Hi there, Hope you are doing well, So, i noticed that their is an option to contact teacher on Sensei LMS which is meant to private. By default, other user can't see the question I asked to the teacher. But using the /wp-json/wp/v2/sensei-messages/<numericID> where numeric ID can be bruteforced. Those private questions asked to teacher is still visible to any Unauthenticated User.

Screen_Shot_2022-06-03_at_10.08.45_AM.png
Screen_Shot_2022-06-03_at_10.08.45_AM.png From the original on HackerOne

Steps to reproduce: Create any course then as a student, ask question on that course. Now, the message is visible through /wp-json/wp/v2/sensei-messages/<numericID> Sensei LMS lacks authentication in a REST API endpoint, allowing unauthenticated users to discover private questions sent between teacher and student on the site.

Impact

Disclosure of Private Questions to Unauthenticated User.

The original report as published on HackerOne, by ghimire_veshraj. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the REST API endpoint for sensei-messages did not enforce any authentication or capability check, so it returned message content to any requester.

Impact

Private questions sent to teachers could be disclosed to any unauthenticated user who guesses or brute-forces the numeric message ID.

What the attacker needed

Sensei LMS plugin <= 4.4.3; A course with a student question exists; Attacker can guess or brute-force numeric IDs

How it was found

  1. Create a course.
  2. As a student, ask a question on that course.
  3. Access the message through the REST API endpoint using its numeric ID.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A WordPress plugin for online courses had a web address that returned private messages without checking if the person asking was logged in. Anyone who guessed the right number in the address could read messages meant only for teachers and students.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by ghimire_veshraj

View all

2 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.