libphutil: removing bytes from a PhutilRope does not work as intended
- 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".
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.