Skip to content
Access control Write-up Beginner

Create-Learning-Units-For-Any-Group

The report shows that Facebook's learning unit creation endpoint did not check whether the user had permission to post in a group. An attacker could create and edit learning units in any visible group, even when group post permissions would normally prevent it.

Philippe Harewood Follow

Published on philippeharewood.com

Facebook learning units seem to be a new feature to be used in groups served for educational purposes.

Philippe, on philippeharewood.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is Facebook Groups, and specifically a feature the researcher describes as new: learning units, intended for groups used for educational purposes. The researcher reports that it was possible to create and edit learning units for any visible group, regardless of the current group post permissions.

The request the researcher gives is a POST to the learning unit creation endpoint, carrying the target group's identifier and the unit's name and description:

HTTP
HTTP POST facebook.com
/groups/learning/create/?group_id=349225725474262
unit_name=Reading
unit_description=SomeDescription

The group is selected through the group_id query parameter, while the unit's content is supplied in the body as unit_name and unit_description. The report does not show the response, the session context, or any additional headers.

The stated impact is that anyone could have created Learning Units in a Group. The report does not describe editing in request form, although the researcher says editing was also possible.

The timeline given is:

Date Event
Feb 11, 2018 Report sent
Feb 13, 2018 Further investigation by Facebook
Mar 2, 2018 Fixed by Facebook
Mar 5, 2018 Bounty awarded by Facebook

The report gives no severity rating or CVSS score.

Root cause

The report describes the behaviour but does not state a cause. The request names the group in a client-supplied parameter, and the server appears to act on it without verifying that the caller is permitted to manage content in that group. The phrase "regardless of current group post permissions" suggests the check that gates ordinary posting was either not applied to this newer feature or was applied only in the interface, not on the server.

Impact

The consequence described is creating learning units in any visible group, regardless of current group post permissions. The report does not claim data exposure, privilege escalation beyond this feature, or any specific abuse that occurred; it states only that anyone could have created Learning Units in a Group.

How this kind of bug works

This is a broken access control or missing function-level authorisation issue, sometimes called an insecure direct object reference when the object is named by an identifier the client controls. Web applications commonly render a feature only for users who hold a role, such as group admin or moderator, and hide the relevant controls from everyone else. That hiding is a user interface decision. If the endpoint behind the control does not repeat the authorisation decision, any authenticated user who learns the endpoint and its parameters can invoke it directly.

The pattern is especially common with new or secondary features. A mature action such as posting to a group usually has its permission check in a shared authorisation layer, while a recently shipped feature may have its own handler that was tested with an administrator account and never with an ordinary member. Object identifiers in query strings, path segments or JSON bodies are the usual weak point: the server trusts the identifier and looks up the object, but never asks whether this caller may act on it.

Defences are straightforward in principle: every state-changing handler must resolve the caller's identity from the session, load the target object, and evaluate the caller's permission on that object before acting. Authorisation belongs in server-side middleware or policy code that new endpoints are required to pass through, not in template conditionals. Denying by default and requiring each new route to declare its policy makes omissions visible in review.

How to test for it

  1. Map the feature. Use an account with the lowest privileges that can still see the feature, and record every request the interface makes when an administrator uses it: creation, editing, deletion, reordering, publishing.
  2. Identify the object reference. Note whether the group, unit, page or other container is named by an identifier in the query string, path or body, and whether that identifier is guessable or obtainable from a page you can already view.
  3. Replay with a low-privilege session. Send the same request from an account that is a plain member, or not a member at all, of the target object. Change only the identifier and the session credential.
  4. Compare against the intended control. Confirm that the interface genuinely withholds the action from that account, so that a successful replay is a server-side gap rather than a feature available to all members.
  5. Check the read side too. Fetch the object afterwards, both as the attacker and as an unrelated user, to see whether the injected content is visible and persisted.

A positive result is a state change on an object the caller has no rights over, confirmed by re-reading the object. Common false positives: the action is legitimately open to all members; the account used actually held a role through a group, page or business association; a cached or personalised response made the action appear to succeed when it did not; or a client-side error was mistaken for server acceptance. Always verify persistence with a fresh request.

How it is fixed

Creation and editing should share the same authorisation path. Where possible, the check should live in a central policy layer that new endpoints must use, so that a feature cannot ship without it.

Hunting notes

New and peripheral features are the best places to look: educational units, events, files, polls, pinned resources, fundraising tools, marketplace listings and anything else bolted onto a group or page. These often ship with their own handlers and their own idea of who counts as an administrator. Recon signals include endpoints containing verbs such as create, edit, update or delete alongside an object identifier, parameters named after the container (group_id, page_id, unit_id), and features whose controls appear only for admins in the interface. Comparing the requests an admin makes with those a member can make, and watching for endpoints that never appear for the member, narrows the search quickly.

Keep the demonstration minimal and avoid touching groups you do not control beyond what is needed to prove the point.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What happened, in plain words

Facebook Groups are pages where people gather around a shared interest, and members can post, comment and share. Some groups are used for teaching, so Facebook was building a feature called learning units: small pieces of educational material that sit inside a group. The researcher describes it as a new feature at the time.

The researcher found that anyone could create and edit learning units in any group they could see, even when the group's settings did not allow them to post there. In other words, a person who was not allowed to write a normal post could still add teaching material to the group.

To understand why that matters, it helps to know what a request is. When you click a button in a browser, the browser sends a message to a Facebook server asking it to do something, and the server sends back a reply. That message is a request. The researcher showed the request used to create a learning unit and that it worked for any visible group regardless of post permissions.

The request looks like this:

HTTP
HTTP POST facebook.com
/groups/learning/create/?group_id=349225725474262
unit_name=Reading
unit_description=SomeDescription

Line by line:

  1. HTTP POST facebook.com says the request is a POST, which is the kind of request used to send data and create something, and that it goes to Facebook's server.
  2. /groups/learning/create/?group_id=349225725474262 is the address of the action that creates a learning unit. The part after the question mark, group_id=349225725474262, tells the server which group the unit belongs to. The number is the group's identifier, a unique label the site uses internally.
  3. unit_name=Reading is the title of the unit being created.
  4. unit_description=SomeDescription is the text that goes with it.

The important detail is that the group is chosen by a value the sender types into the request. The group is chosen by a value the sender supplies in the request. The report does not show the server's reply, the login details used, or any other headers sent with the request.

The researcher states the impact plainly: this could have let anyone create Learning Units in a Group. The report also says editing was possible, but it does not show the editing request.

The timeline was:

Date Event
Feb 11, 2018 Report sent
Feb 13, 2018 Further investigation by Facebook
Mar 2, 2018 Fixed by Facebook
Mar 5, 2018 Bounty awarded by Facebook

A bounty is a payment a company makes to someone who reports a security problem responsibly. The report gives no severity rating or CVSS score, which is a standard number used to rank how serious a flaw is.

In general, how this kind of bug works

This is a broken access control problem, also called a missing authorisation check. Authorisation means deciding whether a person is allowed to do a particular thing. A website often shows a button only to group admins and hides it from everyone else. That hiding happens in the page you see, in your browser. It is a convenience, not a lock. The lock has to be on the server, because anyone can send a request directly without using the page at all.

A useful comparison is a hotel. The reception desk might not hand you a key to a room that is not yours, but if the door itself has no lock, the desk's decision means nothing. The server is the door.

When the thing being acted on is named by an identifier the sender controls, such as group_id, the problem is sometimes called an insecure direct object reference: the server looks up whatever object the identifier points to and acts on it without asking whether this caller may touch it. New and secondary features are common places for this, because they are often built quickly and tested with an administrator's account, never with an ordinary member's.

Creation and editing should go through the same check. Putting that check in one central place, so that every new feature must pass through it, stops the same mistake recurring.

Glossary

  • Request: a message a browser sends to a server asking it to do something.
  • POST: the type of request used to send data to a server, typically to create or change something.
  • Endpoint: the specific address on a server that handles one action.
  • Parameter: a named value attached to a request, such as group_id or unit_name.
  • Identifier: a unique label a site uses to refer to an object, such as a group's number.
  • Session: the server's record of who you are while you are logged in.
  • Header: extra information sent alongside a request, such as the browser type.
  • Authorisation: the decision about whether a person is allowed to perform an action.
  • Access control: the system that enforces who may do what.
  • Broken access control: a flaw where that enforcement is missing or wrong.
  • Insecure direct object reference: a flaw where an object named by a value the sender controls is acted on without a permission check.
  • Bounty: a payment made for a responsibly reported security problem.
  • CVSS: a standard scoring system for the severity of a security flaw.
  • Impact: the harm a flaw could cause.
  • Root cause: the underlying reason a flaw exists.

More by Philippe Harewood

View all

56 more disclosed reports, best first.

More from Meta

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.