Skip to content
Business logic Disclosed report Beginner

Manipulation of exam results at Semrush.Academy

The exam submission endpoint accepted a JSON body where the client could set the answer results directly, allowing the researcher to mark answers as correct and obtain a certificate without passing the exam. An attacker could bypass the exam process and receive a certificate.

Roma Ramazanoff Follow

Originally disclosed on HackerOne

  • Triaged in 10 days
  • Fixed in 2 months
  • Paid in 25 days
  • Disclosed after 2 months

Summary by the program

The researcher was able to bypass the exam process. By replacing the exam results with the correct ones, as the body of the request was JSON. After sending the request with the correct results, the researcher received a certificate.

Summary by the researcher

Hi. In this situation, it was possible to bypass the exam process. That is to replace the results of the exam with the correct ones and send a request to get the certificate right away. And to replace the results with the correct ones turned out, because the body of the request was json, where 1 = true, and empty = false.

###Steps To Reproduce:

  1. Finished exams with any answers
  2. Retake exam
  3. Send the last request of our answer

Example body:

{"answers":{"503":"","504":"","505":"1","506":"","507":"","591":"1","592":"","593":"","594":"","595":"","596":"","1340":"1","1341":"","1342":"","1343":"","1344":"","1345":"","1351":"1","1352":"","1353":"","1354":"","1355":"","1356":"","1357":"","1358":"1","1359":"","1360":"","1361":"","1362":"","1363":"","1365":"1"}}

The original report as published on HackerOne, by r0hack. 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 server trusted client-supplied answer correctness values in the JSON request instead of validating answers against a server-side answer key.

Impact

An attacker could bypass the exam and obtain a certificate without passing it.

What the attacker needed

Access to the exam process

How it was found

  1. Finish the exam with any answers.
  2. Retake the exam.
  3. Send the last request containing the answers.

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.

When you take an online exam, your browser sends your answers to the server. Here, the server trusted the browser to say which answers were correct, so someone could change the message to mark answers as correct and get a certificate without really passing. This is like a teacher letting students grade their own test.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Roma Ramazanoff

View all

1 more disclosed report, best first.

More from Semrush

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.