Project

General

Profile

Bug #8296

status_services.php: AJAX requests via GET can control services without CSRF validation

Added by Jim Pingle almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
01/24/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.x
Affected Architecture:

Description

Using a GET request to status_services.php with a sepcially-crafted URL, services can be controlled by visiting a URL without confirmation. For example:

https://x.x.x.x/status_services.php?ajax=true&service=ntpd&mode=stopservice

Only matters against 2.4.3, since the GET/POST conversion work was only on the 2.4.x line.

Associated revisions

History

#1 Updated by Steve Beaver almost 2 years ago

  • Status changed from New to Feedback
  • Assignee changed from Steve Beaver to Jim Pingle

#2 Updated by Steve Beaver almost 2 years ago

  • % Done changed from 0 to 100

#3 Updated by Jim Pingle almost 2 years ago

  • Status changed from Feedback to Resolved

This looks OK now. It only works via POST and trying to POST without CSRF results in a failure.

#4 Updated by Jim Pingle over 1 year ago

  • Private changed from Yes to No

Also available in: Atom PDF