Skip to content
Business logic Disclosed report Intermediate

libphutil: removing bytes from a PhutilRope does not work as intended

fnqgpc Follow

Originally disclosed on HackerOne

  • Fixed in under an hour
  • Disclosed after under an hour

Mongoose. This is a bug in libphutil, it doesn't seem to affect phabricator because the bytes are always removed one buffer at a time. I imagine this could cause security issues in applications made with libphutil as a framework, if they use PhutilRope directly. This is how it goes:

$rope = new PhutilRope();
$rope->append("aaa");
$rope->append("bbb");
$rope->append("ccc");
$rope->append("rrrrddddddddd");
$rope->removeBytesFromHead(4);

echo $rope->getAsString();

should output "bbcccrrrrddddddddd" but will instead output "ddddddddd".

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A business logic bug in Phabricator. HackerOne made it public on 16 December 2015.

About Business logic

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by fnqgpc

View all

2 more disclosed reports, best first.

More from Phabricator

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.