Skip to content
Access control Disclosed report Beginner

Паблики: Модератор паблика может удалять добавленные редакторами материалы с таймером на публикацию.

povargek Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Triaged in 18 days
  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 5 months
Модератор паблика может удалять добавленные редакторами материалы с таймером на публикацию.
Для начала можно посмотреть какие ранги есть у пользователей сообщества: https://new.vk.com/page-2158488_44367987
Тут написано: "Не может удалять контент, добавленный другими руководителями.". Да, это действительно так, но есть одна проблема, модератор может удалять материалы, которые другие руководители поставили на таймер публикации. Теперь можно перейти к тому, как воспроизвести этот баг.
Нам необ�
одимо: модераторские права в паблике, ID поста на отложенную запись.
1. https://new.vk.com/dev/wall.delete - прописываем в owner_id ID паблика, а в post_id ID поста-жертвы, выполняем запрос.
2. В случае удачи нам вернет "response: 1", отложенный на публикацию пост будет удален.

Для поиска "жертв" можно использовать метод перебора, проверять пропуски между постами и тд. Замечу то, что wall.delete вернет в любом случае (ранг "модератор", речь не о подписчика�
) "response: 1", если по этому ID был когда-то пост с отложенной публикацией.

Какой вред это может нанести пользователям? Приведу пример. Есть какой-либо крупный паблик, руководители: создатель, один редактор и и один модератор. Модератор "в ти�
ую" удаляет данным багом посты на отложенную публикацию, тут создатель замечает что посты пропадают, проверяет свой аккаунт на взлом - всё чисто, и подозрения сразу у него упадут на редактора паблика, т.к. создатель паблика знает что модератор и�
 не может удалять - ему эта функцию просто напросто недоступна, и невинного редактора увольняют с его поста.

P.S. Мой первый PoC, опыта в баг-репорта�
 ранее не имел.

The original report as published on HackerOne, by povargek. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

VK.com (then reachable at new.vk.com) lets a community (a "public") have several levels of management. The report links to the platform's own description of community ranks:

Text
https://new.vk.com/page-2158488_44367987

That page states that a moderator "Не может удалять контент, добавленный другими руководителями." (cannot delete content added by other managers). The researcher's finding is that this rule has a hole: a moderator can delete material that another manager has scheduled for publication with a timer. The weakness is classified as privilege escalation, and the report was disclosed on 4 December 2016 with a bounty of 100.00 USD.

The feature involved is the wall: posts on a community's wall, including posts that are queued for later publication rather than published immediately.

Setup

To reproduce the bug you need two things:

  1. Moderator rights in a public.
  2. The ID of a post that is scheduled for publication (an "отложенная запись").

No special tooling is described; the reproduction is done through the public API method wall.delete.

Finding it

The starting point is the documented rank model. The help page says a moderator cannot delete content added by other managers, and the researcher confirms that this is true for ordinary posts. The gap is in scheduled posts: a post that another manager has put on a publication timer is still deletable by a moderator. That contradicts the stated permission boundary, because the scheduled post belongs to another manager, not to the moderator.

Exploitation

Step 1: call wall.delete with the victim post ID

Using the API method documented at https://new.vk.com/dev/wall.delete, set owner_id to the ID of the public and post_id to the ID of the victim's scheduled post, then execute the request.

HTTP
https://new.vk.com/dev/wall.delete

The two parameters that matter are owner_id (the community) and post_id (the scheduled post). The researcher does not show the full request line or the authentication parameters in the report.

Step 2: read the response

On success the API returns:

Text
response: 1

and the post queued for publication is deleted.

Finding victims

The report notes that candidate post IDs can be found by enumeration, for example by checking gaps between posts. It also notes a quirk: with the moderator rank (the report explicitly excludes ordinary subscribers), wall.delete returns response: 1 in any case if a post with a scheduled publication ever existed under that ID. In other words, the success value is not a reliable signal that a live scheduled post was just removed.

Root cause

The report does not describe the server-side code. What it establishes is behavioural: the permission check that stops a moderator from deleting other managers' content does not cover posts that are scheduled for publication. The existing defence (the documented rank rule) therefore holds for normal wall posts but not for the timer queue.

Impact

The researcher illustrates the harm with a concrete scenario. A large public has three managers: the creator, one editor and one moderator. The moderator quietly deletes scheduled posts using this bug. The creator notices that posts are disappearing and checks their own account for compromise; it is clean. Suspicion then falls on the editor, because the creator knows that the moderator cannot delete such content, since that function is simply not available to that rank. The innocent editor is removed from their position.

So the impact is both direct (destruction of content queued by other managers) and social: it lets a lower-ranked manager frame a higher-ranked one, and the report's example ends with the editor losing their role. The report does not claim any access to post contents or any other data.

Fix

The fix implied by the finding is to apply the same rank check to scheduled posts that already applies to published posts, so that a moderator cannot delete material queued by another manager.

Variants to test

  1. Other deletion or edit methods on scheduled content (for example editing a queued post rather than deleting it) with a moderator account. A positive result is a successful response and a visible change to another manager's queued post.
  2. The same rank boundary on other object types where a lower rank is supposed to be blocked from touching a higher rank's content. A positive result is a successful action that the documented rank table forbids.
  3. Enumerating post IDs around known posts to find scheduled ones, keeping in mind that response: 1 can be returned for IDs where a scheduled post once existed. A positive result is a queued post that disappears from the timer queue.

Hunting notes

P.S. The researcher notes that this was their first PoC and that they had no prior experience with bug reports.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

VK.com is a social network. On VK, a group or community page (in Russian, a "паблик", roughly "public") is a page that many people follow, and it has a wall: a list of posts that appear on the page. A community is not run by one person alone. It has several levels of management, called ranks. The report links to VK's own help page that explains these ranks:

Text
https://new.vk.com/page-2158488_44367987

On that page VK states a rule: a moderator "Не может удалять контент, добавленный другими руководителями." In English: a moderator cannot delete content that other managers added. The researcher checked this and confirms it is true for normal, already-published posts.

But there is a hole. VK lets a manager write a post and schedule it to appear later, at a chosen time, instead of publishing it immediately. This is called a scheduled post ("отложенная запись"). The researcher found that a moderator can delete a post that another manager has put on such a timer. So the rule holds for published posts but not for the queue of posts waiting to be published.

This kind of bug is called privilege escalation. In plain terms: a user with fewer rights manages to do something that only a user with more rights should be able to do. Think of an office where a junior employee is not allowed to throw away documents signed by the boss, but is allowed to throw away documents the boss left in the out-tray to be sent tomorrow. The rule says "no", the system says "yes".

The report was disclosed on 4 December 2016 and paid a bounty of 100.00 USD. The researcher notes at the end that this was their first proof of concept and that they had no earlier experience writing bug reports.

Background: what you need to know first

Before the steps make sense, a few ideas need explaining from zero.

What an API is. An API is a way for one program to talk to another over the internet, using fixed addresses and fixed names for the things you send. A useful comparison is a restaurant menu: you do not walk into the kitchen, you order by the name printed on the menu, and the kitchen sends back a dish. VK has a public API: a set of addresses, each one a method, that programs (and people typing in a browser) can call to do things on VK, such as post, delete or read data.

What a method is. Each API method is one action with a name. The report uses one method, wall.delete, which deletes a post from a wall. The documentation for it sits at https://new.vk.com/dev/wall.delete.

What a parameter is. When you call a method you also send values that tell it what exactly to act on. These named values are parameters. This report uses two:

  • owner_id: whose wall the post is on. For a community, this is the community's ID.
  • post_id: which post on that wall is meant.

What an ID is. An ID is a number that identifies one specific thing, so that two posts or two communities are never confused. Every post on VK has its own post_id, and every community has its own owner_id.

What a response is. When you call an API method, the server answers with a short machine-readable reply. The report shows the reply as response: 1. In VK's API, a value of 1 in the response field conventionally means the action succeeded.

What enumeration is. Enumeration means trying a series of numbers one after another, for example post IDs 100, 101, 102 and so on, to see which ones exist or which ones behave in an interesting way. It is like trying every key on a keyring until one opens the door.

What the wall and the timer are. The wall is the stream of posts on a community page. The timer is the scheduling feature: a manager can prepare a post and set it to appear at a later moment. Until that moment the post is not visible on the wall; it waits in a queue.

Setup

To reproduce the bug you need two things:

  1. Moderator rights in a public. In other words, you must be a member of that community whose rank is moderator, so that the system treats you as a manager with limited powers.
  2. The ID of a post that is scheduled for publication, that is, a post another manager has put on the timer.

The report describes no special tools. The whole reproduction is done by calling the public API method wall.delete.

Finding it

The starting point is the documented rank model. VK's help page says a moderator cannot delete content added by other managers, and the researcher confirms this is true for ordinary posts. The gap is in scheduled posts: a post that another manager has put on a publication timer can still be deleted by a moderator. That contradicts the stated permission boundary, because the scheduled post belongs to another manager, not to the moderator.

Exploitation

Step 1: call wall.delete with the victim post ID

Using the API method documented at https://new.vk.com/dev/wall.delete, set owner_id to the ID of the public and post_id to the ID of the victim's scheduled post, then execute the request.

HTTP
https://new.vk.com/dev/wall.delete

Line by line: this is the address of the deletion method. It is the menu entry you order from. The two parameters that matter are owner_id (the community) and post_id (the scheduled post). You supply them alongside the call. The report does not show the full request line or the authentication parameters, so the exact way the call was signed in is not part of this write-up.

Why this step: the researcher wants to prove that the deletion method accepts a scheduled post belonging to someone else when the caller is only a moderator. If the rank rule were enforced, this call should be refused.

Step 2: read the response

On success the API returns:

Text
response: 1

Line by line: response is the field name in the reply, and 1 is the value meaning the action went through. The post queued for publication is deleted. Why this step matters: the reply is the evidence. A 1 here, combined with the post disappearing from the timer queue, shows the moderator was allowed to remove another manager's scheduled content.

Finding victims

The report notes that candidate post IDs can be found by enumeration, for example by checking gaps between posts. It also notes a quirk: with the moderator rank (the report explicitly excludes ordinary subscribers), wall.delete returns response: 1 in any case if a post with a scheduled publication ever existed under that ID. In other words, the success value is not a reliable signal that a live scheduled post was just removed. So when hunting, do not trust response: 1 alone; confirm that a queued post actually vanished.

Root cause

The report does not describe the server-side code. What it establishes is behavioural: the permission check that stops a moderator from deleting other managers' content does not cover posts that are scheduled for publication. The existing defence, the documented rank rule, therefore holds for normal wall posts but not for the timer queue.

Impact

The researcher illustrates the harm with a concrete scenario. A large public has three managers: the creator, one editor and one moderator. The moderator quietly deletes scheduled posts using this bug. The creator notices that posts are disappearing and checks their own account for compromise; it is clean. Suspicion then falls on the editor, because the creator knows that the moderator cannot delete such content, since that function is simply not available to that rank. The innocent editor is removed from their position.

So the impact is both direct (destruction of content queued by other managers) and social: it lets a lower-ranked manager frame a higher-ranked one, and the report's example ends with the editor losing their role. The report does not claim any access to post contents or any other data.

Fix

The fix implied by the finding is to apply the same rank check to scheduled posts that already applies to published posts, so that a moderator cannot delete material queued by another manager.

Variants to test

  1. Other deletion or edit methods on scheduled content (for example editing a queued post rather than deleting it) with a moderator account. A positive result is a successful response and a visible change to another manager's queued post.
  2. The same rank boundary on other object types where a lower rank is supposed to be blocked from touching a higher rank's content. A positive result is a successful action that the documented rank table forbids.
  3. Enumerating post IDs around known posts to find scheduled ones, keeping in mind that response: 1 can be returned for IDs where a scheduled post once existed. A positive result is a queued post that disappears from the timer queue.

Hunting notes

The researcher notes that this was their first PoC and that they had no prior experience with bug reports.

Glossary

  • API: a fixed set of addresses and method names that programs use to talk to a service over the internet, like ordering from a menu instead of entering the kitchen.
  • Bounty: money a company pays a researcher for reporting a valid security bug.
  • Community (public, паблик): a group page on VK that people follow, with its own wall and its own managers.
  • Enumeration: trying a series of values, such as post IDs, one after another to find ones that exist or behave interestingly.
  • ID: a number that uniquely identifies one specific object, such as a post or a community.
  • Method: one named action in an API, for example wall.delete.
  • Moderator: a management rank in a community with limited powers; per VK's help page, a moderator cannot delete content added by other managers.
  • owner_id: the parameter that says whose wall a post belongs to; for a community, the community's ID.
  • Parameter: a named value sent with an API call to say what exactly to act on.
  • post_id: the parameter that says which post on a wall is meant.
  • Privilege escalation: a bug where a user with fewer rights can do something reserved for a user with more rights.
  • Proof of concept (PoC): a minimal demonstration that a bug really works.
  • Response: the machine-readable reply an API returns after a call; here response: 1 means success.
  • Scheduled post (отложенная запись): a post prepared in advance and set to appear on the wall at a later time, waiting in a queue until then.
  • Timer: the scheduling feature that holds a post until its chosen publication time.
  • wall.delete: the VK API method that deletes a post from a wall.
  • Wall: the stream of posts shown on a community page.

More by povargek

View all

13 more disclosed reports, best first.

More from VK.com

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.