• Home
  • Cyber Crime
  • Cyber warfare
  • APT
  • Data Breach
  • Deep Web
  • Digital ID
  • Hacking
  • Hacktivism
  • Intelligence
  • Internet of Things
  • Laws and regulations
  • Malware
  • Mobile
  • Reports
  • Security
  • Social Networks
  • Terrorism
  • ICS-SCADA
  • POLICIES
  • Contact me
MUST READ

Operation CargoTalon targets Russia’s aerospace with EAGLET malware,

 | 

Unpatched flaw in EoL LG LNV5110R cameras lets hackers gain Admin access

 | 

Koske, a new AI-Generated Linux malware appears in the threat landscape

 | 

Mitel patches critical MiVoice MX-ONE Auth bypass flaw

 | 

Coyote malware is first-ever malware abusing Windows UI Automation

 | 

SonicWall fixed critical flaw in SMA 100 devices exploited in Overstep malware attacks

 | 

DSPM & AI Are Booming: $17.87B and $4.8T Markets by 2033

 | 

Stealth backdoor found in WordPress mu-Plugins folder

 | 

U.S. CISA adds CrushFTP, Google Chromium, and SysAid flaws to its Known Exploited Vulnerabilities catalog

 | 

U.S. CISA urges FCEB agencies to fix two Microsoft SharePoint flaws immediately and added them to its Known Exploited Vulnerabilities catalog

 | 

Sophos fixed two critical Sophos Firewall vulnerabilities

 | 

French Authorities confirm XSS.is admin arrested in Ukraine

 | 

Microsoft linked attacks on SharePoint flaws to China-nexus actors

 | 

Cisco confirms active exploitation of ISE and ISE-PIC flaws

 | 

SharePoint under fire: new ToolShell attacks target enterprises

 | 

CrushFTP zero-day actively exploited at least since July 18

 | 

Hardcoded credentials found in HPE Aruba Instant On Wi-Fi devices

 | 

MuddyWater deploys new DCHSpy variants amid Iran-Israel conflict

 | 

U.S. CISA urges to immediately patch Microsoft SharePoint flaw adding it to its Known Exploited Vulnerabilities catalog

 | 

Microsoft issues emergency patches for SharePoint zero-days exploited in "ToolShell" attacks

 | 
  • Home
  • Cyber Crime
  • Cyber warfare
  • APT
  • Data Breach
  • Deep Web
  • Digital ID
  • Hacking
  • Hacktivism
  • Intelligence
  • Internet of Things
  • Laws and regulations
  • Malware
  • Mobile
  • Reports
  • Security
  • Social Networks
  • Terrorism
  • ICS-SCADA
  • POLICIES
  • Contact me
  • Home
  • Breaking News
  • Hacking
  • Social Networks
  • Serious flaws allowed the deletion of any comment on Facebook

Serious flaws allowed the deletion of any comment on Facebook

Pierluigi Paganini February 19, 2015

A young hacker disclosed the details of an attack that by exploiting a couple of flaws in Facebook allowed him to delete any comment on the social network.

The 19-year-old hacker Joe Balhis has discovered the way to delete any comment on Facebook by leveraging a session validation flaw and a cross-site request forgery (CSRF) vulnerability. The expert highlighted that the attacker did not require access to the victim’s Facebook profile and the attack was effective even against users who were not friends with the attacker, and users with private profiles.

facebook comments hacking

The Lebanese expert has published an advisory on Vulnerability Lab explaining that an attacker could have deleted any comment simply by replacing the values of the comment_id and legacy_id parameters in a web request.

“Th vulnerability is located in the comment id and legacy id of the comments function. Remote attackers with low privileged user accounts are able to delete postings of other users without auth. The attacker can intercept the session and exchanged the comment and legacy id to delete or add for example comments.” states the advisory.

The expert discovered the flaw by capturing the header data related to a delete request, the hacker posted a random comment on Facebook, deleted it and analyzed the header information.

At this point, the attacker can delete every comment by knowing its comment_id and legacy_id, to discover them he just needs to “Like” them and sniff the request that include both data.

Finally, the attacker sends a delete request to Facebook containing the values of the comment_id and legacy_id parameters related to the targeted comment.

Manual steps to reproduce the vulnerability are

01. Login to your facebook account
02. Put a comment anywhere to a random post
03. Remove your comment by usage of the standard function in facebook
04. Capture the headers information on requesting to delete
05. Go to the victim account (any account not friend or there friends)
because the issue works to both
06. Like his comment and capture the request by intercepting the values
07. Change your comment id with the victim comment id that you and change
the legacy id
08. Replay the tampered request with the manipulated values
09. Now the comment will be unauthorized removed
10. Successful reproduce of the security vulnerability that allows to
delete any comment of other users. thanks!

The attack could be easily automated to delete a large number of comments by guessing comment_id values.

“If I entered a random id and it was the id of an existing comment, it would be deleted permanently,” the expert said to securityweek.com. “The victim (target) user account can’t do anything. He can’t protect his comments. I need his comment id and it is easy to get [from] the source of Facebook,” the researcher explained via email. “Ever when you visit a Facebook post you can see in the source of the site the user specific comment ids.”

Balhis reported the flaw to Facebook that patched it 2014, but the researcher disclosed the details of the attack only now after that Facebook awarded him a $12,500 bounty. The expert also published a video PoC of the attack.

The disclosure of the vulnerability arrives a few days after the researcher Laxman Muthiyah reported a serious vulnerability in the Facebook Graph API that could have been exploited to delete users’ photo albums.

Pierluigi Paganini

(Security Affairs –  Facebook, hacking)


facebook linkedin twitter

authentication Cross-site Request Forgery CSRF Facebook Hacking privacy session validation flaw Social Network

you might also like

Pierluigi Paganini July 25, 2025
Operation CargoTalon targets Russia’s aerospace with EAGLET malware,
Read more
Pierluigi Paganini July 25, 2025
Unpatched flaw in EoL LG LNV5110R cameras lets hackers gain Admin access
Read more

leave a comment

newsletter

Subscribe to my email list and stay
up-to-date!

    recent articles

    Operation CargoTalon targets Russia’s aerospace with EAGLET malware,

    Intelligence / July 25, 2025

    Unpatched flaw in EoL LG LNV5110R cameras lets hackers gain Admin access

    Security / July 25, 2025

    Koske, a new AI-Generated Linux malware appears in the threat landscape

    Malware / July 25, 2025

    Mitel patches critical MiVoice MX-ONE Auth bypass flaw

    Security / July 25, 2025

    Coyote malware is first-ever malware abusing Windows UI Automation

    Malware / July 24, 2025

    To contact me write an email to:

    Pierluigi Paganini :
    pierluigi.paganini@securityaffairs.co

    LEARN MORE

    QUICK LINKS

    • Home
    • Cyber Crime
    • Cyber warfare
    • APT
    • Data Breach
    • Deep Web
    • Digital ID
    • Hacking
    • Hacktivism
    • Intelligence
    • Internet of Things
    • Laws and regulations
    • Malware
    • Mobile
    • Reports
    • Security
    • Social Networks
    • Terrorism
    • ICS-SCADA
    • POLICIES
    • Contact me

    Copyright@securityaffairs 2024

    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
    Cookie SettingsAccept All
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities...
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
    Non-necessary
    Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
    SAVE & ACCEPT