GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Forest of Enchantment (forestofenchantment@clubcyberia.co)'s status on Wednesday, 16-Apr-2025 23:47:46 JST Forest of Enchantment Forest of Enchantment
    Date of Breach: April 2025
    Environment: FreeBSD (EOL), PHP (legacy), Ghostscript/ImageMagick
    Stack: Yotsuba-based imageboard software

    Key Failures
    – Running EOL FreeBSD and unsupported PHP
    – Allowed .pdf uploads on legacy boards (/po/, /tg/)
    – No MIME type checks or extension whitelisting
    – Executed unfiltered input via eval(), system(), shell_exec()
    – No sandboxing, no disable_functions, SSH exposed

    Relevant Code Samples

    postfilter.php:
    PHP:

    shell_exec("some_command $file");
    system("convert $file output.png");


    HTMLPurifier.standalone.php (line 21864):
    PHP:

    $result = eval("\$var = $expr;");


    InterchangeBuilder.php (line 127):
    PHP:

    $directive->default = $this->varParser->parse(
    $hash->offsetGet('DEFAULT'),
    $directive->type
    );


    Attack Flow

    1. PDF uploaded via board with legacy file support

    2. Content read by vulnerable parser or CLI processor

    3. Payload reaches eval() or system()

    4. Shell command executed (e.g. reverse shell, SSH key injection)

    5. Attacker escalates to root via misconfig

    How They Could've Prevented It
    Bash:

    freebsd-update fetch install

    pkg update && pkg upgrade

    reboot


    Then:

    – Remove all
    eval(), shell_exec(), system()

    – Enforce:
    Code:

    disable_functions = system, exec, shell_exec, passthru, popen, proc_open, eval


    – Validate uploads via mime_content_type()

    – Disable PDF uploads

    – Drop web user privileges, isolate SSH

    Conclusion
    No zero-day. No fancy exploit. Just years of tech debt, lazy security, and root via a PDF. Completely avoidable.
    In conversation about 3 months ago from clubcyberia.co permalink
    • CrunkLord420, soberano and pwm like this.
    • Embed this notice
      meso (meso@new.asbestos.cafe)'s status on Thursday, 17-Apr-2025 00:39:18 JST meso meso
      in reply to
      • meso
      @Forestofenchantment so the joke about PDF files hacking them wasnt a pedophile joke but like an actual pdf file hacking them lmfao
      In conversation about 3 months ago permalink
      Forest of Enchantment likes this.
    • Embed this notice
      meso (meso@new.asbestos.cafe)'s status on Thursday, 17-Apr-2025 00:39:19 JST meso meso
      in reply to
      @Forestofenchantment >– Allowed .pdf uploads on legacy boards (/po/, /tg/)
      they banned webms or whatever but pdf's are fucking okay? negroids
      In conversation about 3 months ago permalink
      Forest of Enchantment likes this.
    • Embed this notice
      opal (wowaname@freesoftwareextremist.com)'s status on Sunday, 20-Apr-2025 06:04:13 JST opal opal
      in reply to
      @Forestofenchantment i expect nothing less
      In conversation about 3 months ago permalink

      Attachments


      1. https://media.freesoftwareextremist.com/media/96/05/d4/9605d4e6f28229927f2b19ca81abaf96296d6bc5aefc26cd8620c49266011026.jpg
      Forest of Enchantment likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.