> For the complete documentation index, see [llms.txt](https://sallam.gitbook.io/sec-88/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sallam.gitbook.io/sec-88/web-appsec/features-abuse/commenting.md).

# Commenting

<details>

<summary><strong>IDOR Posting comments impersonating some other users.</strong></summary>

* [ ] Change the email of th request to registered email in target
* [ ] Change email to un registered email in the target and then register with it
* [ ] Change the ID one number or the whole id with another user ID

</details>

<details>

<summary><strong>DOM Clobbering</strong></summary>

We can therefore cause the JavaScript references to return an empty object using the following technique:

```python
<img id="getElementById">
<img id="querySelector">
<img id="getElementByTagName">
```

Which now returns the following output in our console: Uncaught TypeError: `document.getElementById is not a function at ….`

assuming an application uses a BBcode tag to publish image:

```python
[img width="100" height="50"]<https://www.bbcode.org/images/lubeck_small\\.jpg\\[/img]>
Which is interpreted in the browser as follows:
<img width="100" height="50" src=”https://www.bbcode.org/images/lubeck_\\small.jpg”>

We can take advantage of DOM clobbering like this:
[img width="100" id=”getElementById” height="50"]<https://www.bbcode.org>\\/images/lubeck_small.jpg\\[/img]

We have now effectively clobbered the DOM in the web application, which may
result in the breakdown of functionality and in some cases cause the browser to
become unresponsive
```

</details>

<details>

<summary><strong>Markup Language? try</strong> <a href="https://medium.com/@iframe_h1/a-picture-that-steals-data-ff604ba1012"><strong>Create A picture that steals Data</strong></a></summary>

```python
Go to <https://iplogger.org/>
choose invisible image 
send the comment
```

</details>

<details>

<summary><strong>IDOR to Read any other's comments</strong></summary>

1. Search for any fields/forms that you cant see others comments
2. Analyze the traffic
3. change identifier to user B and u can see user b comments

</details>

<details>

<summary><strong>Race Condition</strong></summary>

1. Unlimited Comments on a thread
2. Suppose a user can comment only once, try race conditions here to see if multiple comments are possible.

</details>

<details>

<summary><strong>Privilege Escalation</strong></summary>

* Suppose there is an option: comment by the verified user (or some privileged user) try to tamper with various parameters in order to see if you can do this activity.

</details>

<details>

<summary><strong>Thread Comment Functionality Testing</strong></summary>

* [ ] Unlimited Comments on a thread
* [ ] Suppose a user can comment only once, try race conditions here to see if multiple comments are possible.
* [ ] Suppose there is an option: comment by the verified user (or some privileged user) try to tamper with various parameters in order to see if you can do this activity.
* [ ] Try posting comments impersonating some other users.

</details>
