Comments (8)
OK, to further suggest this is a security issue, I am able to use the URL from the block to send a message from a different computer without ever logging into the site or displaying the course. The URL (without domain name) is:
https://xxxx/blocks/messageteacher/message.php?courseid=8&referurl=https%3A%2F%2Fxxxx%2Fcourse%2Fview.php%3Fid%3D8&recipientid=5
from moodle-block_messageteacher.
I've attempted to reproduce this, but cannot. message.php calls require_login(), so any attempts to access the page (either loading the form via AJAX or directly entering the URL) are redirected to the login form.
from moodle-block_messageteacher.
I hate to post this here, but [redacted] gives me the message page without logging in.
from moodle-block_messageteacher.
Got it, thanks. I didn't have guest access enabled while I was testing. I'll look into it.
from moodle-block_messageteacher.
I've just pushed a fix which checks for moodle:site/sendmessage capability. The guest user doesn't have this by default, so this should fix the problem. Please can you test it and confirm for me?
from moodle-block_messageteacher.
Well, it didn't help. I took the time to look at the code and I don't understand why it's not blocking the message form. That should throw an access exception when using guest access, but it's not--at least not visibly.
from moodle-block_messageteacher.
The only reason I can think that it would allow the page to be viewed by guest is if, for some reason, the Guest role has the moodle:site/sendmessage capability enabled.
from moodle-block_messageteacher.
It doesn't. I checked. It was "not set". I changed it to "prohibit" in case that would help, but it didn't help either.
from moodle-block_messageteacher.
Related Issues (20)
- Messages don't always go through to email HOT 4
- Unknown error upgrading block_messageteacher HOT 1
- Order tearchers by name
- Update fetch teacher sql for moodle 2.7 HOT 1
- Block Disappears HOT 1
- No notification sent to teacher HOT 1
- From address shows Noreply HOT 1
- Issues with Moodle 2.9.3 HOT 1
- Error in Console HOT 1
- Bug in Appending Referring URL HOT 1
- 502 Bad Gateway on moodle 3.2 HOT 2
- Internal Server Error HOT 1
- Portuguese language file HOT 1
- Feature request to message a teacher/course admin in a quiz context
- Message MyTeacher block error in Moodle 3.6 HOT 6
- Error in sending message HOT 1
- Messages not being sent HOT 1
- teacher suspended in database enrol
- Add GDPR support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-block_messageteacher.